diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-07 23:03:49 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-07 23:03:49 +0300 |
commit | 21f41e1bce458efe5863bc19d174453f3ea2a492 (patch) | |
tree | 1971775dca16658d7b9aaf0707e7ef6814e6b87f /source | |
parent | 47416c725c9790c17abddfbcd96c080e28e76abb (diff) |
Text and Console operators don't need to register themselves. (this cleans the reports quite a bit)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 30 | ||||
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 60 |
2 files changed, 0 insertions, 90 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index a2e11dc6bd5..89c058ad7f3 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -369,9 +369,6 @@ void CONSOLE_OT_move(wmOperatorType *ot) ot->exec= move_exec; ot->poll= console_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to."); } @@ -415,9 +412,6 @@ void CONSOLE_OT_insert(wmOperatorType *ot) ot->invoke= insert_invoke; ot->poll= console_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position."); } @@ -482,9 +476,6 @@ void CONSOLE_OT_delete(wmOperatorType *ot) ot->exec= delete_exec; ot->poll= console_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_enum(ot->srna, "type", delete_type_items, DEL_NEXT_CHAR, "Type", "Which part of the text to delete."); } @@ -525,9 +516,6 @@ void CONSOLE_OT_clear(wmOperatorType *ot) /* api callbacks */ ot->exec= clear_exec; ot->poll= console_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; /* properties */ RNA_def_boolean(ot->srna, "scrollback", 1, "Scrollback", "Clear the scrollback history"); @@ -587,9 +575,6 @@ void CONSOLE_OT_history_cycle(wmOperatorType *ot) /* api callbacks */ ot->exec= history_cycle_exec; ot->poll= console_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; /* properties */ RNA_def_boolean(ot->srna, "reverse", 0, "Reverse", "reverse cycle history"); @@ -635,9 +620,6 @@ void CONSOLE_OT_history_append(wmOperatorType *ot) /* api callbacks */ ot->exec= history_append_exec; ot->poll= console_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; /* properties */ RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position."); @@ -683,9 +665,6 @@ void CONSOLE_OT_scrollback_append(wmOperatorType *ot) /* api callbacks */ ot->exec= scrollback_append_exec; ot->poll= console_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; /* properties */ RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position."); @@ -727,9 +706,6 @@ void CONSOLE_OT_copy(wmOperatorType *ot) ot->poll= console_edit_poll; ot->exec= copy_exec; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ } @@ -762,9 +738,6 @@ void CONSOLE_OT_paste(wmOperatorType *ot) ot->poll= console_edit_poll; ot->exec= paste_exec; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ } @@ -795,9 +768,6 @@ void CONSOLE_OT_zoom(wmOperatorType *ot) /* api callbacks */ ot->exec= zoom_exec; ot->poll= console_poll; - - /* flags */ - /* ot->flag= OPTYPE_REGISTER; */ /* super annoying */ /* properties */ RNA_def_int(ot->srna, "delta", 0, 0, INT_MAX, "Delta", "Scale the view font.", 0, 1000); diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 16a7f97afd6..1a23b9ecc42 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -735,9 +735,6 @@ void TEXT_OT_paste(wmOperatorType *ot) ot->exec= paste_exec; ot->poll= text_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_boolean(ot->srna, "selection", 0, "Selection", "Paste text selected elsewhere rather than copied, X11 only."); } @@ -806,9 +803,6 @@ void TEXT_OT_cut(wmOperatorType *ot) /* api callbacks */ ot->exec= cut_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* indent operator *********************/ @@ -842,9 +836,6 @@ void TEXT_OT_indent(wmOperatorType *ot) /* api callbacks */ ot->exec= indent_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* unindent operator *********************/ @@ -878,9 +869,6 @@ void TEXT_OT_unindent(wmOperatorType *ot) /* api callbacks */ ot->exec= unindent_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* line break operator *********************/ @@ -919,9 +907,6 @@ void TEXT_OT_line_break(wmOperatorType *ot) /* api callbacks */ ot->exec= line_break_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* comment operator *********************/ @@ -952,9 +937,6 @@ void TEXT_OT_comment(wmOperatorType *ot) /* api callbacks */ ot->exec= comment_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* uncomment operator *********************/ @@ -986,9 +968,6 @@ void TEXT_OT_uncomment(wmOperatorType *ot) /* api callbacks */ ot->exec= uncomment_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* convert whitespace operator *********************/ @@ -1129,9 +1108,6 @@ void TEXT_OT_convert_whitespace(wmOperatorType *ot) ot->exec= convert_whitespace_exec; ot->poll= text_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_enum(ot->srna, "type", whitespace_type_items, TO_SPACES, "type", "Type of whitespace to convert to."); } @@ -1159,9 +1135,6 @@ void TEXT_OT_select_all(wmOperatorType *ot) /* api callbacks */ ot->exec= select_all_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* select line operator *********************/ @@ -1187,9 +1160,6 @@ void TEXT_OT_select_line(wmOperatorType *ot) /* api clinebacks */ ot->exec= select_line_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* previous marker operator *********************/ @@ -1225,9 +1195,6 @@ void TEXT_OT_previous_marker(wmOperatorType *ot) /* api callbacks */ ot->exec= previous_marker_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* next marker operator *********************/ @@ -1263,9 +1230,6 @@ void TEXT_OT_next_marker(wmOperatorType *ot) /* api callbacks */ ot->exec= next_marker_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* clear all markers operator *********************/ @@ -1291,9 +1255,6 @@ void TEXT_OT_markers_clear(wmOperatorType *ot) /* api callbacks */ ot->exec= clear_all_markers_exec; ot->poll= text_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /************************ move operator ************************/ @@ -1576,9 +1537,6 @@ void TEXT_OT_move(wmOperatorType *ot) ot->exec= move_exec; ot->poll= text_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to."); } @@ -1603,9 +1561,6 @@ void TEXT_OT_move_select(wmOperatorType *ot) ot->exec= move_select_exec; ot->poll= text_space_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to, to make a selection."); } @@ -1640,9 +1595,6 @@ void TEXT_OT_jump(wmOperatorType *ot) ot->exec= jump_exec; ot->poll= text_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_int(ot->srna, "line", 1, 1, INT_MAX, "Line", "Line number to jump to.", 1, 10000); } @@ -1693,9 +1645,6 @@ void TEXT_OT_delete(wmOperatorType *ot) ot->exec= delete_exec; ot->poll= text_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_enum(ot->srna, "type", delete_type_items, DEL_NEXT_CHAR, "Type", "Which part of the text to delete."); } @@ -1721,9 +1670,6 @@ void TEXT_OT_overwrite_toggle(wmOperatorType *ot) /* api callbacks */ ot->exec= toggle_overwrite_exec; ot->poll= text_space_edit_poll; - - /* flags */ - ot->flag= OPTYPE_REGISTER; } /******************* scroll operator **********************/ @@ -2208,9 +2154,6 @@ void TEXT_OT_cursor_set(wmOperatorType *ot) ot->cancel= set_cursor_cancel; ot->poll= text_region_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_BLOCKING; - /* properties */ RNA_def_boolean(ot->srna, "select", 0, "Select", "Set selection end rather than cursor."); } @@ -2332,9 +2275,6 @@ void TEXT_OT_insert(wmOperatorType *ot) ot->invoke= insert_invoke; ot->poll= text_edit_poll; - /* flags */ - ot->flag= OPTYPE_REGISTER; - /* properties */ RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position."); } |