[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25097] trunk/blender/release/scripts/ui: Added Toggle Full Screen and Duplicate Area to the menus of all the main spaces in Blender

William Reynish william at reynish.com
Thu Dec 3 17:28:51 CET 2009


Revision: 25097
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25097
Author:   billrey
Date:     2009-12-03 17:28:50 +0100 (Thu, 03 Dec 2009)

Log Message:
-----------
Added Toggle Full Screen and Duplicate Area to the menus of all the main spaces in Blender

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_console.py
    trunk/blender/release/scripts/ui/space_image.py
    trunk/blender/release/scripts/ui/space_node.py
    trunk/blender/release/scripts/ui/space_outliner.py
    trunk/blender/release/scripts/ui/space_sequencer.py
    trunk/blender/release/scripts/ui/space_text.py
    trunk/blender/release/scripts/ui/space_view3d.py

Modified: trunk/blender/release/scripts/ui/space_console.py
===================================================================
--- trunk/blender/release/scripts/ui/space_console.py	2009-12-03 14:20:35 UTC (rev 25096)
+++ trunk/blender/release/scripts/ui/space_console.py	2009-12-03 16:28:50 UTC (rev 25097)
@@ -69,8 +69,12 @@
         layout.operator("console.copy")
         layout.operator("console.paste")
         layout.menu("CONSOLE_MT_language")
+        
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
+        layout.operator("screen.screen_full_area")
 
-
 class CONSOLE_MT_report(bpy.types.Menu):
     bl_label = "Report"
 

Modified: trunk/blender/release/scripts/ui/space_image.py
===================================================================
--- trunk/blender/release/scripts/ui/space_image.py	2009-12-03 14:20:35 UTC (rev 25096)
+++ trunk/blender/release/scripts/ui/space_image.py	2009-12-03 16:28:50 UTC (rev 25097)
@@ -61,6 +61,10 @@
             layout.operator("image.view_selected")
 
         layout.operator("image.view_all")
+       
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
         layout.operator("screen.screen_full_area")
 
 

Modified: trunk/blender/release/scripts/ui/space_node.py
===================================================================
--- trunk/blender/release/scripts/ui/space_node.py	2009-12-03 14:20:35 UTC (rev 25096)
+++ trunk/blender/release/scripts/ui/space_node.py	2009-12-03 16:28:50 UTC (rev 25097)
@@ -82,6 +82,10 @@
         layout.separator()
 
         layout.operator("node.view_all")
+        
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
         layout.operator("screen.screen_full_area")
 
 

Modified: trunk/blender/release/scripts/ui/space_outliner.py
===================================================================
--- trunk/blender/release/scripts/ui/space_outliner.py	2009-12-03 14:20:35 UTC (rev 25096)
+++ trunk/blender/release/scripts/ui/space_outliner.py	2009-12-03 16:28:50 UTC (rev 25097)
@@ -76,6 +76,11 @@
 
         col.operator("outliner.show_one_level")
         col.operator("outliner.show_hierarchy")
+        
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
+        layout.operator("screen.screen_full_area")
 
 
 class OUTLINER_MT_edit_datablocks(bpy.types.Menu):

Modified: trunk/blender/release/scripts/ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/ui/space_sequencer.py	2009-12-03 14:20:35 UTC (rev 25096)
+++ trunk/blender/release/scripts/ui/space_sequencer.py	2009-12-03 16:28:50 UTC (rev 25097)
@@ -100,20 +100,7 @@
         layout.separator()
         layout.operator("sequencer.view_all")
         layout.operator("sequencer.view_selected")
-        layout.separator()
-        layout.operator("screen.screen_full_area", text="Toggle Full Screen")
-        """
 
-
-    /* Lock Time */
-    uiDefIconTextBut(block, BUTM, 1, (v2d->flag & V2D_VIEWSYNC_SCREEN_TIME)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT,
-            "Lock Time to Other Windows|", 0, yco-=20,
-            menuwidth, 19, NULL, 0.0, 0.0, 1, 5, "");
-
-    /* Draw time or frames.*/
-    uiDefMenuSep(block);
-        """
-
         layout.prop(st, "draw_frames")
         layout.prop(st, "show_cframe_indicator")
         if st.display_mode == 'IMAGE':
@@ -121,13 +108,11 @@
         if st.display_mode == 'WAVEFORM':
             layout.prop(st, "separate_color_preview")
 
-        """
-    if(!sa->full) uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Maximize Window|Ctrl UpArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0,0, "");
-    else uiDefIconTextBut(block, BUTM, B_FULL, ICON_BLANK1, "Tile Window|Ctrl DownArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 0, "");
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
+        layout.operator("screen.screen_full_area")
 
-        """
-
-
 class SEQUENCER_MT_select(bpy.types.Menu):
     bl_label = "Select"
 

Modified: trunk/blender/release/scripts/ui/space_text.py
===================================================================
--- trunk/blender/release/scripts/ui/space_text.py	2009-12-03 14:20:35 UTC (rev 25096)
+++ trunk/blender/release/scripts/ui/space_text.py	2009-12-03 16:28:50 UTC (rev 25097)
@@ -123,6 +123,7 @@
         row.prop(st, "find_all", text="All")
 
 
+
 class TEXT_MT_text(bpy.types.Menu):
     bl_label = "Text"
 
@@ -159,6 +160,11 @@
         layout.operator("text.properties", icon='ICON_MENU_PANEL')
 
         layout.menu("TEXT_MT_templates")
+        
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
+        layout.operator("screen.screen_full_area")
 
 
 class TEXT_MT_templates(bpy.types.Menu):

Modified: trunk/blender/release/scripts/ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d.py	2009-12-03 14:20:35 UTC (rev 25096)
+++ trunk/blender/release/scripts/ui/space_view3d.py	2009-12-03 16:28:50 UTC (rev 25097)
@@ -269,15 +269,20 @@
         layout.operator("view3d.view_all")
 
         layout.separator()
+        
+        layout.operator("screen.animation_play", text="Playback Animation")
+        
+        layout.separator()
+        
+        layout.operator("screen.area_dupli")
+        layout.operator("screen.region_foursplit")
+        layout.operator("screen.screen_full_area")
 
-        layout.operator("screen.region_foursplit", text="Toggle Quad View")
-        layout.operator("screen.screen_full_area", text="Toggle Full Screen")
+        
 
-        layout.separator()
+        
 
-        layout.operator("screen.animation_play", text="Playback Animation", icon='ICON_PLAY')
 
-
 class VIEW3D_MT_view_navigation(bpy.types.Menu):
     bl_label = "Navigation"
 





More information about the Bf-blender-cvs mailing list