From e8ade192ff081a41275687b167e22792eadcaaa9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 Sep 2013 00:03:33 +0000 Subject: move editcurve add functions into their own source file editcurve_add.c --- source/blender/editors/curve/curve_intern.h | 38 ++++++++++++++++++----------- 1 file changed, 24 insertions(+), 14 deletions(-) (limited to 'source/blender/editors/curve/curve_intern.h') diff --git a/source/blender/editors/curve/curve_intern.h b/source/blender/editors/curve/curve_intern.h index 8a5e4b338d3..da8f86580f6 100644 --- a/source/blender/editors/curve/curve_intern.h +++ b/source/blender/editors/curve/curve_intern.h @@ -33,6 +33,9 @@ #define __CURVE_INTERN_H__ /* internal exports only */ +struct ListBase; +struct EditNurb; +struct Object; struct wmOperatorType; /* lorem.c */ @@ -71,6 +74,7 @@ void FONT_OT_unlink(struct wmOperatorType *ot); void FONT_OT_textbox_add(struct wmOperatorType *ot); void FONT_OT_textbox_remove(struct wmOperatorType *ot); + /* editcurve.c */ void CURVE_OT_hide(struct wmOperatorType *ot); void CURVE_OT_reveal(struct wmOperatorType *ot); @@ -93,19 +97,6 @@ void CURVE_OT_smooth_weight(struct wmOperatorType *ot); void CURVE_OT_smooth_radius(struct wmOperatorType *ot); void CURVE_OT_smooth_tilt(struct wmOperatorType *ot); -void CURVE_OT_primitive_bezier_curve_add(struct wmOperatorType *ot); -void CURVE_OT_primitive_bezier_circle_add(struct wmOperatorType *ot); -void CURVE_OT_primitive_nurbs_curve_add(struct wmOperatorType *ot); -void CURVE_OT_primitive_nurbs_circle_add(struct wmOperatorType *ot); -void CURVE_OT_primitive_nurbs_path_add(struct wmOperatorType *ot); - -void SURFACE_OT_primitive_nurbs_surface_curve_add(struct wmOperatorType *ot); -void SURFACE_OT_primitive_nurbs_surface_circle_add(struct wmOperatorType *ot); -void SURFACE_OT_primitive_nurbs_surface_surface_add(struct wmOperatorType *ot); -void SURFACE_OT_primitive_nurbs_surface_cylinder_add(struct wmOperatorType *ot); -void SURFACE_OT_primitive_nurbs_surface_sphere_add(struct wmOperatorType *ot); -void SURFACE_OT_primitive_nurbs_surface_torus_add(struct wmOperatorType *ot); - void CURVE_OT_de_select_first(struct wmOperatorType *ot); void CURVE_OT_de_select_last(struct wmOperatorType *ot); void CURVE_OT_select_all(struct wmOperatorType *ot); @@ -127,5 +118,24 @@ void CURVE_OT_vertex_add(struct wmOperatorType *ot); void CURVE_OT_extrude(struct wmOperatorType *ot); void CURVE_OT_cyclic_toggle(struct wmOperatorType *ot); -#endif /* ED_UTIL_INTERN_H */ +/* helper functions */ +void ed_editnurb_translate_flag(struct ListBase *editnurb, short flag, const float vec[3]); +bool ed_editnurb_extrude_flag(struct EditNurb *editnurb, short flag); +bool ed_editnurb_spin(float viewmat[4][4], struct Object *obedit, const float axis[3], const float cent[3]); + + +/* editcurve_add.c */ +void CURVE_OT_primitive_bezier_curve_add(struct wmOperatorType *ot); +void CURVE_OT_primitive_bezier_circle_add(struct wmOperatorType *ot); +void CURVE_OT_primitive_nurbs_curve_add(struct wmOperatorType *ot); +void CURVE_OT_primitive_nurbs_circle_add(struct wmOperatorType *ot); +void CURVE_OT_primitive_nurbs_path_add(struct wmOperatorType *ot); + +void SURFACE_OT_primitive_nurbs_surface_curve_add(struct wmOperatorType *ot); +void SURFACE_OT_primitive_nurbs_surface_circle_add(struct wmOperatorType *ot); +void SURFACE_OT_primitive_nurbs_surface_surface_add(struct wmOperatorType *ot); +void SURFACE_OT_primitive_nurbs_surface_cylinder_add(struct wmOperatorType *ot); +void SURFACE_OT_primitive_nurbs_surface_sphere_add(struct wmOperatorType *ot); +void SURFACE_OT_primitive_nurbs_surface_torus_add(struct wmOperatorType *ot); +#endif /* __CURVE_INTERN_H__ */ -- cgit v1.2.3