diff options
Diffstat (limited to 'release/scripts/ui/space_console.py')
-rw-r--r-- | release/scripts/ui/space_console.py | 49 |
1 files changed, 7 insertions, 42 deletions
diff --git a/release/scripts/ui/space_console.py b/release/scripts/ui/space_console.py index f2264a5c926..97720947e37 100644 --- a/release/scripts/ui/space_console.py +++ b/release/scripts/ui/space_console.py @@ -25,7 +25,7 @@ class CONSOLE_HT_header(bpy.types.Header): bl_space_type = 'CONSOLE' def draw(self, context): - sc = context.space_data + # sc = context.space_data # text = sc.text layout = self.layout @@ -34,29 +34,10 @@ class CONSOLE_HT_header(bpy.types.Header): if context.area.show_menus: sub = row.row(align=True) + sub.menu("CONSOLE_MT_console") - if sc.console_type == 'REPORT': - sub.menu("CONSOLE_MT_report") - else: - sub.menu("CONSOLE_MT_console") - - layout.separator() - layout.prop(sc, "console_type", expand=True) - - if sc.console_type == 'REPORT': - row = layout.row(align=True) - row.prop(sc, "show_report_debug", text="Debug") - row.prop(sc, "show_report_info", text="Info") - row.prop(sc, "show_report_operator", text="Operators") - row.prop(sc, "show_report_warning", text="Warnings") - row.prop(sc, "show_report_error", text="Errors") - - row = layout.row() - row.enabled = sc.show_report_operator - row.operator("console.report_replay") - else: - row = layout.row(align=True) - row.operator("console.autocomplete", text="Autocomplete") + row = layout.row(align=True) + row.operator("console.autocomplete", text="Autocomplete") class CONSOLE_MT_console(bpy.types.Menu): @@ -76,18 +57,6 @@ class CONSOLE_MT_console(bpy.types.Menu): layout.operator("screen.screen_full_area") -class CONSOLE_MT_report(bpy.types.Menu): - bl_label = "Report" - - def draw(self, context): - layout = self.layout - layout.column() - layout.operator("console.select_all_toggle") - layout.operator("console.select_border") - layout.operator("console.report_delete") - layout.operator("console.report_copy") - - class CONSOLE_MT_language(bpy.types.Menu): bl_label = "Languages..." @@ -138,10 +107,6 @@ class ConsoleAutocomplete(bpy.types.Operator): bl_idname = "console.autocomplete" bl_label = "Console Autocomplete" - @classmethod - def poll(cls, context): - return context.space_data.console_type != 'REPORT' - def execute(self, context): sc = context.space_data module = __import__("console_" + sc.language) @@ -186,7 +151,7 @@ class ConsoleLanguage(bpy.types.Operator): sc = context.space_data # defailt to python - sc.language = self.properties.language + sc.language = self.language bpy.ops.console.banner() @@ -198,11 +163,11 @@ class ConsoleLanguage(bpy.types.Operator): def register(): - pass + bpy.utils.register_module(__name__) def unregister(): - pass + bpy.utils.unregister_module(__name__) if __name__ == "__main__": register() |