[Bf-blender-cvs] [4c353205ea2] master: UI: Various tooltip corrections and fixes

William Reynish noreply at git.blender.org
Sat Aug 24 00:45:24 CEST 2019


Commit: 4c353205ea2d15c3cd314eeeaf60edc04f4c06ad
Author: William Reynish
Date:   Sat Aug 24 00:45:21 2019 +0200
Branches: master
https://developer.blender.org/rB4c353205ea2d15c3cd314eeeaf60edc04f4c06ad

UI: Various tooltip corrections and fixes

Patch by Yevgeny Makarov (jenkm)

Differential Revision: D5514

===================================================================

M	source/blender/editors/curve/editcurve_select.c
M	source/blender/editors/interface/interface_context_menu.c
M	source/blender/editors/mask/mask_shapekey.c
M	source/blender/editors/screen/screen_ops.c
M	source/blender/editors/space_sequencer/sequencer_edit.c
M	source/blender/makesrna/intern/rna_nodetree.c
M	source/blender/makesrna/intern/rna_object_force.c
M	source/blender/makesrna/intern/rna_space.c
M	source/blender/makesrna/intern/rna_ui.c

===================================================================

diff --git a/source/blender/editors/curve/editcurve_select.c b/source/blender/editors/curve/editcurve_select.c
index d3f0ebfda3c..f67ccf1e4bd 100644
--- a/source/blender/editors/curve/editcurve_select.c
+++ b/source/blender/editors/curve/editcurve_select.c
@@ -1417,7 +1417,7 @@ void CURVE_OT_select_nth(wmOperatorType *ot)
 {
   /* identifiers */
   ot->name = "Checker Deselect";
-  ot->description = "Deselect every other vertex";
+  ot->description = "Deselect every Nth point starting from the active one";
   ot->idname = "CURVE_OT_select_nth";
 
   /* api callbacks */
diff --git a/source/blender/editors/interface/interface_context_menu.c b/source/blender/editors/interface/interface_context_menu.c
index 56d4cab202c..0884a9ea470 100644
--- a/source/blender/editors/interface/interface_context_menu.c
+++ b/source/blender/editors/interface/interface_context_menu.c
@@ -1222,7 +1222,7 @@ void ui_popup_context_menu_for_panel(bContext *C, ARegion *ar, Panel *pa)
                  sizeof(tmpstr),
                  "%s" UI_SEP_CHAR_S "%s",
                  IFACE_("Pin"),
-                 IFACE_("Shift+Left Mouse"));
+                 IFACE_("Shift Left Mouse"));
     uiItemR(layout, &ptr, "use_pin", 0, tmpstr, ICON_NONE);
 
     /* evil, force shortcut flag */
@@ -1230,6 +1230,7 @@ void ui_popup_context_menu_for_panel(bContext *C, ARegion *ar, Panel *pa)
       uiBlock *block = uiLayoutGetBlock(layout);
       uiBut *but = block->buttons.last;
       but->flag |= UI_BUT_HAS_SEP_CHAR;
+      but->drawflag |= UI_BUT_HAS_SHORTCUT;
     }
   }
   UI_popup_menu_end(C, pup);
