Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Steiblys <imbusy@imbusy.org>2009-10-02 02:29:15 +0400
committerLukas Steiblys <imbusy@imbusy.org>2009-10-02 02:29:15 +0400
commit0677398a649b6b8c293df3ce3c6668f0a3be3bc8 (patch)
tree9d510a5bd23559bf4fae670ed04d7e5d6c12578c /release/ui/space_info.py
parent59248e9f62006ba05e3098e4d213f3dcb23fe711 (diff)
parentbc942eceacb638735dc4f4f68252c4c207147a70 (diff)
merge from 23153 to 23595soc-2009-imbusy
Diffstat (limited to 'release/ui/space_info.py')
-rw-r--r--release/ui/space_info.py251
1 files changed, 0 insertions, 251 deletions
diff --git a/release/ui/space_info.py b/release/ui/space_info.py
deleted file mode 100644
index 97243f857a6..00000000000
--- a/release/ui/space_info.py
+++ /dev/null
@@ -1,251 +0,0 @@
-
-import bpy
-
-class INFO_HT_header(bpy.types.Header):
- __space_type__ = 'INFO'
-
- def draw(self, context):
- layout = self.layout
-
- st = context.space_data
- scene = context.scene
- rd = scene.render_data
-
- row = layout.row(align=True)
- row.template_header()
-
- if context.area.show_menus:
- sub = row.row(align=True)
- sub.itemM("INFO_MT_file")
- sub.itemM("INFO_MT_add")
- if rd.use_game_engine:
- sub.itemM("INFO_MT_game")
- else:
- sub.itemM("INFO_MT_render")
- sub.itemM("INFO_MT_help")
-
- layout.template_ID(context.window, "screen", new="screen.new", unlink="screen.delete")
- layout.template_ID(context.screen, "scene", new="scene.new", unlink="scene.delete")
-
- if rd.multiple_engines:
- layout.itemR(rd, "engine", text="")
-
- layout.itemS()
-
- layout.template_operator_search()
- layout.template_running_jobs()
-
- layout.itemL(text=scene.statistics())
-
-class INFO_MT_file(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "File"
-
- def draw(self, context):
- layout = self.layout
-
- layout.operator_context = "EXEC_AREA"
- layout.itemO("wm.read_homefile", text="New")
- layout.operator_context = "INVOKE_AREA"
- layout.itemO("wm.open_mainfile", text="Open...")
- layout.item_menu_enumO("wm.open_recentfile", "file", text="Open Recent")
- layout.itemO("wm.recover_last_session")
-
- layout.itemS()
-
- layout.operator_context = "EXEC_AREA"
- layout.itemO("wm.save_mainfile", text="Save")
- layout.operator_context = "INVOKE_AREA"
- layout.itemO("wm.save_as_mainfile", text="Save As...")
- layout.itemO("screen.userpref_show", text="User Preferences...")
-
- layout.itemS()
-
- layout.itemM("INFO_MT_file_import")
- layout.itemM("INFO_MT_file_export")
-
- layout.itemS()
-
- layout.itemM("INFO_MT_file_external_data")
-
- layout.itemS()
-
- layout.operator_context = "EXEC_AREA"
- layout.itemO("wm.exit_blender", text="Quit")
-
-class INFO_MT_file_import(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "Import"
-
- def draw(self, context):
- layout = self.layout
-
- layout.itemL(text="Nothing yet")
-
-class INFO_MT_file_export(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "Export"
-
- def draw(self, context):
- layout = self.layout
-
- layout.itemO("export.ply", text="PLY")
-
-class INFO_MT_file_external_data(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "External Data"
-
- def draw(self, context):
- layout = self.layout
-
- layout.itemO("file.pack_all", text="Pack into .blend file")
- layout.itemO("file.unpack_all", text="Unpack into Files...")
-
- layout.itemS()
-
- layout.itemO("file.make_paths_relative")
- layout.itemO("file.make_paths_absolute")
- layout.itemO("file.report_missing_files")
- layout.itemO("file.find_missing_files")
-
-class INFO_MT_add(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "Add"
-
- def draw(self, context):
- layout = self.layout
-
- layout.operator_context = "EXEC_SCREEN"
-
- layout.item_menu_enumO("object.mesh_add", "type", text="Mesh", icon='ICON_OUTLINER_OB_MESH')
- layout.item_menu_enumO("object.curve_add", "type", text="Curve", icon='ICON_OUTLINER_OB_CURVE')
- layout.item_menu_enumO("object.surface_add", "type", text="Surface", icon='ICON_OUTLINER_OB_SURFACE')
- layout.item_menu_enumO("object.metaball_add", "type", 'META', icon='ICON_OUTLINER_OB_META')
- layout.itemO("object.text_add", text="Text", icon='ICON_OUTLINER_OB_FONT')
-
- layout.itemS()
-
- layout.itemO("object.armature_add", text="Armature", icon='ICON_OUTLINER_OB_ARMATURE')
- layout.item_enumO("object.add", "type", 'LATTICE', icon='ICON_OUTLINER_OB_LATTICE')
- layout.item_enumO("object.add", "type", 'EMPTY', icon='ICON_OUTLINER_OB_EMPTY')
-
- layout.itemS()
-
- layout.item_enumO("object.add", "type", 'CAMERA', icon='ICON_OUTLINER_OB_CAMERA')
- layout.item_enumO("object.add", "type", 'LAMP', icon='ICON_OUTLINER_OB_LAMP')
-
-class INFO_MT_game(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "Game"
-
- def draw(self, context):
- layout = self.layout
-
- gs = context.scene.game_data
-
- layout.itemO("view3d.game_start")
-
- layout.itemS()
-
- layout.itemR(gs, "show_debug_properties")
- layout.itemR(gs, "show_framerate_profile")
- layout.itemR(gs, "show_physics_visualization")
- layout.itemR(gs, "deprecation_warnings")
-
-class INFO_MT_render(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "Render"
-
- def draw(self, context):
- layout = self.layout
-
- rd = context.scene.render_data
-
- layout.itemO("screen.render", text="Render Image")
- layout.item_booleanO("screen.render", "animation", True, text="Render Animation")
-
- layout.itemS()
-
- layout.itemO("screen.render_view_show")
-
-class INFO_MT_help(bpy.types.Menu):
- __space_type__ = 'INFO'
- __label__ = "Help"
-
- def draw(self, context):
- layout = self.layout
-
- layout.itemO("help.manual")
- layout.itemO("help.release_logs")
-
- layout.itemS()
-
- layout.itemO("help.blender_website")
- layout.itemO("help.blender_eshop")
- layout.itemO("help.developer_community")
- layout.itemO("help.user_community")
-
-bpy.types.register(INFO_HT_header)
-bpy.types.register(INFO_MT_file)
-bpy.types.register(INFO_MT_file_import)
-bpy.types.register(INFO_MT_file_export)
-bpy.types.register(INFO_MT_file_external_data)
-bpy.types.register(INFO_MT_add)
-bpy.types.register(INFO_MT_game)
-bpy.types.register(INFO_MT_render)
-bpy.types.register(INFO_MT_help)
-
-# Help operators
-
-import bpy_ops # XXX - should not need to do this
-del bpy_ops
-
-class HelpOperator(bpy.types.Operator):
- def execute(self, context):
- try: import webbrowser
- except: webbrowser = None
-
- if webbrowser:
- webbrowser.open(self.__URL__)
- else:
- raise Exception("Operator requires a full Python installation")
-
- return ('FINISHED',)
-
-class HELP_OT_manual(HelpOperator):
- __idname__ = "help.manual"
- __label__ = "Manual"
- __URL__ = 'http://wiki.blender.org/index.php/Manual'
-
-class HELP_OT_release_logs(HelpOperator):
- __idname__ = "help.release_logs"
- __label__ = "Release Logs"
- __URL__ = 'http://www.blender.org/development/release-logs/'
-
-class HELP_OT_blender_website(HelpOperator):
- __idname__ = "help.blender_website"
- __label__ = "Blender Website"
- __URL__ = 'http://www.blender.org/'
-
-class HELP_OT_blender_eshop(HelpOperator):
- __idname__ = "help.blender_eshop"
- __label__ = "Blender e-Shop"
- __URL__ = 'http://www.blender3d.org/e-shop'
-
-class HELP_OT_developer_community(HelpOperator):
- __idname__ = "help.developer_community"
- __label__ = "Developer Community"
- __URL__ = 'http://www.blender.org/community/get-involved/'
-
-class HELP_OT_user_community(HelpOperator):
- __idname__ = "help.user_community"
- __label__ = "User Community"
- __URL__ = 'http://www.blender.org/community/user-community/'
-
-bpy.ops.add(HELP_OT_manual)
-bpy.ops.add(HELP_OT_release_logs)
-bpy.ops.add(HELP_OT_blender_website)
-bpy.ops.add(HELP_OT_blender_eshop)
-bpy.ops.add(HELP_OT_developer_community)
-bpy.ops.add(HELP_OT_user_community)
-