Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/presets/keyconfig/blender.py
| Context not available. | |||||
| ) | ) | ||||
| def draw(self, layout): | def draw(self, layout): | ||||
| is_select_left = (self.select_mouse == 'LEFT') | layout.use_property_split = True | ||||
| split = layout.split() | is_select_left = (self.select_mouse == 'LEFT') | ||||
| col = split.column(align=True) | |||||
| col.label(text="Select With:") | |||||
| col.row().prop(self, "select_mouse", expand=True) | |||||
| # General settings. | |||||
| col = layout.column() | |||||
| col.row().prop(self, "select_mouse", text="Select with Mouse Button", expand=True) | |||||
| col.row().prop(self, "spacebar_action", text="Spacebar Action", expand=True) | |||||
| if is_select_left: | if is_select_left: | ||||
| col.label(text="Activate Gizmo:") | col.row().prop(self, "gizmo_action", text="Activate Gizmo Event", expand=True) | ||||
| col.row().prop(self, "gizmo_action", expand=True) | |||||
| else: | # Checkboxes sub-layout. | ||||
| col.label() | col = layout.column() | ||||
| col.label() | sub = col.column(align=True) | ||||
| sub.prop(self, "use_select_all_toggle") | |||||
| col.prop(self, "use_select_all_toggle") | |||||
| # 3DView settings. | |||||
| col = split.column(align=True) | col = layout.column() | ||||
| col.label(text="Spacebar Action:") | col.label(text="3D View") | ||||
| col.row().prop(self, "spacebar_action", expand=True) | col.row().prop(self, "v3d_tilde_action", text="Grave Accent / Tilde Action", expand=True) | ||||
| col.row().prop(self, "v3d_mmb_action", text="Middle Mouse Action", expand=True) | |||||
| layout.label(text="3D View:") | col.row().prop(self, "v3d_alt_mmb_drag_action", text="Alt + Middle Mouse Drag Action", expand=True) | ||||
| split = layout.split() | |||||
| col = split.column() | # Checkboxes sub-layout. | ||||
| col.prop(self, "use_v3d_tab_menu") | col = layout.column() | ||||
| col.prop(self, "use_pie_click_drag") | sub = col.column(align=True) | ||||
| col.prop(self, "use_v3d_shade_ex_pie") | sub.prop(self, "use_v3d_tab_menu") | ||||
| col = split.column() | sub.prop(self, "use_pie_click_drag") | ||||
| col.label(text="Tilde Action:") | sub.prop(self, "use_v3d_shade_ex_pie") | ||||
| col.row().prop(self, "v3d_tilde_action", expand=True) | |||||
| col.label(text="Middle Mouse Action:") | |||||
| col.row().prop(self, "v3d_mmb_action", expand=True) | |||||
| col.label(text="Alt Middle Mouse Drag Action:") | |||||
| col.row().prop(self, "v3d_alt_mmb_drag_action", expand=True) | |||||
| blender_default = bpy.utils.execfile(os.path.join(DIRNAME, "keymap_data", "blender_default.py")) | blender_default = bpy.utils.execfile(os.path.join(DIRNAME, "keymap_data", "blender_default.py")) | ||||
| Context not available. | |||||