Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-22 11:26:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-22 11:26:09 +0400
commit4c3bb77012024a3f14181eafe850b4d68bca1191 (patch)
tree0b90fefff48b03ad117c5e16d65f6e653ff5f57b /source/blender/windowmanager
parent675628d24deba0afdc3da5b7a5bc802b13506251 (diff)
style cleanup: spaces aroudn operators for operator definitions.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c2
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c336
2 files changed, 169 insertions, 169 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index 107ebd8699c..ff811ae4ce7 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -714,7 +714,7 @@ void WM_modalkeymap_assign(wmKeyMap *km, const char *opname)
wmOperatorType *ot= WM_operatortype_find(opname, 0);
if(ot)
- ot->modalkeymap= km;
+ ot->modalkeymap = km;
else
printf("error: modalkeymap_assign, unknown operator %s\n", opname);
}
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 93aa362ec41..ed4f47249fc 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -145,14 +145,14 @@ void WM_operatortype_append(void (*opfunc)(wmOperatorType*))
wmOperatorType *ot;
ot= MEM_callocN(sizeof(wmOperatorType), "operatortype");
- ot->srna= RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
+ ot->srna = RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
/* Set the default i18n context now, so that opfunc can redefine it if needed! */
RNA_def_struct_translation_context(ot->srna, WM_OPERATOR_DEFAULT_I18NCONTEXT);
opfunc(ot);
if(ot->name==NULL) {
fprintf(stderr, "ERROR: Operator %s has no name property!\n", ot->idname);
- ot->name= N_("Dummy Name");
+ ot->name = N_("Dummy Name");
}
// XXX All ops should have a description but for now allow them not to.
@@ -167,7 +167,7 @@ void WM_operatortype_append_ptr(void (*opfunc)(wmOperatorType*, void*), void *us
wmOperatorType *ot;
ot= MEM_callocN(sizeof(wmOperatorType), "operatortype");
- ot->srna= RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
+ ot->srna = RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
/* Set the default i18n context now, so that opfunc can redefine it if needed! */
RNA_def_struct_translation_context(ot->srna, WM_OPERATOR_DEFAULT_I18NCONTEXT);
opfunc(ot, userdata);
@@ -352,20 +352,20 @@ wmOperatorType *WM_operatortype_append_macro(const char *idname, const char *nam
}
ot= MEM_callocN(sizeof(wmOperatorType), "operatortype");
- ot->srna= RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
+ ot->srna = RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
- ot->idname= idname;
- ot->name= name;
- ot->flag= OPTYPE_MACRO|flag;
+ ot->idname = idname;
+ ot->name = name;
+ ot->flag = OPTYPE_MACRO|flag;
- ot->exec= wm_macro_exec;
- ot->invoke= wm_macro_invoke;
- ot->modal= wm_macro_modal;
- ot->cancel= wm_macro_cancel;
- ot->poll= NULL;
+ ot->exec = wm_macro_exec;
+ ot->invoke = wm_macro_invoke;
+ ot->modal = wm_macro_modal;
+ ot->cancel = wm_macro_cancel;
+ ot->poll = NULL;
if(!ot->description) /* XXX All ops should have a description but for now allow them not to. */
- ot->description= N_("(undocumented operator)");
+ ot->description = N_("(undocumented operator)");
RNA_def_struct_ui_text(ot->srna, ot->name, ot->description);
RNA_def_struct_identifier(ot->srna, ot->idname);
@@ -381,17 +381,17 @@ void WM_operatortype_append_macro_ptr(void (*opfunc)(wmOperatorType*, void*), vo
wmOperatorType *ot;
ot= MEM_callocN(sizeof(wmOperatorType), "operatortype");
- ot->srna= RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
+ ot->srna = RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties");
- ot->flag= OPTYPE_MACRO;
- ot->exec= wm_macro_exec;
- ot->invoke= wm_macro_invoke;
- ot->modal= wm_macro_modal;
- ot->cancel= wm_macro_cancel;
- ot->poll= NULL;
+ ot->flag = OPTYPE_MACRO;
+ ot->exec = wm_macro_exec;
+ ot->invoke = wm_macro_invoke;
+ ot->modal = wm_macro_modal;
+ ot->cancel = wm_macro_cancel;
+ ot->poll = NULL;
if(!ot->description)
- ot->description= N_("(undocumented operator)");
+ ot->description = N_("(undocumented operator)");
/* Set the default i18n context now, so that opfunc can redefine it if needed! */
RNA_def_struct_translation_context(ot->srna, WM_OPERATOR_DEFAULT_I18NCONTEXT);
@@ -1174,13 +1174,13 @@ static int wm_debug_menu_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(eve
static void WM_OT_debug_menu(wmOperatorType *ot)
{
- ot->name= "Debug Menu";
- ot->idname= "WM_OT_debug_menu";
- ot->description= "Open a popup to set the debug level";
+ ot->name = "Debug Menu";
+ ot->idname = "WM_OT_debug_menu";
+ ot->description = "Open a popup to set the debug level";
- ot->invoke= wm_debug_menu_invoke;
- ot->exec= wm_debug_menu_exec;
- ot->poll= WM_operator_winactive;
+ ot->invoke = wm_debug_menu_invoke;
+ ot->exec = wm_debug_menu_exec;
+ ot->poll = WM_operator_winactive;
RNA_def_int(ot->srna, "debug_value", 0, -10000, 10000, "Debug Value", "", INT_MIN, INT_MAX);
}
@@ -1344,12 +1344,12 @@ static int wm_splash_invoke(bContext *C, wmOperator *UNUSED(op), wmEvent *UNUSED
static void WM_OT_splash(wmOperatorType *ot)
{
- ot->name= "Splash Screen";
- ot->idname= "WM_OT_splash";
- ot->description= "Opens a blocking popup region with release info";
+ ot->name = "Splash Screen";
+ ot->idname = "WM_OT_splash";
+ ot->description = "Opens a blocking popup region with release info";
- ot->invoke= wm_splash_invoke;
- ot->poll= WM_operator_winactive;
+ ot->invoke = wm_splash_invoke;
+ ot->poll = WM_operator_winactive;
}
@@ -1461,12 +1461,12 @@ static int wm_search_menu_poll(bContext *C)
static void WM_OT_search_menu(wmOperatorType *ot)
{
- ot->name= "Search Menu";
- ot->idname= "WM_OT_search_menu";
+ ot->name = "Search Menu";
+ ot->idname = "WM_OT_search_menu";
- ot->invoke= wm_search_menu_invoke;
- ot->exec= wm_search_menu_exec;
- ot->poll= wm_search_menu_poll;
+ ot->invoke = wm_search_menu_invoke;
+ ot->exec = wm_search_menu_exec;
+ ot->poll = wm_search_menu_poll;
}
static int wm_call_menu_exec(bContext *C, wmOperator *op)
@@ -1481,13 +1481,13 @@ static int wm_call_menu_exec(bContext *C, wmOperator *op)
static void WM_OT_call_menu(wmOperatorType *ot)
{
- ot->name= "Call Menu";
- ot->idname= "WM_OT_call_menu";
+ ot->name = "Call Menu";
+ ot->idname = "WM_OT_call_menu";
- ot->exec= wm_call_menu_exec;
- ot->poll= WM_operator_winactive;
+ ot->exec = wm_call_menu_exec;
+ ot->poll = WM_operator_winactive;
- ot->flag= OPTYPE_INTERNAL;
+ ot->flag = OPTYPE_INTERNAL;
RNA_def_string(ot->srna, "name", "", BKE_ST_MAXNAME, "Name", "Name of the menu");
}
@@ -1508,44 +1508,44 @@ static int wm_operator_winactive_normal(bContext *C)
static void WM_OT_window_duplicate(wmOperatorType *ot)
{
- ot->name= "Duplicate Window";
- ot->idname= "WM_OT_window_duplicate";
- ot->description="Duplicate the current Blender window";
+ ot->name = "Duplicate Window";
+ ot->idname = "WM_OT_window_duplicate";
+ ot->description = "Duplicate the current Blender window";
- ot->exec= wm_window_duplicate_exec;
- ot->poll= wm_operator_winactive_normal;
+ ot->exec = wm_window_duplicate_exec;
+ ot->poll = wm_operator_winactive_normal;
}
static void WM_OT_save_homefile(wmOperatorType *ot)
{
- ot->name= "Save User Settings";
- ot->idname= "WM_OT_save_homefile";
- ot->description="Make the current file the default .blend file";
+ ot->name = "Save User Settings";
+ ot->idname = "WM_OT_save_homefile";
+ ot->description = "Make the current file the default .blend file";
- ot->invoke= WM_operator_confirm;
- ot->exec= WM_write_homefile;
- ot->poll= WM_operator_winactive;
+ ot->invoke = WM_operator_confirm;
+ ot->exec = WM_write_homefile;
+ ot->poll = WM_operator_winactive;
}
static void WM_OT_read_homefile(wmOperatorType *ot)
{
- ot->name= "Reload Start-Up File";
- ot->idname= "WM_OT_read_homefile";
- ot->description="Open the default file (doesn't save the current file)";
+ ot->name = "Reload Start-Up File";
+ ot->idname = "WM_OT_read_homefile";
+ ot->description = "Open the default file (doesn't save the current file)";
- ot->invoke= WM_operator_confirm;
- ot->exec= WM_read_homefile_exec;
+ ot->invoke = WM_operator_confirm;
+ ot->exec = WM_read_homefile_exec;
/* ommit poll to run in background mode */
}
static void WM_OT_read_factory_settings(wmOperatorType *ot)
{
- ot->name= "Load Factory Settings";
- ot->idname= "WM_OT_read_factory_settings";
- ot->description="Load default file and user preferences";
+ ot->name = "Load Factory Settings";
+ ot->idname = "WM_OT_read_factory_settings";
+ ot->description = "Load default file and user preferences";
- ot->invoke= WM_operator_confirm;
- ot->exec= WM_read_homefile_exec;
+ ot->invoke = WM_operator_confirm;
+ ot->exec = WM_read_homefile_exec;
/* ommit poll to run in background mode */
}
@@ -1623,12 +1623,12 @@ static int wm_open_mainfile_exec(bContext *C, wmOperator *op)
static void WM_OT_open_mainfile(wmOperatorType *ot)
{
- ot->name= "Open Blender File";
- ot->idname= "WM_OT_open_mainfile";
- ot->description="Open a Blender file";
+ ot->name = "Open Blender File";
+ ot->idname = "WM_OT_open_mainfile";
+ ot->description = "Open a Blender file";
- ot->invoke= wm_open_mainfile_invoke;
- ot->exec= wm_open_mainfile_exec;
+ ot->invoke = wm_open_mainfile_invoke;
+ ot->exec = wm_open_mainfile_exec;
/* ommit window poll so this can work in background mode */
WM_operator_properties_filesel(ot, FOLDERFILE|BLENDERFILE, FILE_BLENDER, FILE_OPENFILE,
@@ -1813,13 +1813,13 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
static void WM_OT_link_append(wmOperatorType *ot)
{
- ot->name= "Link/Append from Library";
- ot->idname= "WM_OT_link_append";
- ot->description= "Link or Append from a Library .blend file";
+ ot->name = "Link/Append from Library";
+ ot->idname = "WM_OT_link_append";
+ ot->description = "Link or Append from a Library .blend file";
- ot->invoke= wm_link_append_invoke;
- ot->exec= wm_link_append_exec;
- ot->poll= wm_link_append_poll;
+ ot->invoke = wm_link_append_invoke;
+ ot->exec = wm_link_append_exec;
+ ot->poll = wm_link_append_poll;
ot->flag |= OPTYPE_UNDO;
@@ -1856,12 +1856,12 @@ static int wm_recover_last_session_exec(bContext *C, wmOperator *op)
static void WM_OT_recover_last_session(wmOperatorType *ot)
{
- ot->name= "Recover Last Session";
- ot->idname= "WM_OT_recover_last_session";
- ot->description="Open the last closed file (\"quit.blend\")";
+ ot->name = "Recover Last Session";
+ ot->idname = "WM_OT_recover_last_session";
+ ot->description = "Open the last closed file (\"quit.blend\")";
- ot->exec= wm_recover_last_session_exec;
- ot->poll= WM_operator_winactive;
+ ot->exec = wm_recover_last_session_exec;
+ ot->poll = WM_operator_winactive;
}
/* *************** recover auto save **************** */
@@ -1899,13 +1899,13 @@ static int wm_recover_auto_save_invoke(bContext *C, wmOperator *op, wmEvent *UNU
static void WM_OT_recover_auto_save(wmOperatorType *ot)
{
- ot->name= "Recover Auto Save";
- ot->idname= "WM_OT_recover_auto_save";
- ot->description="Open an automatically saved file to recover it";
+ ot->name = "Recover Auto Save";
+ ot->idname = "WM_OT_recover_auto_save";
+ ot->description = "Open an automatically saved file to recover it";
- ot->exec= wm_recover_auto_save_exec;
- ot->invoke= wm_recover_auto_save_invoke;
- ot->poll= WM_operator_winactive;
+ ot->exec = wm_recover_auto_save_exec;
+ ot->invoke = wm_recover_auto_save_invoke;
+ ot->poll = WM_operator_winactive;
WM_operator_properties_filesel(ot, BLENDERFILE, FILE_BLENDER, FILE_OPENFILE, WM_FILESEL_FILEPATH, FILE_LONGDISPLAY);
}
@@ -2018,13 +2018,13 @@ static int blend_save_check(bContext *UNUSED(C), wmOperator *op)
static void WM_OT_save_as_mainfile(wmOperatorType *ot)
{
- ot->name= "Save As Blender File";
- ot->idname= "WM_OT_save_as_mainfile";
- ot->description="Save the current file in the desired location";
+ ot->name = "Save As Blender File";
+ ot->idname = "WM_OT_save_as_mainfile";
+ ot->description = "Save the current file in the desired location";
- ot->invoke= wm_save_as_mainfile_invoke;
- ot->exec= wm_save_as_mainfile_exec;
- ot->check= blend_save_check;
+ ot->invoke = wm_save_as_mainfile_invoke;
+ ot->exec = wm_save_as_mainfile_exec;
+ ot->check = blend_save_check;
/* ommit window poll so this can work in background mode */
WM_operator_properties_filesel(ot, FOLDERFILE|BLENDERFILE, FILE_BLENDER, FILE_SAVE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
@@ -2085,13 +2085,13 @@ static int wm_save_mainfile_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(
static void WM_OT_save_mainfile(wmOperatorType *ot)
{
- ot->name= "Save Blender File";
- ot->idname= "WM_OT_save_mainfile";
- ot->description="Save the current Blender file";
+ ot->name = "Save Blender File";
+ ot->idname = "WM_OT_save_mainfile";
+ ot->description = "Save the current Blender file";
- ot->invoke= wm_save_mainfile_invoke;
- ot->exec= wm_save_as_mainfile_exec;
- ot->check= blend_save_check;
+ ot->invoke = wm_save_mainfile_invoke;
+ ot->exec = wm_save_as_mainfile_exec;
+ ot->check = blend_save_check;
/* ommit window poll so this can work in background mode */
WM_operator_properties_filesel(ot, FOLDERFILE|BLENDERFILE, FILE_BLENDER, FILE_SAVE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
@@ -2142,12 +2142,12 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op)
static void WM_OT_collada_export(wmOperatorType *ot)
{
- ot->name= "Export COLLADA";
- ot->idname= "WM_OT_collada_export";
+ ot->name = "Export COLLADA";
+ ot->idname = "WM_OT_collada_export";
- ot->invoke= wm_collada_export_invoke;
- ot->exec= wm_collada_export_exec;
- ot->poll= WM_operator_winactive;
+ ot->invoke = wm_collada_export_invoke;
+ ot->exec = wm_collada_export_exec;
+ ot->poll = WM_operator_winactive;
WM_operator_properties_filesel(ot, FOLDERFILE|COLLADAFILE, FILE_BLENDER, FILE_SAVE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
RNA_def_boolean(ot->srna, "selected", 0, "Export only selected",
@@ -2176,12 +2176,12 @@ static int wm_collada_import_exec(bContext *C, wmOperator *op)
static void WM_OT_collada_import(wmOperatorType *ot)
{
- ot->name= "Import COLLADA";
- ot->idname= "WM_OT_collada_import";
+ ot->name = "Import COLLADA";
+ ot->idname = "WM_OT_collada_import";
- ot->invoke= WM_operator_filesel;
- ot->exec= wm_collada_import_exec;
- ot->poll= WM_operator_winactive;
+ ot->invoke = WM_operator_filesel;
+ ot->exec = wm_collada_import_exec;
+ ot->poll = WM_operator_winactive;
WM_operator_properties_filesel(ot, FOLDERFILE|COLLADAFILE, FILE_BLENDER, FILE_OPENFILE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
}
@@ -2193,12 +2193,12 @@ static void WM_OT_collada_import(wmOperatorType *ot)
static void WM_OT_window_fullscreen_toggle(wmOperatorType *ot)
{
- ot->name= "Toggle Fullscreen";
- ot->idname= "WM_OT_window_fullscreen_toggle";
- ot->description="Toggle the current window fullscreen";
+ ot->name = "Toggle Fullscreen";
+ ot->idname = "WM_OT_window_fullscreen_toggle";
+ ot->description = "Toggle the current window fullscreen";
- ot->exec= wm_window_fullscreen_toggle_exec;
- ot->poll= WM_operator_winactive;
+ ot->exec = wm_window_fullscreen_toggle_exec;
+ ot->poll = WM_operator_winactive;
}
static int wm_exit_blender_op(bContext *C, wmOperator *op)
@@ -2212,13 +2212,13 @@ static int wm_exit_blender_op(bContext *C, wmOperator *op)
static void WM_OT_quit_blender(wmOperatorType *ot)
{
- ot->name= "Quit Blender";
- ot->idname= "WM_OT_quit_blender";
- ot->description= "Quit Blender";
+ ot->name = "Quit Blender";
+ ot->idname = "WM_OT_quit_blender";
+ ot->description = "Quit Blender";
- ot->invoke= WM_operator_confirm;
- ot->exec= wm_exit_blender_op;
- ot->poll= WM_operator_winactive;
+ ot->invoke = WM_operator_confirm;
+ ot->exec = wm_exit_blender_op;
+ ot->poll = WM_operator_winactive;
}
/* *********************** */
@@ -2233,12 +2233,12 @@ static int wm_console_toggle_op(bContext *UNUSED(C), wmOperator *UNUSED(op))
static void WM_OT_console_toggle(wmOperatorType *ot)
{
- ot->name= "Toggle System Console";
- ot->idname= "WM_OT_console_toggle";
- ot->description= "Toggle System Console";
+ ot->name = "Toggle System Console";
+ ot->idname = "WM_OT_console_toggle";
+ ot->description = "Toggle System Console";
- ot->exec= wm_console_toggle_op;
- ot->poll= WM_operator_winactive;
+ ot->exec = wm_console_toggle_op;
+ ot->poll = WM_operator_winactive;
}
#endif
@@ -2518,14 +2518,14 @@ int WM_gesture_circle_cancel(bContext *C, wmOperator *op)
/* template to copy from */
void WM_OT_circle_gesture(wmOperatorType *ot)
{
- ot->name= "Circle Gesture";
- ot->idname= "WM_OT_circle_gesture";
- ot->description="Enter rotate mode with a circular gesture";
+ ot->name = "Circle Gesture";
+ ot->idname = "WM_OT_circle_gesture";
+ ot->description = "Enter rotate mode with a circular gesture";
- ot->invoke= WM_gesture_circle_invoke;
- ot->modal= WM_gesture_circle_modal;
+ ot->invoke = WM_gesture_circle_invoke;
+ ot->modal = WM_gesture_circle_modal;
- ot->poll= WM_operator_winactive;
+ ot->poll = WM_operator_winactive;
RNA_def_property(ot->srna, "x", PROP_INT, PROP_NONE);
RNA_def_property(ot->srna, "y", PROP_INT, PROP_NONE);
@@ -2764,15 +2764,15 @@ void WM_OT_lasso_gesture(wmOperatorType *ot)
{
PropertyRNA *prop;
- ot->name= "Lasso Gesture";
- ot->idname= "WM_OT_lasso_gesture";
- ot->description="Select objects within the lasso as you move the pointer";
+ ot->name = "Lasso Gesture";
+ ot->idname = "WM_OT_lasso_gesture";
+ ot->description = "Select objects within the lasso as you move the pointer";
- ot->invoke= WM_gesture_lasso_invoke;
- ot->modal= WM_gesture_lasso_modal;
- ot->exec= gesture_lasso_exec;
+ ot->invoke = WM_gesture_lasso_invoke;
+ ot->modal = WM_gesture_lasso_modal;
+ ot->exec = gesture_lasso_exec;
- ot->poll= WM_operator_winactive;
+ ot->poll = WM_operator_winactive;
prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
@@ -2878,15 +2878,15 @@ void WM_OT_straightline_gesture(wmOperatorType *ot)
{
PropertyRNA *prop;
- ot->name= "Straight Line Gesture";
- ot->idname= "WM_OT_straightline_gesture";
- ot->description="Draw a straight line as you move the pointer";
+ ot->name = "Straight Line Gesture";
+ ot->idname = "WM_OT_straightline_gesture";
+ ot->description = "Draw a straight line as you move the pointer";
- ot->invoke= WM_gesture_straightline_invoke;
- ot->modal= WM_gesture_straightline_modal;
- ot->exec= gesture_straightline_exec;
+ ot->invoke = WM_gesture_straightline_invoke;
+ ot->modal = WM_gesture_straightline_modal;
+ ot->exec = gesture_straightline_exec;
- ot->poll= WM_operator_winactive;
+ ot->poll = WM_operator_winactive;
WM_operator_properties_gesture_straightline(ot, 0);
}
@@ -3383,14 +3383,14 @@ static int radial_control_modal(bContext *C, wmOperator *op, wmEvent *event)
static void WM_OT_radial_control(wmOperatorType *ot)
{
- ot->name= "Radial Control";
- ot->idname= "WM_OT_radial_control";
+ ot->name = "Radial Control";
+ ot->idname = "WM_OT_radial_control";
- ot->invoke= radial_control_invoke;
- ot->modal= radial_control_modal;
- ot->cancel= radial_control_cancel;
+ ot->invoke = radial_control_invoke;
+ ot->modal = radial_control_modal;
+ ot->cancel = radial_control_cancel;
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
/* all paths relative to the context */
RNA_def_string(ot->srna, "data_path_primary", "", 0, "Primary Data Path", "Primary path of property to be set by the radial control");
@@ -3525,15 +3525,15 @@ static int redraw_timer_exec(bContext *C, wmOperator *op)
static void WM_OT_redraw_timer(wmOperatorType *ot)
{
- ot->name= "Redraw Timer";
- ot->idname= "WM_OT_redraw_timer";
- ot->description="Simple redraw timer to test the speed of updating the interface";
+ ot->name = "Redraw Timer";
+ ot->idname = "WM_OT_redraw_timer";
+ ot->description = "Simple redraw timer to test the speed of updating the interface";
- ot->invoke= WM_menu_invoke;
- ot->exec= redraw_timer_exec;
- ot->poll= WM_operator_winactive;
+ ot->invoke = WM_menu_invoke;
+ ot->exec = redraw_timer_exec;
+ ot->poll = WM_operator_winactive;
- ot->prop= RNA_def_enum(ot->srna, "type", redraw_timer_type_items, 0, "Type", "");
+ ot->prop = RNA_def_enum(ot->srna, "type", redraw_timer_type_items, 0, "Type", "");
RNA_def_int(ot->srna, "iterations", 10, 1,INT_MAX, "Iterations", "Number of times to redraw", 1,1000);
}
@@ -3548,11 +3548,11 @@ static int memory_statistics_exec(bContext *UNUSED(C), wmOperator *UNUSED(op))
static void WM_OT_memory_statistics(wmOperatorType *ot)
{
- ot->name= "Memory Statistics";
- ot->idname= "WM_OT_memory_statistics";
- ot->description= "Print memory statistics to the console";
+ ot->name = "Memory Statistics";
+ ot->idname = "WM_OT_memory_statistics";
+ ot->description = "Print memory statistics to the console";
- ot->exec= memory_statistics_exec;
+ ot->exec = memory_statistics_exec;
}
/* ************************** memory statistics for testing ***************** */
@@ -3570,11 +3570,11 @@ static int dependency_relations_exec(bContext *C, wmOperator *UNUSED(op))
static void WM_OT_dependency_relations(wmOperatorType *ot)
{
- ot->name= "Dependency Relations";
- ot->idname= "WM_OT_dependency_relations";
- ot->description= "Print dependency graph relations to the console";
+ ot->name = "Dependency Relations";
+ ot->idname = "WM_OT_dependency_relations";
+ ot->description = "Print dependency graph relations to the console";
- ot->exec= dependency_relations_exec;
+ ot->exec = dependency_relations_exec;
}
/* ******************************************************* */
@@ -3610,11 +3610,11 @@ static int wm_ndof_sensitivity_exec(bContext *UNUSED(C), wmOperator *op)
static void WM_OT_ndof_sensitivity_change(wmOperatorType *ot)
{
- ot->name= "Change NDOF sensitivity";
- ot->idname= "WM_OT_ndof_sensitivity_change";
- ot->description="Change NDOF sensitivity";
+ ot->name = "Change NDOF sensitivity";
+ ot->idname = "WM_OT_ndof_sensitivity_change";
+ ot->description = "Change NDOF sensitivity";
- ot->exec= wm_ndof_sensitivity_exec;
+ ot->exec = wm_ndof_sensitivity_exec;
RNA_def_boolean(ot->srna, "decrease", 1, "Decrease NDOF sensitivity", "If true then action decreases NDOF sensitivity instead of increasing");
RNA_def_boolean(ot->srna, "fast", 0, "Fast NDOF sensitivity change", "If true then sensitivity changes 50%, otherwise 10%");