diff --git a/source/blender/editors/mask/mask_shapekey.c b/source/blender/editors/mask/mask_shapekey.c
index edc22943124..1abe805192d 100644
--- a/source/blender/editors/mask/mask_shapekey.c
+++ b/source/blender/editors/mask/mask_shapekey.c
@@ -81,6 +81,7 @@ void MASK_OT_shape_key_insert(wmOperatorType *ot)
 {
   /* identifiers */
   ot->name = "Insert Shape Key";
+  ot->description = "Insert mask shape keyframe for active mask layer at the current frame";
   ot->idname = "MASK_OT_shape_key_insert";
 
   /* api callbacks */
@@ -129,6 +130,7 @@ void MASK_OT_shape_key_clear(wmOperatorType *ot)
 {
   /* identifiers */
   ot->name = "Clear Shape Key";
+  ot->description = "Remove mask shape keyframe for active mask layer at the current frame";
   ot->idname = "MASK_OT_shape_key_clear";
 
   /* api callbacks */
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index 625e172017b..096870a090a 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -3752,7 +3752,7 @@ static void SCREEN_OT_redo_last(wmOperatorType *ot)
 {
   /* identifiers */
   ot->name = "Redo Last";
-  ot->description = "Display menu for last action performed";
+  ot->description = "Display parameters for last action performed";
   ot->idname = "SCREEN_OT_redo_last";
 
   /* api callbacks */
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index ed0303564c6..22b73c32bfe 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -3405,6 +3405,7 @@ void SEQUENCER_OT_copy(wmOperatorType *ot)
   /* identifiers */
   ot->name = "Copy";
   ot->idname = "SEQUENCER_OT_copy";
+  ot->description = "Copy selected strips to clipboard";
 
   /* api callbacks */
   ot->exec = sequencer_copy_exec;
@@ -3470,6 +3471,7 @@ void SEQUENCER_OT_paste(wmOperatorType *ot)
   /* identifiers */
   ot->name = "Paste";
   ot->idname = "SEQUENCER_OT_paste";
+  ot->description = "Paste strips from clipboard";
 
   /* api callbacks */
   ot->exec = sequencer_paste_exec;
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 98bb9df78ae..0909aa42a4d 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -6733,7 +6733,7 @@ static void def_cmp_colorbalance(StructRNA *srna)
   RNA_def_property_float_sdna(prop, NULL, "offset");
   RNA_def_property_array(prop, 3);
   RNA_def_property_ui_range(prop, 0, 1, 0.1, 3);
-  RNA_def_property_ui_text(prop, "Offset", "Correction for Shadows");
+  RNA_def_property_ui_text(prop, "Offset", "Correction for entire tonal range");
   RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeColorBalance_update_cdl");
 
   prop = RNA_def_property(srna, "power", PROP_FLOAT, PROP_COLOR_GAMMA);
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 5460dc6dfa1..d082dfc694c 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -87,15 +87,15 @@ static const EnumPropertyItem empty_shape_items[] = {
 static const EnumPropertyItem vortex_shape_items[] = {
     {PFIELD_SHAPE_POINT, "POINT", 0, "Point", ""},
     {PFIELD_SHAPE_PLANE, "PLANE", 0, "Plane", ""},
-    {PFIELD_SHAPE_SURFACE, "SURFACE", 0, "Surface falloff (New)", ""},
-    {PFIELD_SHAPE_POINTS, "POINTS", 0, "Every Point (New)", ""},
+    {PFIELD_SHAPE_SURFACE, "SURFACE", 0, "Surface", ""},
+    {PFIELD_SHAPE_POINTS, "POINTS", 0, "Every Point", ""},
     {0, NULL, 0, NULL, NULL},
 };
 
 static const EnumPropertyItem curve_vortex_shape_items[] = {
     {PFIELD_SHAPE_POINT, "POINT", 0, "Point", ""},
     {PFIELD_SHAPE_PLANE, "PLANE", 0, "Plane", ""},
-    {PFIELD_SHAPE_SURFACE, "SURFACE", 0, "Curve (New)", ""},
+    {PFIELD_SHAPE_SURFACE, "SURFACE", 0, "Curve", ""},
     {0, NULL, 0, NULL, NULL},
 };
 
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 69f695f0c45..8c855c9e870 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -3781,7 +3781,7 @@ static void rna_def_space_view3d(BlenderRNA *brna)
 
   prop = RNA_def_property(srna, "show_gizmo_navigate", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_negative_sdna(prop, NULL, "gizmo_flag", V3D_GIZMO_HIDE_NAVIGATE);
-  RNA_def_property_ui_text(prop, "Navigate Gizmo", "");
+  RNA_def_property_ui_text(prop, "Navigate Gizmo", "Viewport navigation gizmo");
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
 
   prop = RNA_def_property(srna, "show_gizmo_context", PROP_BOOLEAN, PROP_NONE);
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c
index 097e62a1fea..a7f0c8ff19c 100644
--- a/source/blender/makesrna/intern/rna_ui.c
+++ b/source/blender/makesrna/intern/rna_ui.c
@@ -1410,7 +1410,7 @@ static void rna_def_panel(BlenderRNA *brna)
 
   prop = RNA_def_property(srna, "use_pin", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", PNL_PIN);
-  RNA_def_property_ui_text(prop, "Pin", "");
+  RNA_def_property_ui_text(prop, "Pin", "Show the panel on all tabs");
   /* XXX, should only tag region for redraw */
   RNA_def_property_update(prop, NC_WINDOW, NULL);



More information about the Bf-blender-cvs mailing list