[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46351] trunk/blender/source/blender: Last part of fix for [#31157]: Some (actually, 172) operators have no tooltip.

Bastien Montagne montagne29 at wanadoo.fr
Sun May 6 17:03:31 CEST 2012


Revision: 46351
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46351
Author:   mont29
Date:     2012-05-06 15:03:31 +0000 (Sun, 06 May 2012)
Log Message:
-----------
Last part of fix for [#31157]: Some (actually, 172) operators have no tooltip.
Only remaining undocumented one is IMAGE_OT_record_composite (not sure what it actually does, nor even whether it?\226?\128?\153s actually working or not...).

Note that I didn?\226?\128?\153t bother with operators flagged as OPTYPE_INTERNAL!

Modified Paths:
--------------
    trunk/blender/source/blender/editors/armature/editarmature_sketch.c
    trunk/blender/source/blender/editors/physics/physics_pointcache.c
    trunk/blender/source/blender/editors/screen/screen_ops.c
    trunk/blender/source/blender/editors/screen/screendump.c
    trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
    trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
    trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/editors/armature/editarmature_sketch.c
===================================================================
--- trunk/blender/source/blender/editors/armature/editarmature_sketch.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/editors/armature/editarmature_sketch.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -2595,6 +2595,7 @@
 	/* identifiers */
 	ot->name = "Delete";
 	ot->idname = "SKETCH_OT_delete";
+	ot->description = "Delete a sketch stroke";
 
 	/* api callbacks */
 	ot->invoke = sketch_delete;
@@ -2610,6 +2611,7 @@
 	/* identifiers */
 	ot->name = "Select";
 	ot->idname = "SKETCH_OT_select";
+	ot->description = "Select a sketch stroke";
 
 	/* api callbacks */
 	ot->invoke = sketch_select;
@@ -2625,6 +2627,7 @@
 	/* identifiers */
 	ot->name = "Cancel Stroke";
 	ot->idname = "SKETCH_OT_cancel_stroke";
+	ot->description = "Cancel the current sketch stroke";
 
 	/* api callbacks */
 	ot->invoke = sketch_cancel;
@@ -2640,6 +2643,7 @@
 	/* identifiers */
 	ot->name = "Convert";
 	ot->idname = "SKETCH_OT_convert";
+	ot->description = "Convert the selected sketch strokes to bone chains";
 
 	/* api callbacks */
 	ot->invoke = sketch_convert;
@@ -2655,6 +2659,7 @@
 	/* identifiers */
 	ot->name = "End Stroke";
 	ot->idname = "SKETCH_OT_finish_stroke";
+	ot->description = "End and keep the current sketch stroke";
 
 	/* api callbacks */
 	ot->invoke = sketch_finish;
@@ -2670,6 +2675,7 @@
 	/* identifiers */
 	ot->name = "Draw Preview";
 	ot->idname = "SKETCH_OT_draw_preview";
+	ot->description = "Draw preview of current sketch stroke (internal use)";
 
 	/* api callbacks */
 	ot->invoke = sketch_draw_preview;
@@ -2687,6 +2693,7 @@
 	/* identifiers */
 	ot->name = "Draw Stroke";
 	ot->idname = "SKETCH_OT_draw_stroke";
+	ot->description = "Start to draw a sketch stroke";
 
 	/* api callbacks */
 	ot->invoke = sketch_draw_stroke;
@@ -2706,6 +2713,7 @@
 	/* identifiers */
 	ot->name = "Gesture";
 	ot->idname = "SKETCH_OT_gesture";
+	ot->description = "Start to draw a gesture stroke";
 
 	/* api callbacks */
 	ot->invoke = sketch_draw_gesture;

Modified: trunk/blender/source/blender/editors/physics/physics_pointcache.c
===================================================================
--- trunk/blender/source/blender/editors/physics/physics_pointcache.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/editors/physics/physics_pointcache.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -173,6 +173,7 @@
 	/* identifiers */
 	ot->name = "Free All Physics Bakes";
 	ot->idname = "PTCACHE_OT_free_bake_all";
+	ot->description = "Free all baked caches of all objects in the current scene";
 	
 	/* api callbacks */
 	ot->exec = ptcache_free_bake_all_exec;

Modified: trunk/blender/source/blender/editors/screen/screen_ops.c
===================================================================
--- trunk/blender/source/blender/editors/screen/screen_ops.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/editors/screen/screen_ops.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -1834,6 +1834,7 @@
 {
 	ot->name = "Frame Offset";
 	ot->idname = "SCREEN_OT_frame_offset";
+	ot->description = "Move current frame forward/backward by a given number";
 	
 	ot->exec = frame_offset_exec;
 	
@@ -2703,6 +2704,7 @@
 	/* identifiers */
 	ot->name = "Flip Region";
 	ot->idname = "SCREEN_OT_region_flip";
+	ot->description = "Toggle the region's alignment (left/right or top/bottom)";
 	
 	/* api callbacks */
 	ot->exec = region_flip_exec;
@@ -2752,6 +2754,7 @@
 	/* identifiers */
 	ot->name = "Flip Header Region";
 	ot->idname = "SCREEN_OT_header_flip";
+	ot->description = "Toggle the header over/below the main window area";
 	
 	/* api callbacks */
 	ot->exec = header_flip_exec;

Modified: trunk/blender/source/blender/editors/screen/screendump.c
===================================================================
--- trunk/blender/source/blender/editors/screen/screendump.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/editors/screen/screendump.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -255,6 +255,7 @@
 {
 	ot->name = "Save Screenshot"; /* weak: opname starting with 'save' makes filewindow give save-over */
 	ot->idname = "SCREEN_OT_screenshot";
+	ot->description = "Capture a picture of the active area or whole Blender window";
 	
 	ot->invoke = screenshot_invoke;
 	ot->check = screenshot_check;
@@ -266,7 +267,7 @@
 	ot->flag = 0;
 	
 	WM_operator_properties_filesel(ot, FOLDERFILE|IMAGEFILE, FILE_SPECIAL, FILE_SAVE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
-	RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "");
+	RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "Screenshot the whole Blender window");
 }
 
 /* *************** screenshot movie job ************************* */
@@ -433,6 +434,7 @@
 {
 	ot->name = "Make Screencast";
 	ot->idname = "SCREEN_OT_screencast";
+	ot->description = "Capture a video of the active area or whole Blender window";
 	
 	ot->invoke = WM_operator_confirm;
 	ot->exec = screencast_exec;
@@ -441,7 +443,7 @@
 	ot->flag = 0;
 	
 	RNA_def_property(ot->srna, "filepath", PROP_STRING, PROP_FILEPATH);
-	RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "");
+	RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "Screencast the whole Blender window");
 }
 
 

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -3047,6 +3047,8 @@
 	/* identifiers */
 	ot->name = "Weight from Bones";
 	ot->idname = "PAINT_OT_weight_from_bones";
