Blender V5.3
curve_ops.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include <cstdlib>
10
11#include "RNA_access.hh"
12
13#include "WM_api.hh"
14#include "WM_types.hh"
15
16#include "ED_curve.hh"
17#include "ED_screen.hh"
18
19#include "curve_intern.hh"
20
21namespace blender {
22
23/************************* registration ****************************/
24
26{
29
34
36
42
45
49
52
55
58
61
67
77
83
90
95
110
120
122}
123
125{
126 wmOperatorType *ot;
127 wmOperatorTypeMacro *otmacro;
128
129 ot = WM_operatortype_append_macro("CURVE_OT_duplicate_move",
130 "Add Duplicate",
131 "Duplicate curve and move",
133 WM_operatortype_macro_define(ot, "CURVE_OT_duplicate");
134 otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
135 RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false);
136 RNA_boolean_set(otmacro->ptr, "mirror", false);
137
138 ot = WM_operatortype_append_macro("CURVE_OT_extrude_move",
139 "Extrude Curve and Move",
140 "Extrude curve and move result",
142 WM_operatortype_macro_define(ot, "CURVE_OT_extrude");
143 otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
144 RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false);
145 RNA_boolean_set(otmacro->ptr, "mirror", false);
146}
147
149{
150 /* only set in editmode font, by space_view3d listener */
151 wmKeyMap *keymap = WM_keymap_ensure(keyconf, "Font", SPACE_EMPTY, RGN_TYPE_WINDOW);
152 keymap->poll = ED_operator_editfont;
153
154 /* only set in editmode curve, by space_view3d listener */
155 keymap = WM_keymap_ensure(keyconf, "Curve", SPACE_EMPTY, RGN_TYPE_WINDOW);
157
158 curve_pen_modal_keymap(keyconf);
159}
160
161} // namespace blender
BMesh Iterators.
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
void CURVE_OT_select_random(wmOperatorType *ot)
void SURFACE_OT_primitive_nurbs_surface_torus_add(wmOperatorType *ot)
void CURVE_OT_select_next(wmOperatorType *ot)
void CURVE_OT_primitive_nurbs_circle_add(wmOperatorType *ot)
void FONT_OT_change_spacing(wmOperatorType *ot)
Definition editfont.cc:1594
void CURVE_OT_make_segment(wmOperatorType *ot)
void CURVE_OT_match_texture_space(wmOperatorType *ot)
void CURVE_OT_duplicate(wmOperatorType *ot)
void CURVE_OT_select_all(wmOperatorType *ot)
void CURVE_OT_tilt_clear(wmOperatorType *ot)
void CURVE_OT_vertex_add(wmOperatorType *ot)
void CURVE_OT_primitive_bezier_circle_add(wmOperatorType *ot)
void CURVE_OT_extrude(wmOperatorType *ot)
void FONT_OT_select_word(wmOperatorType *ot)
Definition editfont.cc:2161
void FONT_OT_line_break(wmOperatorType *ot)
Definition editfont.cc:1699
void FONT_OT_delete(wmOperatorType *ot)
Definition editfont.cc:1851
void CURVE_OT_primitive_nurbs_path_add(wmOperatorType *ot)
void CURVE_OT_cyclic_toggle(wmOperatorType *ot)
wmOperatorTypeMacro * WM_operatortype_macro_define(wmOperatorType *ot, const char *idname)
void SURFACE_OT_primitive_nurbs_surface_cylinder_add(wmOperatorType *ot)
void CURVE_OT_smooth_weight(wmOperatorType *ot)
wmKeyMap * curve_pen_modal_keymap(wmKeyConfig *keyconf)
void CURVE_OT_spin(wmOperatorType *ot)
void FONT_OT_unlink(wmOperatorType *ot)
Definition editfont.cc:2593
void CURVE_OT_decimate(wmOperatorType *ot)
void CURVE_OT_delete(wmOperatorType *ot)
void FONT_OT_move(wmOperatorType *ot)
Definition editfont.cc:1499
void CURVE_OT_normals_make_consistent(wmOperatorType *ot)
void CURVE_OT_draw(wmOperatorType *ot)
void FONT_OT_text_cut(wmOperatorType *ot)
Definition editfont.cc:1179
void CURVE_OT_smooth_tilt(wmOperatorType *ot)
void CURVE_OT_primitive_nurbs_curve_add(wmOperatorType *ot)
void CURVE_OT_dissolve_verts(wmOperatorType *ot)
void CURVE_OT_subdivide(wmOperatorType *ot)
void FONT_OT_case_set(wmOperatorType *ot)
Definition editfont.cc:2380
void CURVE_OT_hide(wmOperatorType *ot)
void FONT_OT_text_copy(wmOperatorType *ot)
Definition editfont.cc:1143
void SURFACE_OT_primitive_nurbs_surface_surface_add(wmOperatorType *ot)
void CURVE_OT_spline_weight_set(wmOperatorType *ot)
void ED_keymap_curve(wmKeyConfig *keyconf)
Definition curve_ops.cc:148
void CURVE_OT_radius_set(wmOperatorType *ot)
void CURVE_OT_switch_direction(wmOperatorType *ot)
void CURVE_OT_de_select_last(wmOperatorType *ot)
void ED_operatortypes_curve()
Definition curve_ops.cc:25
bool ED_operator_editsurfcurve(bContext *C)
void CURVE_OT_pen(wmOperatorType *ot)
void FONT_OT_open(wmOperatorType *ot)
Definition editfont.cc:2540
void FONT_OT_textbox_remove(wmOperatorType *ot)
Definition editfont.cc:2244
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition wm_keymap.cc:935
void FONT_OT_text_paste(wmOperatorType *ot)
Definition editfont.cc:1285
void FONT_OT_textbox_add(wmOperatorType *ot)
Definition editfont.cc:2200
void FONT_OT_style_toggle(wmOperatorType *ot)
Definition editfont.cc:1043
void CURVE_OT_smooth_radius(wmOperatorType *ot)
void CURVE_OT_separate(wmOperatorType *ot)
void CURVE_OT_split(wmOperatorType *ot)
void CURVE_OT_shortest_path_pick(wmOperatorType *ot)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
void FONT_OT_change_character(wmOperatorType *ot)
Definition editfont.cc:1652
void CURVE_OT_de_select_first(wmOperatorType *ot)
bool ED_operator_editfont(bContext *C)
void CURVE_OT_shade_smooth(wmOperatorType *ot)
void CURVE_OT_select_more(wmOperatorType *ot)
void FONT_OT_case_toggle(wmOperatorType *ot)
Definition editfont.cc:2427
wmOperatorType * WM_operatortype_append_macro(const char *idname, const char *name, const char *description, int flag)
void FONT_OT_select_all(wmOperatorType *ot)
Definition editfont.cc:1087
void CURVE_OT_reveal(wmOperatorType *ot)
void FONT_OT_style_set(wmOperatorType *ot)
Definition editfont.cc:1002
void CURVE_OT_smooth(wmOperatorType *ot)
void CURVE_OT_select_similar(wmOperatorType *ot)
void ED_operatormacros_curve()
Definition curve_ops.cc:124
void FONT_OT_selection_set(wmOperatorType *ot)
Definition editfont.cc:2124
void SURFACE_OT_primitive_nurbs_surface_sphere_add(wmOperatorType *ot)
void FONT_OT_move_select(wmOperatorType *ot)
Definition editfont.cc:1530
void CURVE_OT_select_linked_pick(wmOperatorType *ot)
void CURVE_OT_shade_flat(wmOperatorType *ot)
void FONT_OT_text_insert(wmOperatorType *ot)
Definition editfont.cc:2001
void SURFACE_OT_primitive_nurbs_surface_circle_add(wmOperatorType *ot)
void CURVE_OT_spline_type_set(wmOperatorType *ot)
@ OPTYPE_REGISTER
Definition WM_types.hh:188
@ OPTYPE_UNDO
Definition WM_types.hh:190
void CURVE_OT_select_previous(wmOperatorType *ot)
void CURVE_OT_handle_type_set(wmOperatorType *ot)
void CURVE_OT_select_linked(wmOperatorType *ot)
void SURFACE_OT_primitive_nurbs_surface_curve_add(wmOperatorType *ot)
void CURVE_OT_primitive_bezier_curve_add(wmOperatorType *ot)
void CURVE_OT_select_nth(wmOperatorType *ot)
void CURVE_OT_select_row(wmOperatorType *ot)
void FONT_OT_text_paste_from_file(wmOperatorType *ot)
Definition editfont.cc:639
void FONT_OT_text_insert_unicode(wmOperatorType *ot)
Definition editfont.cc:810
void CURVE_OT_select_less(wmOperatorType *ot)
bool(*) poll(struct bContext *)