Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | def draw_props(self, context, layout): | ||||
| flow.prop(system, "use_region_overlap") | flow.prop(system, "use_region_overlap") | ||||
| flow.prop(view, "show_layout_ui", text="Corner Splitting") | flow.prop(view, "show_layout_ui", text="Corner Splitting") | ||||
| flow.prop(view, "show_navigate_ui") | flow.prop(view, "show_navigate_ui") | ||||
| flow.prop(view, "color_picker_type") | flow.prop(view, "color_picker_type") | ||||
| flow.row().prop(view, "header_align") | flow.row().prop(view, "header_align") | ||||
| flow.prop(view, "factor_display_type") | flow.prop(view, "factor_display_type") | ||||
| class USERPREF_PT_interface_temporary_editors(PreferencePanel, Panel): | |||||
| bl_label = "Temporary Editors" | |||||
brecht: I think we can find a better name for this, "temporary" is not that clear.
Can't immediately… | |||||
SeverinAuthorUnsubmitted Done Inline ActionsHow about Intrusive Editors or Interrupting Editors? Severin: How about //Intrusive Editors// or //Interrupting Editors//?
At least for most editors that… | |||||
| bl_parent_id = "USERPREF_PT_interface_editors" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| prefs = context.preferences | |||||
| return (prefs.active_section == 'INTERFACE') | |||||
| def draw_props(self, context, layout): | |||||
| prefs = context.preferences | |||||
| view = prefs.view | |||||
| flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) | |||||
| flow.prop(view, "render_display_type", text="Render in") | |||||
| flow.prop(view, "filebrowser_display_type", text="File Browser") | |||||
| class USERPREF_PT_interface_menus(Panel): | class USERPREF_PT_interface_menus(Panel): | ||||
| bl_space_type = 'PREFERENCES' | bl_space_type = 'PREFERENCES' | ||||
| bl_region_type = 'WINDOW' | bl_region_type = 'WINDOW' | ||||
| bl_label = "Menus" | bl_label = "Menus" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ▲ Show 20 Lines • Show All 1,809 Lines • ▼ Show 20 Lines | classes = ( | ||||
| *ThemeGenericClassGenerator.generate_panel_classes_for_wcols(), | *ThemeGenericClassGenerator.generate_panel_classes_for_wcols(), | ||||
| USERPREF_HT_header, | USERPREF_HT_header, | ||||
| USERPREF_PT_navigation_bar, | USERPREF_PT_navigation_bar, | ||||
| USERPREF_PT_save_preferences, | USERPREF_PT_save_preferences, | ||||
| USERPREF_MT_save_load, | USERPREF_MT_save_load, | ||||
| USERPREF_PT_interface_display, | USERPREF_PT_interface_display, | ||||
| USERPREF_PT_interface_editors, | USERPREF_PT_interface_editors, | ||||
| USERPREF_PT_interface_temporary_editors, | |||||
| USERPREF_PT_interface_translation, | USERPREF_PT_interface_translation, | ||||
| USERPREF_PT_interface_text, | USERPREF_PT_interface_text, | ||||
| USERPREF_PT_interface_menus, | USERPREF_PT_interface_menus, | ||||
| USERPREF_PT_interface_menus_mouse_over, | USERPREF_PT_interface_menus_mouse_over, | ||||
| USERPREF_PT_interface_menus_pie, | USERPREF_PT_interface_menus_pie, | ||||
| USERPREF_PT_viewport_display, | USERPREF_PT_viewport_display, | ||||
| USERPREF_PT_viewport_quality, | USERPREF_PT_viewport_quality, | ||||
| ▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines | |||||
I think we can find a better name for this, "temporary" is not that clear.
Can't immediately think of some good, maybe "Opening Editors"?