From fc7c934cfc00bd58f5cb6114bc9ca1e2e07564e1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 14 Jul 2018 22:29:35 +0200 Subject: [PATCH] UI: rename manipulator to gizmo This is a common, short, distinctive term often used for this purpose. Changes to internal API's still needed. --- release/scripts/startup/bl_ui/space_userpref.py | 6 +++--- release/scripts/startup/bl_ui/space_view3d.py | 2 +- source/blender/makesrna/intern/rna_scene.c | 2 +- source/blender/makesrna/intern/rna_space.c | 8 ++++---- source/blender/makesrna/intern/rna_userdef.c | 10 +++++----- .../manipulators/intern/wm_manipulator_group.c | 8 ++++---- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 806b57e0297..0c717aa21d5 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -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() diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index f9b69b8de66..3f711ace97e 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -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 diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 0c734a8e7c7..690c6d8e4c1 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -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 */ diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index b89a4f09d9f..4bdf7a09585 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -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); diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 3d116482656..d8941e303d9 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -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"); } diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c b/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c index f9b55865bf0..8bda9e91db7 100644 --- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c +++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_group.c @@ -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)