+	ot->description = "Set the weights of the groups matching the attached armature's selected bones, "
+	                  "using the distance between the vertices and the bones";
 	
 	/* api callbacks */
 	ot->exec = weight_from_bones_exec;

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -3621,8 +3621,9 @@
 	};
 
 	/* identifiers */
-	ot->name = "Sculpt Mode";
+	ot->name = "Sculpt";
 	ot->idname = "SCULPT_OT_brush_stroke";
+	ot->description = "Sculpt a stroke into the geometry";
 	
 	/* api callbacks */
 	ot->invoke = sculpt_brush_stroke_invoke;
@@ -3668,6 +3669,7 @@
 	/* identifiers */
 	ot->name = "Set Persistent Base";
 	ot->idname = "SCULPT_OT_set_persistent_base";
+	ot->description = "Reset the copy of the mesh that is being sculpted on";
 	
 	/* api callbacks */
 	ot->exec = sculpt_set_persistent_base;
@@ -3746,6 +3748,7 @@
 	/* identifiers */
 	ot->name = "Sculpt Mode";
 	ot->idname = "SCULPT_OT_sculptmode_toggle";
+	ot->description = "Toggle sculpt mode in 3D view";
 	
 	/* api callbacks */
 	ot->exec = sculpt_toggle_mode;

Modified: trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -744,6 +744,8 @@
 	/* identifiers */
 	ot->name = "Pack Islands";
 	ot->idname = "UV_OT_pack_islands";
+	ot->description = "Transform all islands so that they fill up the UV space as much as possible";
+
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */
@@ -784,6 +786,8 @@
 	/* identifiers */
 	ot->name = "Average Islands Scale";
 	ot->idname = "UV_OT_average_islands_scale";
+	ot->description = "Average the size of separate UV islands, based on their area in 3D space";
+
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */
@@ -1324,6 +1328,8 @@
 	/* identifiers */
 	ot->name = "Project From View";
 	ot->idname = "UV_OT_project_from_view";
+	ot->description = "Project the UV vertices of the mesh as seen in current 3D view";
+
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */
@@ -1363,6 +1369,8 @@
 	/* identifiers */
 	ot->name = "Reset";
 	ot->idname = "UV_OT_reset";
+	ot->description = "Reset UV projection";
+
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */
@@ -1464,6 +1472,8 @@
 	/* identifiers */
 	ot->name = "Sphere Projection";
 	ot->idname = "UV_OT_sphere_project";
+	ot->description = "Project the UV vertices of the mesh over the curved surface of a sphere";
+
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */
@@ -1537,6 +1547,8 @@
 	/* identifiers */
 	ot->name = "Cylinder Projection";
 	ot->idname = "UV_OT_cylinder_project";
+	ot->description = "Project the UV vertices of the mesh over the curved wall of a cylinder";
+
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */
@@ -1615,6 +1627,8 @@
 	/* identifiers */
 	ot->name = "Cube Projection";
 	ot->idname = "UV_OT_cube_project";
+	ot->description = "Project the UV vertices of the mesh over the six faces of a cube";
+
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */

Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2012-05-06 13:49:12 UTC (rev 46350)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2012-05-06 15:03:31 UTC (rev 46351)
@@ -1454,7 +1454,7 @@
 
 static int wm_search_menu_exec(bContext *UNUSED(C), wmOperator *UNUSED(op))
 {
-	return OPERATOR_FINISHED;	
+	return OPERATOR_FINISHED;
 }
 
 static int wm_search_menu_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
@@ -1488,6 +1488,7 @@
 {
 	ot->name = "Search Menu";
 	ot->idname = "WM_OT_search_menu";
+	ot->description = "Pop-up a search menu over all available operators in current context";
 	
 	ot->invoke = wm_search_menu_invoke;
 	ot->exec = wm_search_menu_exec;
@@ -3431,6 +3432,7 @@
 {
 	ot->name = "Radial Control";
 	ot->idname = "WM_OT_radial_control";
+	ot->description = "Set some size property (like e.g. brush size) with mouse wheel";
 
 	ot->invoke = radial_control_invoke;
 	ot->modal = radial_control_modal;




More information about the Bf-blender-cvs mailing list