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/editors/interface/interface_ops.c
parent675628d24deba0afdc3da5b7a5bc802b13506251 (diff)
style cleanup: spaces aroudn operators for operator definitions.
Diffstat (limited to 'source/blender/editors/interface/interface_ops.c')
-rw-r--r--source/blender/editors/interface/interface_ops.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c
index 80c77a54a84..e389612507d 100644
--- a/source/blender/editors/interface/interface_ops.c
+++ b/source/blender/editors/interface/interface_ops.c
@@ -189,19 +189,19 @@ static int eyedropper_poll(bContext *C)
static void UI_OT_eyedropper(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Eyedropper";
- ot->idname= "UI_OT_eyedropper";
- ot->description= "Sample a color from the Blender Window to store in a property";
+ ot->name = "Eyedropper";
+ ot->idname = "UI_OT_eyedropper";
+ ot->description = "Sample a color from the Blender Window to store in a property";
/* api callbacks */
- ot->invoke= eyedropper_invoke;
- ot->modal= eyedropper_modal;
- ot->cancel= eyedropper_cancel;
- ot->exec= eyedropper_exec;
- ot->poll= eyedropper_poll;
+ ot->invoke = eyedropper_invoke;
+ ot->modal = eyedropper_modal;
+ ot->cancel = eyedropper_cancel;
+ ot->exec = eyedropper_exec;
+ ot->poll = eyedropper_poll;
/* flags */
- ot->flag= OPTYPE_BLOCKING;
+ ot->flag = OPTYPE_BLOCKING;
/* properties */
}
@@ -219,15 +219,15 @@ static int reset_default_theme_exec(bContext *C, wmOperator *UNUSED(op))
static void UI_OT_reset_default_theme(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reset to Default Theme";
- ot->idname= "UI_OT_reset_default_theme";
- ot->description= "Reset to the default theme colors";
+ ot->name = "Reset to Default Theme";
+ ot->idname = "UI_OT_reset_default_theme";
+ ot->description = "Reset to the default theme colors";
/* callbacks */
- ot->exec= reset_default_theme_exec;
+ ot->exec = reset_default_theme_exec;
/* flags */
- ot->flag= OPTYPE_REGISTER;
+ ot->flag = OPTYPE_REGISTER;
}
/* Copy Data Path Operator ------------------------ */
@@ -259,16 +259,16 @@ static int copy_data_path_button_exec(bContext *C, wmOperator *UNUSED(op))
static void UI_OT_copy_data_path_button(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Data Path";
- ot->idname= "UI_OT_copy_data_path_button";
- ot->description= "Copy the RNA data path for this property to the clipboard";
+ ot->name = "Copy Data Path";
+ ot->idname = "UI_OT_copy_data_path_button";
+ ot->description = "Copy the RNA data path for this property to the clipboard";
/* callbacks */
- ot->exec= copy_data_path_button_exec;
+ ot->exec = copy_data_path_button_exec;
//op->poll= ??? // TODO: need to have some valid property before this can be done
/* flags */
- ot->flag= OPTYPE_REGISTER;
+ ot->flag = OPTYPE_REGISTER;
}
/* Reset to Default Values Button Operator ------------------------ */
@@ -327,16 +327,16 @@ static int reset_default_button_exec(bContext *C, wmOperator *op)
static void UI_OT_reset_default_button(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reset to Default Value";
- ot->idname= "UI_OT_reset_default_button";
- ot->description= "Reset this property's value to its default value";
+ ot->name = "Reset to Default Value";
+ ot->idname = "UI_OT_reset_default_button";
+ ot->description = "Reset this property's value to its default value";
/* callbacks */
- ot->poll= reset_default_button_poll;
- ot->exec= reset_default_button_exec;
+ ot->poll = reset_default_button_poll;
+ ot->exec = reset_default_button_exec;
/* flags */
- ot->flag= OPTYPE_UNDO;
+ ot->flag = OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "all", 1, "All", "Reset to default values all elements of the array");
@@ -419,16 +419,16 @@ static int copy_to_selected_button_exec(bContext *C, wmOperator *op)
static void UI_OT_copy_to_selected_button(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy To Selected";
- ot->idname= "UI_OT_copy_to_selected_button";
- ot->description= "Copy property from this object to selected objects or bones";
+ ot->name = "Copy To Selected";
+ ot->idname = "UI_OT_copy_to_selected_button";
+ ot->description = "Copy property from this object to selected objects or bones";
/* callbacks */
- ot->poll= copy_to_selected_button_poll;
- ot->exec= copy_to_selected_button_exec;
+ ot->poll = copy_to_selected_button_poll;
+ ot->exec = copy_to_selected_button_exec;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "all", 1, "All", "Reset to default values all elements of the array");
@@ -474,13 +474,13 @@ static int reports_to_text_exec(bContext *C, wmOperator *UNUSED(op))
static void UI_OT_reports_to_textblock(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reports to Text Block";
- ot->idname= "UI_OT_reports_to_textblock";
- ot->description= "Write the reports ";
+ ot->name = "Reports to Text Block";
+ ot->idname = "UI_OT_reports_to_textblock";
+ ot->description = "Write the reports ";
/* callbacks */
- ot->poll= reports_to_text_poll;
- ot->exec= reports_to_text_exec;
+ ot->poll = reports_to_text_poll;
+ ot->exec = reports_to_text_exec;
}
#ifdef WITH_PYTHON
@@ -693,12 +693,12 @@ static int editsource_exec(bContext *C, wmOperator *op)
static void UI_OT_editsource(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reports to Text Block";
- ot->idname= "UI_OT_editsource";
- ot->description= "Edit source code for a button";
+ ot->name = "Reports to Text Block";
+ ot->idname = "UI_OT_editsource";
+ ot->description = "Edit source code for a button";
/* callbacks */
- ot->exec= editsource_exec;
+ ot->exec = editsource_exec;
}
#endif /* WITH_PYTHON */