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/space_info
parent675628d24deba0afdc3da5b7a5bc802b13506251 (diff)
style cleanup: spaces aroudn operators for operator definitions.
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/info_ops.c62
-rw-r--r--source/blender/editors/space_info/info_report.c80
2 files changed, 71 insertions, 71 deletions
diff --git a/source/blender/editors/space_info/info_ops.c b/source/blender/editors/space_info/info_ops.c
index e4febdef73b..bceb7c3d747 100644
--- a/source/blender/editors/space_info/info_ops.c
+++ b/source/blender/editors/space_info/info_ops.c
@@ -105,15 +105,15 @@ static int pack_all_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void FILE_OT_pack_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Pack All";
- ot->idname= "FILE_OT_pack_all";
+ ot->name = "Pack All";
+ ot->idname = "FILE_OT_pack_all";
/* api callbacks */
- ot->exec= pack_all_exec;
- ot->invoke= pack_all_invoke;
+ ot->exec = pack_all_exec;
+ ot->invoke = pack_all_invoke;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************* unpack all operator *********************/
@@ -173,15 +173,15 @@ static int unpack_all_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)
void FILE_OT_unpack_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Unpack All";
- ot->idname= "FILE_OT_unpack_all";
+ ot->name = "Unpack All";
+ ot->idname = "FILE_OT_unpack_all";
/* api callbacks */
- ot->exec= unpack_all_exec;
- ot->invoke= unpack_all_invoke;
+ ot->exec = unpack_all_exec;
+ ot->invoke = unpack_all_invoke;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
RNA_def_enum(ot->srna, "method", unpack_all_method_items, PF_USE_LOCAL, "Method", "How to unpack");
@@ -209,14 +209,14 @@ static int make_paths_relative_exec(bContext *C, wmOperator *op)
void FILE_OT_make_paths_relative(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Make All Paths Relative";
- ot->idname= "FILE_OT_make_paths_relative";
+ ot->name = "Make All Paths Relative";
+ ot->idname = "FILE_OT_make_paths_relative";
/* api callbacks */
- ot->exec= make_paths_relative_exec;
+ ot->exec = make_paths_relative_exec;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************* make paths absolute operator *********************/
@@ -241,14 +241,14 @@ static int make_paths_absolute_exec(bContext *C, wmOperator *op)
void FILE_OT_make_paths_absolute(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Make All Paths Absolute";
- ot->idname= "FILE_OT_make_paths_absolute";
+ ot->name = "Make All Paths Absolute";
+ ot->idname = "FILE_OT_make_paths_absolute";
/* api callbacks */
- ot->exec= make_paths_absolute_exec;
+ ot->exec = make_paths_absolute_exec;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
}
/********************* report missing files operator *********************/
@@ -266,14 +266,14 @@ static int report_missing_files_exec(bContext *C, wmOperator *op)
void FILE_OT_report_missing_files(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Report Missing Files";
- ot->idname= "FILE_OT_report_missing_files";
+ ot->name = "Report Missing Files";
+ ot->idname = "FILE_OT_report_missing_files";
/* api callbacks */
- ot->exec= report_missing_files_exec;
+ ot->exec = report_missing_files_exec;
/* flags */
- ot->flag= 0; /* only reports so no need to undo/register */
+ ot->flag = 0; /* only reports so no need to undo/register */
}
/********************* find missing files operator *********************/
@@ -298,15 +298,15 @@ static int find_missing_files_invoke(bContext *C, wmOperator *op, wmEvent *UNUSE
void FILE_OT_find_missing_files(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Find Missing Files";
- ot->idname= "FILE_OT_find_missing_files";
+ ot->name = "Find Missing Files";
+ ot->idname = "FILE_OT_find_missing_files";
/* api callbacks */
- ot->exec= find_missing_files_exec;
- ot->invoke= find_missing_files_invoke;
+ ot->exec = find_missing_files_exec;
+ ot->invoke = find_missing_files_invoke;
/* flags */
- ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
WM_operator_properties_filesel(ot, 0, FILE_SPECIAL, FILE_OPENFILE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
@@ -409,14 +409,14 @@ static int update_reports_display_invoke(bContext *C, wmOperator *UNUSED(op), wm
void INFO_OT_reports_display_update(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Update Reports Display";
- ot->idname= "INFO_OT_reports_display_update";
+ ot->name = "Update Reports Display";
+ ot->idname = "INFO_OT_reports_display_update";
/* api callbacks */
- ot->invoke= update_reports_display_invoke;
+ ot->invoke = update_reports_display_invoke;
/* flags */
- ot->flag= 0;
+ ot->flag = 0;
/* properties */
}
diff --git a/source/blender/editors/space_info/info_report.c b/source/blender/editors/space_info/info_report.c
index 89abb7ad1f0..ca467ea61fa 100644
--- a/source/blender/editors/space_info/info_report.c
+++ b/source/blender/editors/space_info/info_report.c
@@ -95,16 +95,16 @@ static int report_replay_exec(bContext *C, wmOperator *UNUSED(op))
void INFO_OT_report_replay(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Replay Operators";
- ot->description= "Replay selected reports";
- ot->idname= "INFO_OT_report_replay";
+ ot->name = "Replay Operators";
+ ot->description = "Replay selected reports";
+ ot->idname = "INFO_OT_report_replay";
/* api callbacks */
- ot->poll= ED_operator_info_active;
- ot->exec= report_replay_exec;
+ ot->poll = ED_operator_info_active;
+ ot->exec = report_replay_exec;
/* flags */
- /* ot->flag= OPTYPE_REGISTER; */
+ /* ot->flag = OPTYPE_REGISTER; */
/* properties */
}
@@ -145,17 +145,17 @@ static int select_report_pick_invoke(bContext *C, wmOperator *op, wmEvent *event
void INFO_OT_select_pick(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select report";
- ot->description= "Select reports by index";
- ot->idname= "INFO_OT_select_pick";
+ ot->name = "Select report";
+ ot->description = "Select reports by index";
+ ot->idname = "INFO_OT_select_pick";
/* api callbacks */
- ot->poll= ED_operator_info_active;
- ot->invoke= select_report_pick_invoke;
- ot->exec= select_report_pick_exec;
+ ot->poll = ED_operator_info_active;
+ ot->invoke = select_report_pick_invoke;
+ ot->exec = select_report_pick_exec;
/* flags */
- /* ot->flag= OPTYPE_REGISTER; */
+ /* ot->flag = OPTYPE_REGISTER; */
/* properties */
RNA_def_int(ot->srna, "report_index", 0, 0, INT_MAX, "Report", "Index of the report", 0, INT_MAX);
@@ -199,16 +199,16 @@ static int report_select_all_toggle_exec(bContext *C, wmOperator *UNUSED(op))
void INFO_OT_select_all_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "(De)select All";
- ot->description= "Select or deselect all reports";
- ot->idname= "INFO_OT_select_all_toggle";
+ ot->name = "(De)select All";
+ ot->description = "Select or deselect all reports";
+ ot->idname = "INFO_OT_select_all_toggle";
/* api callbacks */
- ot->poll= ED_operator_info_active;
- ot->exec= report_select_all_toggle_exec;
+ ot->poll = ED_operator_info_active;
+ ot->exec = report_select_all_toggle_exec;
/* flags */
- /*ot->flag= OPTYPE_REGISTER;*/
+ /*ot->flag = OPTYPE_REGISTER;*/
/* properties */
}
@@ -303,20 +303,20 @@ static int borderselect_exec(bContext *C, wmOperator *op)
void INFO_OT_select_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Select";
- ot->description= "Toggle border selection";
- ot->idname= "INFO_OT_select_border";
+ ot->name = "Border Select";
+ ot->description = "Toggle border selection";
+ ot->idname = "INFO_OT_select_border";
/* api callbacks */
- ot->invoke= WM_border_select_invoke;
- ot->exec= borderselect_exec;
- ot->modal= WM_border_select_modal;
- ot->cancel= WM_border_select_cancel;
+ ot->invoke = WM_border_select_invoke;
+ ot->exec = borderselect_exec;
+ ot->modal = WM_border_select_modal;
+ ot->cancel = WM_border_select_cancel;
- ot->poll= ED_operator_info_active;
+ ot->poll = ED_operator_info_active;
/* flags */
- /* ot->flag= OPTYPE_REGISTER; */
+ /* ot->flag = OPTYPE_REGISTER; */
/* rna */
WM_operator_properties_gesture_border(ot, TRUE);
@@ -354,16 +354,16 @@ static int report_delete_exec(bContext *C, wmOperator *UNUSED(op))
void INFO_OT_report_delete(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Reports";
- ot->description= "Delete selected reports";
- ot->idname= "INFO_OT_report_delete";
+ ot->name = "Delete Reports";
+ ot->description = "Delete selected reports";
+ ot->idname = "INFO_OT_report_delete";
/* api callbacks */
- ot->poll= ED_operator_info_active;
- ot->exec= report_delete_exec;
+ ot->poll = ED_operator_info_active;
+ ot->exec = report_delete_exec;
/* flags */
- /*ot->flag= OPTYPE_REGISTER;*/
+ /*ot->flag = OPTYPE_REGISTER;*/
/* properties */
}
@@ -399,16 +399,16 @@ static int report_copy_exec(bContext *C, wmOperator *UNUSED(op))
void INFO_OT_report_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Reports to Clipboard";
- ot->description= "Copy selected reports to Clipboard";
- ot->idname= "INFO_OT_report_copy";
+ ot->name = "Copy Reports to Clipboard";
+ ot->description = "Copy selected reports to Clipboard";
+ ot->idname = "INFO_OT_report_copy";
/* api callbacks */
- ot->poll= ED_operator_info_active;
- ot->exec= report_copy_exec;
+ ot->poll = ED_operator_info_active;
+ ot->exec = report_copy_exec;
/* flags */
- /*ot->flag= OPTYPE_REGISTER;*/
+ /*ot->flag = OPTYPE_REGISTER;*/
/* properties */
}