patch from Ron Walker (o6a).
authorCampbell Barton <ideasman42@gmail.com>
Mon, 24 Aug 2009 09:17:09 +0000 (09:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 24 Aug 2009 09:17:09 +0000 (09:17 +0000)
Descriptions for TFM, TEXT, CONSOLE and ED operators.
- Made some minor edits.

source/blender/editors/mesh/editmesh_mods.c
source/blender/editors/space_console/console_ops.c
source/blender/editors/space_console/console_report.c
source/blender/editors/space_text/text_header.c
source/blender/editors/space_text/text_ops.c
source/blender/editors/transform/transform_ops.c
source/blender/editors/util/undo.c
source/gameengine/GameLogic/SCA_PropertyEventManager.h

index d27aa3f7e3a31ef90b4af956b115b4cf0eeabab7..789527fd96d606fb7681bd5acd9720ff0f829d49 100644 (file)
@@ -4475,7 +4475,8 @@ void MESH_OT_vertices_transform_to_sphere(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Vertices to Sphere";
-       ot->description= "Move selected vertices outward in a spherical shape.";
+       //added "around cursor" to differentiate between "TFM_OT_tosphere()"
+       ot->description= "Move selected vertices outward in a spherical shape around cursor.";
        ot->idname= "MESH_OT_vertices_transform_to_sphere";
        
        /* api callbacks */
index fa9055f2d8d1772e8953b06b25ebfcbe6c0ff8c0..f8dbe0c3dd41d15eb46056b0969b55640a005f0b 100644 (file)
@@ -280,6 +280,7 @@ void CONSOLE_OT_move(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Move Cursor";
+    ot->description= "Move cursor position.";
        ot->idname= "CONSOLE_OT_move";
        
        /* api callbacks */
@@ -324,6 +325,7 @@ void CONSOLE_OT_insert(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Insert";
+    ot->description= "Insert text at cursor position.";
        ot->idname= "CONSOLE_OT_insert";
        
        /* api callbacks */
@@ -391,6 +393,7 @@ void CONSOLE_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Delete";
+    ot->description= "Delete text by cursor position.";
        ot->idname= "CONSOLE_OT_delete";
        
        /* api callbacks */
@@ -434,6 +437,7 @@ void CONSOLE_OT_clear(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Clear";
+    ot->description= "Clear text by type.";
        ot->idname= "CONSOLE_OT_clear";
        
        /* api callbacks */
@@ -478,6 +482,7 @@ void CONSOLE_OT_history_cycle(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "History Cycle";
+    ot->description= "Cycle through history.";
        ot->idname= "CONSOLE_OT_history_cycle";
        
        /* api callbacks */
@@ -525,6 +530,7 @@ void CONSOLE_OT_history_append(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "History Append";
+    ot->description= "Append history at cursor position.";
        ot->idname= "CONSOLE_OT_history_append";
        
        /* api callbacks */
@@ -572,6 +578,7 @@ void CONSOLE_OT_scrollback_append(wmOperatorType *ot)
 
        /* identifiers */
        ot->name= "Scrollback Append";
+    ot->description= "Append scrollback text by type.";
        ot->idname= "CONSOLE_OT_scrollback_append";
        
        /* api callbacks */
@@ -614,6 +621,7 @@ void CONSOLE_OT_copy(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Copy to Clipboard";
+    ot->description= "Copy selected text to clipboard.";
        ot->idname= "CONSOLE_OT_copy";
 
        /* api callbacks */
@@ -648,6 +656,7 @@ void CONSOLE_OT_paste(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Paste from Clipboard";
+    ot->description= "Paste text from clipboard.";
        ot->idname= "CONSOLE_OT_paste";
 
        /* api callbacks */
@@ -679,6 +688,9 @@ void CONSOLE_OT_zoom(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Console Zoom";
+    /*optionals - 
+      "Zoom view font." */
+    ot->description= "Zoom screen area.";
        ot->idname= "CONSOLE_OT_zoom";
        
        /* api callbacks */
index 2e23c4039f153da9ed0ca15e94370ec5f78a9aaf..08d003f070644c4375afe48ffc8a78a328e4e665 100644 (file)
@@ -114,6 +114,7 @@ void CONSOLE_OT_report_replay(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Replay Operators";
+    ot->description= "Replay selected reports.";
        ot->idname= "CONSOLE_OT_report_replay";
 
        /* api callbacks */
@@ -160,6 +161,7 @@ void CONSOLE_OT_select_pick(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Select report";
+    ot->description= "Select reports by index.";
        ot->idname= "CONSOLE_OT_select_pick";
 
        /* api callbacks */
@@ -213,6 +215,7 @@ void CONSOLE_OT_select_all_toggle(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "(De)Select All";
+    ot->description= "(de)select all reports.";
        ot->idname= "CONSOLE_OT_select_all_toggle";
 
        /* api callbacks */
@@ -304,6 +307,7 @@ void CONSOLE_OT_select_border(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Border Select";
+    ot->description= "Toggle border selection.";
        ot->idname= "CONSOLE_OT_select_border";
 
        /* api callbacks */
@@ -357,6 +361,7 @@ void CONSOLE_OT_report_delete(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Delete Reports";
+    ot->description= "Delete selected reports.";
        ot->idname= "CONSOLE_OT_report_delete";
 
        /* api callbacks */
@@ -401,6 +406,7 @@ void CONSOLE_OT_report_copy(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Copy Reports to Clipboard";
+    ot->description= "Copy selected reports to Clipboard.";
        ot->idname= "CONSOLE_OT_report_copy";
 
        /* api callbacks */
index 0e2d2ce1698f07d02c584ae519c17fd2136a70db..089436cfcf97dab9d3deb74ff9af94be293e90a5 100644 (file)
@@ -215,6 +215,7 @@ void TEXT_OT_properties(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Properties";
+    ot->description= "Toggle text properties panel.";
        ot->idname= "TEXT_OT_properties";
        
        /* api callbacks */
index 4c9f47ed170e1b1e5ed55ef67a9443f7fd74a633..7e514ea723a281b0b6cb5a158356743ef6c22fea 100644 (file)
@@ -176,6 +176,7 @@ void TEXT_OT_new(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "New";
+    ot->description= "Create a new text data block.";
        ot->idname= "TEXT_OT_new";
 
        /* api callbacks */
@@ -223,6 +224,7 @@ void TEXT_OT_open(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Open";
+    ot->description= "Open a new text data block.";
        ot->idname= "TEXT_OT_open";
 
        /* api callbacks */
@@ -260,6 +262,7 @@ void TEXT_OT_reload(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Reload";
+    ot->description= "Reload active text data block from its file.";
        ot->idname= "TEXT_OT_reload";
 
        /* api callbacks */
@@ -337,6 +340,7 @@ void TEXT_OT_unlink(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Unlink";
+    ot->description= "Unlink active text data block.";
        ot->idname= "TEXT_OT_unlink";
 
        /* api callbacks */
@@ -367,6 +371,7 @@ void TEXT_OT_make_internal(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Make Internal";
+    ot->description= "Make active text file internal.";
        ot->idname= "TEXT_OT_make_internal";
 
        /* api callbacks */
@@ -435,6 +440,7 @@ void TEXT_OT_save(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Save";
+    ot->description= "Save active text data block.";
        ot->idname= "TEXT_OT_save";
 
        /* api callbacks */
@@ -490,6 +496,7 @@ void TEXT_OT_save_as(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Save As";
+    ot->description= "Save active text file with options.";
        ot->idname= "TEXT_OT_save_as";
 
        /* api callbacks */
@@ -527,6 +534,7 @@ void TEXT_OT_run_script(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Run Script";
+    ot->description= "Run active script.";
        ot->idname= "TEXT_OT_run_script";
 
        /* api callbacks */
@@ -583,6 +591,7 @@ void TEXT_OT_refresh_pyconstraints(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Refresh PyConstraints";
+    ot->description= "Refresh all pyconstraints.";
        ot->idname= "TEXT_OT_refresh_pyconstraints";
 
        /* api callbacks */
@@ -704,6 +713,7 @@ void TEXT_OT_paste(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Paste";
+    ot->description= "Paste text from clipboard.";
        ot->idname= "TEXT_OT_paste";
 
        /* api callbacks */
@@ -744,6 +754,7 @@ void TEXT_OT_copy(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Copy";
+    ot->description= "Copy selected text to clipboard.";
        ot->idname= "TEXT_OT_copy";
 
        /* api callbacks */
@@ -774,6 +785,7 @@ void TEXT_OT_cut(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Cut";
+    ot->description= "Cut selected text to clipboard.";
        ot->idname= "TEXT_OT_cut";
 
        /* api callbacks */
@@ -809,6 +821,7 @@ void TEXT_OT_indent(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Indent";
+    ot->description= "Indent selected text.";
        ot->idname= "TEXT_OT_indent";
 
        /* api callbacks */
@@ -844,6 +857,7 @@ void TEXT_OT_unindent(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Unindent";
+    ot->description= "Unindent selected text.";
        ot->idname= "TEXT_OT_unindent";
 
        /* api callbacks */
@@ -884,6 +898,7 @@ void TEXT_OT_line_break(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Line Break";
+    ot->description= "Insert line break at cursor position.";
        ot->idname= "TEXT_OT_line_break";
 
        /* api callbacks */
@@ -916,6 +931,7 @@ void TEXT_OT_comment(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Comment";
+    ot->description= "Convert selected text to comment.";
        ot->idname= "TEXT_OT_comment";
 
        /* api callbacks */
@@ -949,6 +965,7 @@ void TEXT_OT_uncomment(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Uncomment";
+    ot->description= "Convert selected comment to text.";
        ot->idname= "TEXT_OT_uncomment";
 
        /* api callbacks */
@@ -1090,6 +1107,7 @@ void TEXT_OT_convert_whitespace(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Convert Whitespace";
+    ot->description= "Convert whitespaces by type.";
        ot->idname= "TEXT_OT_convert_whitespace";
 
        /* api callbacks */
@@ -1120,6 +1138,7 @@ void TEXT_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Select All";
+    ot->description= "Select all text.";
        ot->idname= "TEXT_OT_select_all";
 
        /* api callbacks */
@@ -1147,6 +1166,7 @@ void TEXT_OT_select_line(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Select Line";
+    ot->description= "Select text by line.";
        ot->idname= "TEXT_OT_select_line";
 
        /* api clinebacks */
@@ -1184,6 +1204,7 @@ void TEXT_OT_previous_marker(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Previous Marker";
+    ot->description= "Move to previous marker.";
        ot->idname= "TEXT_OT_previous_marker";
 
        /* api callbacks */
@@ -1221,6 +1242,7 @@ void TEXT_OT_next_marker(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Next Marker";
+    ot->description= "Move to next marker";
        ot->idname= "TEXT_OT_next_marker";
 
        /* api callbacks */
@@ -1248,6 +1270,7 @@ void TEXT_OT_markers_clear(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Clear All Markers";
+    ot->description= "Clear all markers.";
        ot->idname= "TEXT_OT_markers_clear";
 
        /* api callbacks */
@@ -1531,6 +1554,7 @@ void TEXT_OT_move(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Move Cursor";
+    ot->description= "Move cursor to position type.";
        ot->idname= "TEXT_OT_move";
        
        /* api callbacks */
@@ -1557,6 +1581,7 @@ void TEXT_OT_move_select(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Move Select";
+    ot->description= "Make selection from current cursor position to new cursor position type.";
        ot->idname= "TEXT_OT_move_select";
        
        /* api callbacks */
@@ -1596,6 +1621,7 @@ void TEXT_OT_jump(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Jump";
+    ot->description= "Jump cursor to line.";
        ot->idname= "TEXT_OT_jump";
 
        /* api callbacks */
@@ -1648,6 +1674,7 @@ void TEXT_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Delete";
+    ot->description= "Delete text by cursor position.";
        ot->idname= "TEXT_OT_delete";
        
        /* api callbacks */
@@ -1828,6 +1855,10 @@ void TEXT_OT_scroll(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Scroll";
+    /*don't really see the difference between this and
+      scroll_bar. Both do basically the same thing (aside 
+      from keymaps).*/
+    ot->description= "Scroll text screen.";
        ot->idname= "TEXT_OT_scroll";
        
        /* api callbacks */
@@ -1876,6 +1907,10 @@ void TEXT_OT_scroll_bar(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Scrollbar";
+    /*don't really see the difference between this and
+      scroll. Both do basically the same thing (aside 
+      from keymaps).*/
+    ot->description= "Scroll text screen.";
        ot->idname= "TEXT_OT_scroll_bar";
        
        /* api callbacks */
@@ -2151,6 +2186,7 @@ void TEXT_OT_cursor_set(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Set Cursor";
+    ot->description= "Set cursor selection.";
        ot->idname= "TEXT_OT_cursor_set";
        
        /* api callbacks */
@@ -2274,6 +2310,7 @@ void TEXT_OT_insert(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Insert";
+    ot->description= "Insert text at cursor position.";
        ot->idname= "TEXT_OT_insert";
        
        /* api callbacks */
@@ -2378,6 +2415,7 @@ void TEXT_OT_find(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Find";
+    ot->description= "Find specified text.";
        ot->idname= "TEXT_OT_find";
 
        /* api callbacks */
@@ -2396,6 +2434,7 @@ void TEXT_OT_replace(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Replace";
+    ot->description= "Replace text with specified text.";
        ot->idname= "TEXT_OT_replace";
 
        /* api callbacks */
@@ -2414,6 +2453,7 @@ void TEXT_OT_mark_all(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Mark All";
+    ot->description= "Mark all specified text.";
        ot->idname= "TEXT_OT_mark_all";
 
        /* api callbacks */
@@ -2443,6 +2483,7 @@ void TEXT_OT_find_set_selected(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Find Set Selected";
+    ot->description= "Find specified text and set as selected.";
        ot->idname= "TEXT_OT_find_set_selected";
 
        /* api callbacks */
@@ -2469,6 +2510,7 @@ void TEXT_OT_replace_set_selected(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Replace Set Selected";
+    ot->description= "Replace text with specified text and set as selected.";
        ot->idname= "TEXT_OT_replace_set_selected";
 
        /* api callbacks */
@@ -2631,6 +2673,7 @@ void TEXT_OT_to_3d_object(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "To 3D Object";
+    ot->description= "Create 3d text object from active text data block.";
        ot->idname= "TEXT_OT_to_3d_object";
        
        /* api callbacks */
index 081e9589fb8d46f8b39e5380117c98eb72ab8d9b..e50a8205afabf11f89f6f01ce60210798abc730a 100644 (file)
@@ -148,6 +148,7 @@ void TFM_OT_select_orientation(struct wmOperatorType *ot)
 
        /* identifiers */
        ot->name   = "Select Orientation";
+       ot->description= "Select orientation type.";
        ot->idname = "TFM_OT_select_orientation";
 
        /* api callbacks */
@@ -308,6 +309,7 @@ void TFM_OT_translate(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Translate";
+       ot->description= "Translate selected items.";
        ot->idname = OP_TRANSLATION;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -333,6 +335,7 @@ void TFM_OT_resize(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Resize";
+       ot->description= "Resize selected items."; 
        ot->idname = OP_RESIZE;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -359,6 +362,7 @@ void TFM_OT_trackball(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Trackball";
+       ot->description= "Trackball style rotation of selected items.";
        ot->idname = OP_TRACKBALL;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -380,6 +384,7 @@ void TFM_OT_rotate(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Rotate";
+       ot->description= "Rotate selected items.";
        ot->idname = OP_ROTATION;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -405,6 +410,10 @@ void TFM_OT_tilt(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Tilt";
+    /*optionals - 
+        "Tilt selected vertices."
+        "Specify an extra axis rotation for selected vertices of 3d curve." */
+       ot->description= "Tilt selected vertices of 3d curve."; 
        ot->idname = OP_TILT;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -428,6 +437,7 @@ void TFM_OT_warp(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Warp";
+       ot->description= "Warp selected vertices around the cursor.";
        ot->idname = OP_WARP;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -452,6 +462,7 @@ void TFM_OT_shear(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Shear";
+       ot->description= "Shear selected vertices along the horizontal screen axis.";
        ot->idname = OP_SHEAR;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -476,6 +487,7 @@ void TFM_OT_shrink_fatten(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "Shrink/Fatten";
+       ot->description= "Shrink/fatten selected vertices along vertex normals.";
        ot->idname = OP_SHRINK_FATTEN;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -497,6 +509,8 @@ void TFM_OT_tosphere(struct wmOperatorType *ot)
 {
        /* identifiers */
        ot->name   = "To Sphere";
+    //added "around mesh center" to defferentiate between "MESH_OT_vertices_to_sphere()" 
+       ot->description= "Move selected vertices outward in a spherical shape around mesh center.";
        ot->idname = OP_TOSPHERE;
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
@@ -548,6 +562,7 @@ void TFM_OT_transform(struct wmOperatorType *ot)
 
        /* identifiers */
        ot->name   = "Transform";
+       ot->description= "Transform selected items by mode type.";
        ot->idname = "TFM_OT_transform";
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
index 18159414cf60d0267985f81a63dd1dc43ebd3251..41159397634c05a06314b65d6d8818a617ef387a 100644 (file)
@@ -239,6 +239,7 @@ void ED_OT_undo(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Undo";
+    ot->description= "Undo previous action.";
        ot->idname= "ED_OT_undo";
        
        /* api callbacks */
@@ -250,6 +251,7 @@ void ED_OT_redo(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name= "Redo";
+    ot->description= "Redo previous action.";
        ot->idname= "ED_OT_redo";
        
        /* api callbacks */
index 011f3285f637f780356025cb80a9fd60ca814a43..a9692377df80a89fad2fb4b9e63d1a6c7d89a3a4 100644 (file)
@@ -40,16 +40,17 @@ class SCA_PropertyEventManager : public SCA_EventManager
        class SCA_LogicManager* m_logicmgr;
 
 public:
+       SCA_PropertyEventManager(class SCA_LogicManager* logicmgr);
+       virtual ~SCA_PropertyEventManager();
+       virtual void NextFrame();
+       //SCA_LogicManager* GetLogicManager() { return m_logicmgr;}
+
 
 #ifdef WITH_CXX_GUARDEDALLOC
+public:
        void *operator new( unsigned int num_bytes) { return MEM_mallocN(num_bytes, "GE:SCA_PropertyEventManager"); }
        void operator delete( void *mem ) { MEM_freeN(mem); }
 #endif
-
-       SCA_PropertyEventManager(class SCA_LogicManager* logicmgr);
-       virtual ~SCA_PropertyEventManager();
-       virtual void NextFrame();
-       //SCA_LogicManager* GetLogicManager() { return m_logicmgr;}
 };
 
 #endif //__KX_PROPERTYEVENTMANAGER