UI: rename manipulator to gizmo

This is a common, short, distinctive term often used for this purpose.

Changes to internal API's still needed.
This commit is contained in:
Campbell Barton 2018-07-14 22:29:35 +02:00
parent 5a716701e8
commit fc7c934cfc
6 changed files with 18 additions and 18 deletions

View File

@ -258,7 +258,7 @@ class USERPREF_PT_interface(Panel):
#col.label(text="Open Toolbox Delay:")
#col.prop(view, "open_left_mouse_delay", text="Hold LMB")
#col.prop(view, "open_right_mouse_delay", text="Hold RMB")
col.prop(view, "show_manipulator", text="Manipulators")
col.prop(view, "show_manipulator", text="Gizmos")
sub = col.column()
sub.active = view.show_manipulator
sub.prop(view, "manipulator_size", text="Size")
@ -273,7 +273,7 @@ class USERPREF_PT_interface(Panel):
row.separator()
col = row.column()
col.label(text="View Manipulation:")
col.label(text="View Gizmos:")
col.prop(view, "use_mouse_depth_cursor")
col.prop(view, "use_cursor_lock_adjust")
col.prop(view, "use_mouse_depth_navigate")
@ -916,7 +916,7 @@ class USERPREF_PT_theme(Panel):
col.separator()
col.separator()
col.label("Axis & Manipulator Colors:")
col.label("Axis & Gizmo Colors:")
row = col.row()

View File

@ -3958,7 +3958,7 @@ class VIEW3D_PT_overlay_manipulators(Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'HEADER'
bl_parent_id = 'VIEW3D_PT_overlay'
bl_label = "Manipulators"
bl_label = "Gizmo"
def draw_header(self, context):
view = context.space_data

View File

@ -2694,7 +2694,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
RNA_def_property_enum_sdna(prop, NULL, "manipulator_flag");
RNA_def_property_enum_items(prop, rna_enum_manipulator_items);
RNA_def_property_flag(prop, PROP_ENUM_FLAG);
RNA_def_property_ui_text(prop, "Manipulator", "");
RNA_def_property_ui_text(prop, "Gizmo Mode", "");
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, "rna_ToolSettings_manipulator_flag_update");
/* Grease Pencil */

View File

@ -2941,22 +2941,22 @@ static void rna_def_space_view3d(BlenderRNA *brna)
prop = RNA_def_property(srna, "show_manipulator", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "mpr_flag", V3D_MANIPULATOR_HIDE);
RNA_def_property_ui_text(prop, "Manipulator", "Show manipulators of all types");
RNA_def_property_ui_text(prop, "Show Gizmo", "Show gizmos of all types");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
prop = RNA_def_property(srna, "show_manipulator_navigate", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "mpr_flag", V3D_MANIPULATOR_HIDE_NAVIGATE);
RNA_def_property_ui_text(prop, "Navigate Manipulator", "");
RNA_def_property_ui_text(prop, "Navigate Gizmo", "");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
prop = RNA_def_property(srna, "show_manipulator_context", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "mpr_flag", V3D_MANIPULATOR_HIDE_CONTEXT);
RNA_def_property_ui_text(prop, "Context Manipulator", "Context sensitive manipulators for the active item");
RNA_def_property_ui_text(prop, "Context Gizmo", "Context sensitive manipulators for the active item");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
prop = RNA_def_property(srna, "show_manipulator_tool", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "mpr_flag", V3D_MANIPULATOR_HIDE_TOOL);
RNA_def_property_ui_text(prop, "Tool Manipulator", "Active tool manipulator");
RNA_def_property_ui_text(prop, "Tool Gizmo", "Active tool manipulator");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
prop = RNA_def_property(srna, "lock_camera_and_layers", PROP_BOOLEAN, PROP_NONE);

View File

@ -1205,31 +1205,31 @@ static void rna_def_userdef_theme_ui(BlenderRNA *brna)
prop = RNA_def_property(srna, "manipulator_hi", PROP_FLOAT, PROP_COLOR_GAMMA);
RNA_def_property_float_sdna(prop, NULL, "manipulator_hi");
RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Manipulator Highlight", "");
RNA_def_property_ui_text(prop, "Gizmo Highlight", "");
RNA_def_property_update(prop, 0, "rna_userdef_update");
prop = RNA_def_property(srna, "manipulator_primary", PROP_FLOAT, PROP_COLOR_GAMMA);
RNA_def_property_float_sdna(prop, NULL, "manipulator_primary");
RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Manipulator Primary", "");
RNA_def_property_ui_text(prop, "Gizmo Primary", "");
RNA_def_property_update(prop, 0, "rna_userdef_update");
prop = RNA_def_property(srna, "manipulator_secondary", PROP_FLOAT, PROP_COLOR_GAMMA);
RNA_def_property_float_sdna(prop, NULL, "manipulator_secondary");
RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Manipulator Secondary", "");
RNA_def_property_ui_text(prop, "Gizmo Secondary", "");
RNA_def_property_update(prop, 0, "rna_userdef_update");
prop = RNA_def_property(srna, "manipulator_a", PROP_FLOAT, PROP_COLOR_GAMMA);
RNA_def_property_float_sdna(prop, NULL, "manipulator_a");
RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Manipulator A", "");
RNA_def_property_ui_text(prop, "Gizmo A", "");
RNA_def_property_update(prop, 0, "rna_userdef_update");
prop = RNA_def_property(srna, "manipulator_b", PROP_FLOAT, PROP_COLOR_GAMMA);
RNA_def_property_float_sdna(prop, NULL, "manipulator_b");
RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Manipulator B", "");
RNA_def_property_ui_text(prop, "Gizmo B", "");
RNA_def_property_update(prop, 0, "rna_userdef_update");
}

View File

@ -303,7 +303,7 @@ static int manipulator_select_invoke(bContext *C, wmOperator *op, const wmEvent
void MANIPULATORGROUP_OT_manipulator_select(wmOperatorType *ot)
{
/* identifiers */
ot->name = "Manipulator Select";
ot->name = "Gizmo Select";
ot->description = "Select the currently highlighted manipulator";
ot->idname = "MANIPULATORGROUP_OT_manipulator_select";
@ -585,8 +585,8 @@ static int manipulator_tweak_invoke(bContext *C, wmOperator *op, const wmEvent *
void MANIPULATORGROUP_OT_manipulator_tweak(wmOperatorType *ot)
{
/* identifiers */
ot->name = "Manipulator Tweak";
ot->description = "Tweak the active manipulator";
ot->name = "Gizmo Tweak";
ot->description = "Tweak the active gizmo";
ot->idname = "MANIPULATORGROUP_OT_manipulator_tweak";
/* api callbacks */
@ -600,7 +600,7 @@ void MANIPULATORGROUP_OT_manipulator_tweak(wmOperatorType *ot)
#endif
}
/** \} */ // Manipulator operators
/** \} */
static wmKeyMap *manipulatorgroup_tweak_modal_keymap(wmKeyConfig *keyconf, const char *mgroupname)