diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-24 19:10:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-24 19:10:26 +0300 |
commit | 4dd3e6c36070e64d8b1d784a34d9881ae2c3eed8 (patch) | |
tree | b5797cbc48a2cffad1a50d07945c8e5b31b68e6c /source/blender/editors | |
parent | 1d224ad692c8794500f4d6fd5257887db150a635 (diff) |
support for registering operators using the same internal rna api as panels, menus, headers & render engines since there was a fair bit of duplicate functionality.
will remove the old system and update scripts next.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/mesh_intern.h | 4 | ||||
-rw-r--r-- | source/blender/editors/space_console/console_intern.h | 32 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 2 |
3 files changed, 20 insertions, 18 deletions
diff --git a/source/blender/editors/mesh/mesh_intern.h b/source/blender/editors/mesh/mesh_intern.h index e8ec85d8bd0..31e8cb16abc 100644 --- a/source/blender/editors/mesh/mesh_intern.h +++ b/source/blender/editors/mesh/mesh_intern.h @@ -34,6 +34,8 @@ struct bContext; struct wmOperatorType; +struct wmOperator; + #define UVCOPY(t, s) memcpy(t, s, 2 * sizeof(float)); @@ -197,7 +199,7 @@ extern EditVert *findnearestvert(ViewContext *vc, int *dist, short sel, short st void join_triangles(EditMesh *em); int removedoublesflag(EditMesh *em, short flag, short automerge, float limit); /* return amount */ void esubdivideflag(Object *obedit, EditMesh *em, int flag, float smooth, float fractal, int beauty, int numcuts, int seltype); -int EdgeSlide(EditMesh *em, wmOperator *op, short immediate, float imperc); +int EdgeSlide(EditMesh *em, struct wmOperator *op, short immediate, float imperc); void MESH_OT_merge(struct wmOperatorType *ot); void MESH_OT_subdivide(struct wmOperatorType *ot); diff --git a/source/blender/editors/space_console/console_intern.h b/source/blender/editors/space_console/console_intern.h index 6d002efcc8e..889ed2dae81 100644 --- a/source/blender/editors/space_console/console_intern.h +++ b/source/blender/editors/space_console/console_intern.h @@ -51,28 +51,28 @@ ConsoleLine *console_history_verify(const struct bContext *C); int console_report_mask(SpaceConsole *sc); -void CONSOLE_OT_move(wmOperatorType *ot); -void CONSOLE_OT_delete(wmOperatorType *ot); -void CONSOLE_OT_insert(wmOperatorType *ot); +void CONSOLE_OT_move(struct wmOperatorType *ot); +void CONSOLE_OT_delete(struct wmOperatorType *ot); +void CONSOLE_OT_insert(struct wmOperatorType *ot); -void CONSOLE_OT_history_append(wmOperatorType *ot); -void CONSOLE_OT_scrollback_append(wmOperatorType *ot); +void CONSOLE_OT_history_append(struct wmOperatorType *ot); +void CONSOLE_OT_scrollback_append(struct wmOperatorType *ot); -void CONSOLE_OT_clear(wmOperatorType *ot); -void CONSOLE_OT_history_cycle(wmOperatorType *ot); -void CONSOLE_OT_copy(wmOperatorType *ot); -void CONSOLE_OT_paste(wmOperatorType *ot); -void CONSOLE_OT_zoom(wmOperatorType *ot); +void CONSOLE_OT_clear(struct wmOperatorType *ot); +void CONSOLE_OT_history_cycle(struct wmOperatorType *ot); +void CONSOLE_OT_copy(struct wmOperatorType *ot); +void CONSOLE_OT_paste(struct wmOperatorType *ot); +void CONSOLE_OT_zoom(struct wmOperatorType *ot); /* console_report.c */ -void CONSOLE_OT_select_pick(wmOperatorType *ot); /* report selection */ -void CONSOLE_OT_select_all_toggle(wmOperatorType *ot); -void CONSOLE_OT_select_border(wmOperatorType *ot); +void CONSOLE_OT_select_pick(struct wmOperatorType *ot); /* report selection */ +void CONSOLE_OT_select_all_toggle(struct wmOperatorType *ot); +void CONSOLE_OT_select_border(struct wmOperatorType *ot); -void CONSOLE_OT_report_replay(wmOperatorType *ot); -void CONSOLE_OT_report_delete(wmOperatorType *ot); -void CONSOLE_OT_report_copy(wmOperatorType *ot); +void CONSOLE_OT_report_replay(struct wmOperatorType *ot); +void CONSOLE_OT_report_delete(struct wmOperatorType *ot); +void CONSOLE_OT_report_copy(struct wmOperatorType *ot); diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index 0ee6115bbfe..a0e0ec30912 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -1814,7 +1814,7 @@ void UV_OT_select_loop(wmOperatorType *ot) /* ******************** linked select operator **************** */ -static select_linked_internal(bContext *C, wmOperator *op, wmEvent *event, int pick) +static int select_linked_internal(bContext *C, wmOperator *op, wmEvent *event, int pick) { SpaceImage *sima= CTX_wm_space_image(C); Scene *scene= CTX_data_scene(C); |