Added Toggle Full Screen and Duplicate Area to the menus of all the main spaces in...
authorWilliam Reynish <william@reynish.com>
Thu, 3 Dec 2009 16:28:50 +0000 (16:28 +0000)
committerWilliam Reynish <william@reynish.com>
Thu, 3 Dec 2009 16:28:50 +0000 (16:28 +0000)
release/scripts/ui/space_console.py
release/scripts/ui/space_image.py
release/scripts/ui/space_node.py
release/scripts/ui/space_outliner.py
release/scripts/ui/space_sequencer.py
release/scripts/ui/space_text.py
release/scripts/ui/space_view3d.py

index 63e8055b148f331644a91cd0cf6782b7c5d7171d..a59c39d52ec7fcf49ebfdbf2a2dae3575e8e53a3 100644 (file)
@@ -69,7 +69,11 @@ class CONSOLE_MT_console(bpy.types.Menu):
         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"
index ea8ed19d31b8c0673cab8cf1aab050c524538b7c..9c5c92dbaef3912b55716a4d791a0be97ad52dc4 100644 (file)
@@ -61,6 +61,10 @@ class IMAGE_MT_view(bpy.types.Menu):
             layout.operator("image.view_selected")
 
         layout.operator("image.view_all")
+       
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
         layout.operator("screen.screen_full_area")
 
 
index cc5b3fe7977b5986070e09c8395666baf4a9eee5..ed212053eccbbe9962295a06c94574f69ff511ae 100644 (file)
@@ -82,6 +82,10 @@ class NODE_MT_view(bpy.types.Menu):
         layout.separator()
 
         layout.operator("node.view_all")
+        
+        layout.separator()
+       
+        layout.operator("screen.area_dupli")
         layout.operator("screen.screen_full_area")
 
 
index a398bc66f45d89f3f3f8ec51eaca4d740054dc40..f6ad0b68f8003ec72a2bcd82b9fafd56a43bc5d8 100644 (file)
@@ -76,6 +76,11 @@ class OUTLINER_MT_view(bpy.types.Menu):
 
         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):
index 8476a98992c302f4839dddc92053e0f2ef451c2f..00361ca86aa5570308696f04a079e0080feabec6 100644 (file)
@@ -100,19 +100,6 @@ class SEQUENCER_MT_view(bpy.types.Menu):
         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")
@@ -121,12 +108,10 @@ class SEQUENCER_MT_view(bpy.types.Menu):
         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"
index 6ea499704fc66da745438203756ecc94c3b8bf0d..fad8ab3b6100b4b13d51e144e4d2b39cfcf64cad 100644 (file)
@@ -123,6 +123,7 @@ class TEXT_PT_find(bpy.types.Panel):
         row.prop(st, "find_all", text="All")
 
 
+
 class TEXT_MT_text(bpy.types.Menu):
     bl_label = "Text"
 
@@ -159,6 +160,11 @@ class TEXT_MT_text(bpy.types.Menu):
         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):
index 2c6b2b5ad1882efc6eea57f44b229402a0473731..3db6e3ccd99ee2ed706cf001393e44430c3d78b7 100644 (file)
@@ -269,13 +269,18 @@ class VIEW3D_MT_view(bpy.types.Menu):
         layout.operator("view3d.view_all")
 
         layout.separator()
-
-        layout.operator("screen.region_foursplit", text="Toggle Quad View")
-        layout.operator("screen.screen_full_area", text="Toggle Full Screen")
-
+        
+        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.animation_play", text="Playback Animation", icon='ICON_PLAY')
+        
 
 
 class VIEW3D_MT_view_navigation(bpy.types.Menu):