[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23153] trunk/blender/source/blender: many docstrings from Ron Walker and Luca (mindrones on IRC),

Campbell Barton ideasman42 at gmail.com
Sat Sep 12 19:16:12 CEST 2009


Revision: 23153
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23153
Author:   campbellbarton
Date:     2009-09-12 19:16:12 +0200 (Sat, 12 Sep 2009)

Log Message:
-----------
many docstrings from Ron Walker and Luca (mindrones on IRC),
only did a spot check on these, may need adjusting later.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/curve/editfont.c
    trunk/blender/source/blender/editors/metaball/mball_edit.c
    trunk/blender/source/blender/editors/object/object_lattice.c
    trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
    trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c
    trunk/blender/source/blender/editors/space_buttons/buttons_ops.c
    trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c
    trunk/blender/source/blender/editors/space_sequencer/sequencer_buttons.c
    trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c
    trunk/blender/source/blender/editors/space_sequencer/sequencer_select.c
    trunk/blender/source/blender/editors/space_text/text_ops.c
    trunk/blender/source/blender/editors/space_time/time_ops.c
    trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c
    trunk/blender/source/blender/editors/space_view3d/view3d_view.c
    trunk/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c
    trunk/blender/source/blender/windowmanager/intern/wm_jobs.c
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/editors/curve/editfont.c
===================================================================
--- trunk/blender/source/blender/editors/curve/editfont.c	2009-09-12 16:25:49 UTC (rev 23152)
+++ trunk/blender/source/blender/editors/curve/editfont.c	2009-09-12 17:16:12 UTC (rev 23153)
@@ -317,6 +317,7 @@
 {
 	/* identifiers */
 	ot->name= "Insert Lorem";
+    ot->description= "Insert placeholder text.";
 	ot->idname= "FONT_OT_insert_lorem";
 	
 	/* api callbacks */
@@ -404,6 +405,7 @@
 {
 	/* identifiers */
 	ot->name= "Paste File";
+    ot->description= "Paste contents from file.";
 	ot->idname= "FONT_OT_file_paste";
 	
 	/* api callbacks */
@@ -452,6 +454,7 @@
 {
 	/* identifiers */
 	ot->name= "Paste Buffer";
+    ot->description= "Paste text from OS buffer.";
 	ot->idname= "FONT_OT_buffer_paste";
 	
 	/* api callbacks */
@@ -648,6 +651,7 @@
 {
 	/* identifiers */
 	ot->name= "Set Style";
+    ot->description= "Set font style.";
 	ot->idname= "FONT_OT_style_set";
 	
 	/* api callbacks */
@@ -685,6 +689,7 @@
 {
 	/* identifiers */
 	ot->name= "Toggle Style";
+    ot->description= "Toggle font style.";
 	ot->idname= "FONT_OT_style_toggle";
 	
 	/* api callbacks */
@@ -727,6 +732,7 @@
 {
 	/* identifiers */
 	ot->name= "Copy Text";
+    ot->description= "Copy selected text to clipboard.";
 	ot->idname= "FONT_OT_text_copy";
 	
 	/* api callbacks */
@@ -757,6 +763,7 @@
 {
 	/* identifiers */
 	ot->name= "Cut Text";
+    ot->description= "Cut selected text to clipboard.";
 	ot->idname= "FONT_OT_text_cut";
 	
 	/* api callbacks */
@@ -814,6 +821,7 @@
 {
 	/* identifiers */
 	ot->name= "Paste Text";
+    ot->description= "Paste text from clipboard.";
 	ot->idname= "FONT_OT_text_paste";
 	
 	/* api callbacks */
@@ -949,6 +957,7 @@
 {
 	/* identifiers */
 	ot->name= "Move Cursor";
+    ot->description= "Move cursor to position type.";
 	ot->idname= "FONT_OT_move";
 	
 	/* api callbacks */
@@ -975,6 +984,7 @@
 {
 	/* identifiers */
 	ot->name= "Move Select";
+    ot->description= "Make selection from current cursor position to new cursor position type.";
 	ot->idname= "FONT_OT_move_select";
 	
 	/* api callbacks */
@@ -1016,6 +1026,7 @@
 {
 	/* identifiers */
 	ot->name= "Change Spacing";
+    ot->description= "Change font spacing.";
 	ot->idname= "FONT_OT_change_spacing";
 	
 	/* api callbacks */
@@ -1060,6 +1071,7 @@
 {
 	/* identifiers */
 	ot->name= "Change Character";
+    ot->description= "Change font character code.";
 	ot->idname= "FONT_OT_change_character";
 	
 	/* api callbacks */
@@ -1102,6 +1114,7 @@
 {
 	/* identifiers */
 	ot->name= "Line Break";
+    ot->description= "Insert line break at cursor position.";
 	ot->idname= "FONT_OT_line_break";
 	
 	/* api callbacks */
@@ -1191,6 +1204,7 @@
 {
 	/* identifiers */
 	ot->name= "Delete";
+    ot->description= "Delete text by cursor position.";
 	ot->idname= "FONT_OT_delete";
 	
 	/* api callbacks */
@@ -1332,6 +1346,7 @@
 {
 	/* identifiers */
 	ot->name= "Insert Text";
+    ot->description= "Insert text at cursor position.";
 	ot->idname= "FONT_OT_text_insert";
 	
 	/* api callbacks */
@@ -1467,6 +1482,7 @@
 {
 	/* identifiers */
 	ot->name= "Set Case";
+    ot->description= "Set font case.";
 	ot->idname= "FONT_OT_case_set";
 	
 	/* api callbacks */
@@ -1509,6 +1525,7 @@
 {
 	/* identifiers */
 	ot->name= "Toggle Case";
+    ot->description= "Toggle font case.";
 	ot->idname= "FONT_OT_case_toggle";
 	
 	/* api callbacks */

Modified: trunk/blender/source/blender/editors/metaball/mball_edit.c
===================================================================
--- trunk/blender/source/blender/editors/metaball/mball_edit.c	2009-09-12 16:25:49 UTC (rev 23152)
+++ trunk/blender/source/blender/editors/metaball/mball_edit.c	2009-09-12 17:16:12 UTC (rev 23153)
@@ -223,6 +223,7 @@
 {
 	/* identifiers */
 	ot->name= "Select/Deselect All";
+    ot->description= "(de)select all metaelements.";
 	ot->idname= "MBALL_OT_select_deselect_all_metaelems";
 
 	/* callback functions */
@@ -261,6 +262,7 @@
 {
 	/* identifiers */
 	ot->name= "Inverse";
+    ot->description= "Select inverse of (un)selected metaelements.";
 	ot->idname= "MBALL_OT_select_inverse_metaelems";
 
 	/* callback functions */
@@ -306,6 +308,7 @@
 {
 	/* identifiers */
 	ot->name= "Random...";
+    ot->description= "Randomly select metaelements.";
 	ot->idname= "MBALL_OT_select_random_metaelems";
 	
 	/* callback functions */
@@ -364,6 +367,7 @@
 {
 	/* identifiers */
 	ot->name= "Duplicate";
+    ot->description= "Delete selected metaelement(s).";
 	ot->idname= "MBALL_OT_duplicate_metaelems";
 
 	/* callback functions */
@@ -409,6 +413,7 @@
 {
 	/* identifiers */
 	ot->name= "Delete";
+    ot->description= "Delete selected metaelement(s).";
 	ot->idname= "MBALL_OT_delete_metaelems";
 
 	/* callback functions */
@@ -458,6 +463,7 @@
 {
 	/* identifiers */
 	ot->name= "Hide";
+    ot->description= "Hide (un)selected metaelement(s).";
 	ot->idname= "MBALL_OT_hide_metaelems";
 
 	/* callback functions */
@@ -498,6 +504,7 @@
 {
 	/* identifiers */
 	ot->name= "Reveal";
+    ot->description= "Reveal all hidden metaelements.";
 	ot->idname= "MBALL_OT_reveal_metaelems";
 	
 	/* callback functions */

Modified: trunk/blender/source/blender/editors/object/object_lattice.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_lattice.c	2009-09-12 16:25:49 UTC (rev 23152)
+++ trunk/blender/source/blender/editors/object/object_lattice.c	2009-09-12 17:16:12 UTC (rev 23153)
@@ -206,6 +206,7 @@
 {
 	/* identifiers */
 	ot->name= "Select or Deselect All";
+    ot->description= "Toggle (de)select all UVW control points.";
 	ot->idname= "LATTICE_OT_select_all_toggle";
 	
 	/* api callbacks */
@@ -251,6 +252,7 @@
 {
 	/* identifiers */
 	ot->name= "Make Regular";
+    ot->description= "Set UVW control points a uniform distance apart.";
 	ot->idname= "LATTICE_OT_make_regular";
 	
 	/* api callbacks */

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c	2009-09-12 16:25:49 UTC (rev 23152)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c	2009-09-12 17:16:12 UTC (rev 23153)
@@ -66,6 +66,7 @@
 {
 	/* identifiers */
 	ot->name= "Add Brush";
+    ot->description= "Add brush by mode type.";
 	ot->idname= "BRUSH_OT_add";
 	
 	/* api callbacks */

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c	2009-09-12 16:25:49 UTC (rev 23152)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c	2009-09-12 17:16:12 UTC (rev 23153)
@@ -214,6 +214,7 @@
 		{0, NULL, 0, NULL, NULL}};
 
 	ot->name= "Preset";
+    ot->description= "Set brush shape.";
 	ot->idname= "BRUSH_OT_curve_preset";
 
 	ot->exec= brush_curve_preset_exec;

Modified: trunk/blender/source/blender/editors/space_buttons/buttons_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_buttons/buttons_ops.c	2009-09-12 16:25:49 UTC (rev 23152)
+++ trunk/blender/source/blender/editors/space_buttons/buttons_ops.c	2009-09-12 17:16:12 UTC (rev 23153)
@@ -106,6 +106,7 @@
 	/* identifiers */
 	ot->name= "Add Material Slot";
 	ot->idname= "OBJECT_OT_material_slot_add";
+	ot->description="Add a new material slot or duplicate the selected one.";
 	
 	/* api callbacks */
 	ot->exec= material_slot_add_exec;
@@ -132,6 +133,7 @@
 	/* identifiers */
 	ot->name= "Remove Material Slot";
 	ot->idname= "OBJECT_OT_material_slot_remove";
+	ot->description="Remove the selected material slot.";
 	
 	/* api callbacks */
 	ot->exec= material_slot_remove_exec;
@@ -190,6 +192,7 @@
 	/* identifiers */
 	ot->name= "Assign Material Slot";
 	ot->idname= "OBJECT_OT_material_slot_assign";
+	ot->description="Assign the material in the selected material slot to the selected vertices.";
 	
 	/* api callbacks */
 	ot->exec= material_slot_assign_exec;
@@ -273,6 +276,7 @@
 	/* identifiers */
 	ot->name= "Select Material Slot";
 	ot->idname= "OBJECT_OT_material_slot_select";
+	ot->description="Select vertices assigned to the selected material slot.";
 	
 	/* api callbacks */
 	ot->exec= material_slot_select_exec;
@@ -291,6 +295,7 @@
 	/* identifiers */
 	ot->name= "Deselect Material Slot";
 	ot->idname= "OBJECT_OT_material_slot_deselect";
+	ot->description="Deselect vertices assigned to the selected material slot.";
 	
 	/* api callbacks */
 	ot->exec= material_slot_deselect_exec;
@@ -338,6 +343,7 @@
 	/* identifiers */
 	ot->name= "New Material";
 	ot->idname= "MATERIAL_OT_new";
+	ot->description="Add a new material.";
 	
 	/* api callbacks */
 	ot->exec= new_material_exec;
@@ -390,6 +396,7 @@
 	/* identifiers */
 	ot->name= "New Texture";
 	ot->idname= "TEXTURE_OT_new";
+	ot->description="Add a new texture.";
 	
 	/* api callbacks */
 	ot->exec= new_texture_exec;
@@ -426,6 +433,7 @@
 	/* identifiers */
 	ot->name= "New World";
 	ot->idname= "WORLD_OT_new";
+	ot->description= "Add a new world.";
 	
 	/* api callbacks */
 	ot->exec= new_world_exec;
@@ -457,6 +465,7 @@
 	/* identifiers */
 	ot->name= "Add Particle System Slot";
 	ot->idname= "OBJECT_OT_particle_system_add";
+	ot->description="Add a particle system.";
 	
 	/* api callbacks */
 	ot->exec= particle_system_add_exec;
@@ -484,6 +493,7 @@
 	/* identifiers */
 	ot->name= "Remove Particle System Slot";
 	ot->idname= "OBJECT_OT_particle_system_remove";
+	ot->description="Remove the selected particle system.";
 	
 	/* api callbacks */
 	ot->exec= particle_system_remove_exec;
@@ -541,6 +551,7 @@
 	/* identifiers */
 	ot->name= "New Particle Settings";
 	ot->idname= "PARTICLE_OT_new";
+	ot->description="Add new particle settings.";
 	
 	/* api callbacks */
 	ot->exec= new_particle_settings_exec;
@@ -588,6 +599,7 @@
 	/* identifiers */
 	ot->name= "New Particle Target";
 	ot->idname= "PARTICLE_OT_new_target";
+	ot->description="Add a new particle target.";
 	
 	/* api callbacks */
 	ot->exec= new_particle_target_exec;
@@ -635,6 +647,7 @@
 	/* identifiers */
 	ot->name= "Remove Particle Target";
 	ot->idname= "PARTICLE_OT_remove_target";
+	ot->description="Remove the selected particle target.";
 	
 	/* api callbacks */
 	ot->exec= remove_particle_target_exec;
@@ -673,9 +686,9 @@
 void PARTICLE_OT_target_move_up(wmOperatorType *ot)
 {

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list