diff options
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 518 | ||||
-rw-r--r-- | source/blender/editors/curve/editfont.c | 238 |
2 files changed, 378 insertions, 378 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index afa68ac5597..7b855398802 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -1400,15 +1400,15 @@ static int separate_exec(bContext *C, wmOperator *op) void CURVE_OT_separate(wmOperatorType *ot) { /* identifiers */ - ot->name= "Separate"; - ot->idname= "CURVE_OT_separate"; + ot->name = "Separate"; + ot->idname = "CURVE_OT_separate"; /* api callbacks */ - ot->exec= separate_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = separate_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* ******************* FLAGS ********************* */ @@ -2008,16 +2008,16 @@ static int switch_direction_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_switch_direction(wmOperatorType *ot) { /* identifiers */ - ot->name= "Switch Direction"; - ot->description= "Switch direction of selected splines"; - ot->idname= "CURVE_OT_switch_direction"; + ot->name = "Switch Direction"; + ot->description = "Switch direction of selected splines"; + ot->idname = "CURVE_OT_switch_direction"; /* api callbacks */ - ot->exec= switch_direction_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = switch_direction_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /****************** set weight operator *******************/ @@ -2056,17 +2056,17 @@ static int set_goal_weight_exec(bContext *C, wmOperator *op) void CURVE_OT_spline_weight_set(wmOperatorType *ot) { /* identifiers */ - ot->name= "Set Goal Weight"; - ot->description= "Set softbody goal weight for selected points"; - ot->idname= "CURVE_OT_spline_weight_set"; + ot->name = "Set Goal Weight"; + ot->description = "Set softbody goal weight for selected points"; + ot->idname = "CURVE_OT_spline_weight_set"; /* api callbacks */ - ot->exec= set_goal_weight_exec; - ot->invoke= WM_operator_props_popup; - ot->poll= ED_operator_editsurfcurve; + ot->exec = set_goal_weight_exec; + ot->invoke = WM_operator_props_popup; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_float_factor(ot->srna, "weight", 1.0f, 0.0f, 1.0f, "Weight", "", 0.0f, 1.0f); @@ -2108,17 +2108,17 @@ static int set_radius_exec(bContext *C, wmOperator *op) void CURVE_OT_radius_set(wmOperatorType *ot) { /* identifiers */ - ot->name= "Set Curve Radius"; - ot->description= "Set per-point radius which is used for bevel tapering"; - ot->idname= "CURVE_OT_radius_set"; + ot->name = "Set Curve Radius"; + ot->description = "Set per-point radius which is used for bevel tapering"; + ot->idname = "CURVE_OT_radius_set"; /* api callbacks */ - ot->exec= set_radius_exec; - ot->invoke= WM_operator_props_popup; - ot->poll= ED_operator_editsurfcurve; + ot->exec = set_radius_exec; + ot->invoke = WM_operator_props_popup; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_float(ot->srna, "radius", 1.0f, 0.0f, FLT_MAX, "Radius", "", 0.0001f, 10.0f); @@ -2184,16 +2184,16 @@ static int smooth_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_smooth(wmOperatorType *ot) { /* identifiers */ - ot->name= "Smooth"; - ot->description= "Flatten angles of selected points"; - ot->idname= "CURVE_OT_smooth"; + ot->name = "Smooth"; + ot->description = "Flatten angles of selected points"; + ot->idname = "CURVE_OT_smooth"; /* api callbacks */ - ot->exec= smooth_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = smooth_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /**************** smooth curve radius operator *************/ @@ -2350,16 +2350,16 @@ static int smooth_radius_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_smooth_radius(wmOperatorType *ot) { /* identifiers */ - ot->name= "Smooth Curve Radius"; - ot->description= "Flatten radiuses of selected points"; - ot->idname= "CURVE_OT_smooth_radius"; + ot->name = "Smooth Curve Radius"; + ot->description = "Flatten radiuses of selected points"; + ot->idname = "CURVE_OT_smooth_radius"; /* api clastbacks */ - ot->exec= smooth_radius_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = smooth_radius_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /***************** selection utility *************************/ @@ -2502,15 +2502,15 @@ static int de_select_first_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_de_select_first(wmOperatorType *ot) { /* identifiers */ - ot->name= "(De)select First"; - ot->idname= "CURVE_OT_de_select_first"; + ot->name = "(De)select First"; + ot->idname = "CURVE_OT_de_select_first"; /* api cfirstbacks */ - ot->exec= de_select_first_exec; - ot->poll= ED_operator_editcurve; + ot->exec = de_select_first_exec; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } static int de_select_last_exec(bContext *C, wmOperator *UNUSED(op)) @@ -2526,15 +2526,15 @@ static int de_select_last_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_de_select_last(wmOperatorType *ot) { /* identifiers */ - ot->name= "(De)select Last"; - ot->idname= "CURVE_OT_de_select_last"; + ot->name = "(De)select Last"; + ot->idname = "CURVE_OT_de_select_last"; /* api clastbacks */ - ot->exec= de_select_last_exec; - ot->poll= ED_operator_editcurve; + ot->exec = de_select_last_exec; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /******************* de select all operator ***************/ @@ -2604,15 +2604,15 @@ static int de_select_all_exec(bContext *C, wmOperator *op) void CURVE_OT_select_all(wmOperatorType *ot) { /* identifiers */ - ot->name= "(De)select All"; - ot->idname= "CURVE_OT_select_all"; + ot->name = "(De)select All"; + ot->idname = "CURVE_OT_select_all"; /* api callbacks */ - ot->exec= de_select_all_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = de_select_all_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ WM_operator_properties_select_all(ot); @@ -2678,15 +2678,15 @@ static int hide_exec(bContext *C, wmOperator *op) void CURVE_OT_hide(wmOperatorType *ot) { /* identifiers */ - ot->name= "Hide Selected"; - ot->idname= "CURVE_OT_hide"; + ot->name = "Hide Selected"; + ot->idname = "CURVE_OT_hide"; /* api callbacks */ - ot->exec= hide_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = hide_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* props */ RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected"); @@ -2738,15 +2738,15 @@ static int reveal_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_reveal(wmOperatorType *ot) { /* identifiers */ - ot->name= "Reveal Hidden"; - ot->idname= "CURVE_OT_reveal"; + ot->name = "Reveal Hidden"; + ot->idname = "CURVE_OT_reveal"; /* api callbacks */ - ot->exec= reveal_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = reveal_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /********************** subdivide operator *********************/ @@ -3174,16 +3174,16 @@ void CURVE_OT_subdivide(wmOperatorType *ot) PropertyRNA *prop; /* identifiers */ - ot->name= "Subdivide"; - ot->description= "Subdivide selected segments"; - ot->idname= "CURVE_OT_subdivide"; + ot->name = "Subdivide"; + ot->description = "Subdivide selected segments"; + ot->idname = "CURVE_OT_subdivide"; /* api callbacks */ - ot->exec= subdivide_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = subdivide_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, "Number of cuts", "", 1, 10); /* avoid re-using last var because it can cause _very_ high poly meshes and annoy users (or worse crash) */ @@ -3502,20 +3502,20 @@ void CURVE_OT_spline_type_set(wmOperatorType *ot) {0, NULL, 0, NULL, NULL}}; /* identifiers */ - ot->name= "Set Spline Type"; + ot->name = "Set Spline Type"; ot->description = "Set type of active spline"; - ot->idname= "CURVE_OT_spline_type_set"; + ot->idname = "CURVE_OT_spline_type_set"; /* api callbacks */ - ot->exec= set_spline_type_exec; - ot->invoke= WM_menu_invoke; - ot->poll= ED_operator_editcurve; + ot->exec = set_spline_type_exec; + ot->invoke = WM_menu_invoke; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ - ot->prop= RNA_def_enum(ot->srna, "type", type_items, CU_POLY, "Type", "Spline type"); + ot->prop = RNA_def_enum(ot->srna, "type", type_items, CU_POLY, "Type", "Spline type"); } /***************** set handle type operator *******************/ @@ -3545,20 +3545,20 @@ void CURVE_OT_handle_type_set(wmOperatorType *ot) {0, NULL, 0, NULL, NULL}}; /* identifiers */ - ot->name= "Set Handle Type"; + ot->name = "Set Handle Type"; ot->description = "Set type of handles for selected control points"; - ot->idname= "CURVE_OT_handle_type_set"; + ot->idname = "CURVE_OT_handle_type_set"; /* api callbacks */ - ot->invoke= WM_menu_invoke; - ot->exec= set_handle_type_exec; - ot->poll= ED_operator_editcurve; + ot->invoke = WM_menu_invoke; + ot->exec = set_handle_type_exec; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ - ot->prop= RNA_def_enum(ot->srna, "type", editcurve_handle_type_items, 1, "Type", "Spline type"); + ot->prop = RNA_def_enum(ot->srna, "type", editcurve_handle_type_items, 1, "Type", "Spline type"); } /***************** make segment operator **********************/ @@ -4080,15 +4080,15 @@ static int make_segment_exec(bContext *C, wmOperator *op) void CURVE_OT_make_segment(wmOperatorType *ot) { /* identifiers */ - ot->name= "Make Segment"; - ot->idname= "CURVE_OT_make_segment"; + ot->name = "Make Segment"; + ot->idname = "CURVE_OT_make_segment"; /* api callbacks */ - ot->exec= make_segment_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = make_segment_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /***************** pick select from 3d view **********************/ @@ -4310,16 +4310,16 @@ static int spin_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)) void CURVE_OT_spin(wmOperatorType *ot) { /* identifiers */ - ot->name= "Spin"; - ot->idname= "CURVE_OT_spin"; + ot->name = "Spin"; + ot->idname = "CURVE_OT_spin"; /* api callbacks */ - ot->exec= spin_exec; + ot->exec = spin_exec; ot->invoke = spin_invoke; - ot->poll= ED_operator_editsurf; + ot->poll = ED_operator_editsurf; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; RNA_def_float_vector_xyz(ot->srna, "center", 3, NULL, -FLT_MAX, FLT_MAX, "Center", "Center in global view space", -FLT_MAX, FLT_MAX); RNA_def_float_vector(ot->srna, "axis", 3, NULL, -1.0f, 1.0f, "Axis", "Axis in global view space", -FLT_MAX, FLT_MAX); @@ -4619,16 +4619,16 @@ static int add_vertex_invoke(bContext *C, wmOperator *op, wmEvent *event) void CURVE_OT_vertex_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Vertex"; - ot->idname= "CURVE_OT_vertex_add"; + ot->name = "Add Vertex"; + ot->idname = "CURVE_OT_vertex_add"; /* api callbacks */ - ot->exec= add_vertex_exec; - ot->invoke= add_vertex_invoke; - ot->poll= ED_operator_editcurve; + ot->exec = add_vertex_exec; + ot->invoke = add_vertex_invoke; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_float_vector_xyz(ot->srna, "location", 3, NULL, -FLT_MAX, FLT_MAX, "Location", "Location to add new vertex at", -1e4, 1e4); @@ -4667,16 +4667,16 @@ static int extrude_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_extrude(wmOperatorType *ot) { /* identifiers */ - ot->name= "Extrude"; + ot->name = "Extrude"; ot->description = "Extrude selected control point(s) and move"; - ot->idname= "CURVE_OT_extrude"; + ot->idname = "CURVE_OT_extrude"; /* api callbacks */ - ot->exec= extrude_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = extrude_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* to give to transform */ RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", ""); @@ -4795,17 +4795,17 @@ void CURVE_OT_cyclic_toggle(wmOperatorType *ot) {0, NULL, 0, NULL, NULL}}; /* identifiers */ - ot->name= "Toggle Cyclic"; + ot->name = "Toggle Cyclic"; ot->description = "Make active spline closed/opened loop"; - ot->idname= "CURVE_OT_cyclic_toggle"; + ot->idname = "CURVE_OT_cyclic_toggle"; /* api callbacks */ - ot->exec= toggle_cyclic_exec; - ot->invoke= toggle_cyclic_invoke; - ot->poll= ED_operator_editsurfcurve; + ot->exec = toggle_cyclic_exec; + ot->invoke = toggle_cyclic_invoke; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction", "Direction to make surface cyclic in"); @@ -4872,16 +4872,16 @@ static int select_linked_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(eve void CURVE_OT_select_linked(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Linked All"; - ot->idname= "CURVE_OT_select_linked"; + ot->name = "Select Linked All"; + ot->idname = "CURVE_OT_select_linked"; /* api callbacks */ - ot->exec= select_linked_exec; - ot->invoke= select_linked_invoke; - ot->poll= ED_operator_editsurfcurve; + ot->exec = select_linked_exec; + ot->invoke = select_linked_invoke; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ } @@ -4932,15 +4932,15 @@ static int select_linked_pick_invoke(bContext *C, wmOperator *op, wmEvent *event void CURVE_OT_select_linked_pick(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Linked"; - ot->idname= "CURVE_OT_select_linked_pick"; + ot->name = "Select Linked"; + ot->idname = "CURVE_OT_select_linked_pick"; /* api callbacks */ - ot->invoke= select_linked_pick_invoke; - ot->poll= ED_operator_editsurfcurve_region_view3d; + ot->invoke = select_linked_pick_invoke; + ot->poll = ED_operator_editsurfcurve_region_view3d; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_boolean(ot->srna, "deselect", 0, "Deselect", "Deselect linked control points rather than selecting them"); @@ -5010,15 +5010,15 @@ static int select_row_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_select_row(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Control Point Row"; - ot->idname= "CURVE_OT_select_row"; + ot->name = "Select Control Point Row"; + ot->idname = "CURVE_OT_select_row"; /* api callbacks */ - ot->exec= select_row_exec; - ot->poll= ED_operator_editsurf; + ot->exec = select_row_exec; + ot->poll = ED_operator_editsurf; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /***************** select next operator **********************/ @@ -5037,15 +5037,15 @@ static int select_next_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_select_next(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Next"; - ot->idname= "CURVE_OT_select_next"; + ot->name = "Select Next"; + ot->idname = "CURVE_OT_select_next"; /* api callbacks */ - ot->exec= select_next_exec; - ot->poll= ED_operator_editcurve; + ot->exec = select_next_exec; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /***************** select previous operator **********************/ @@ -5064,15 +5064,15 @@ static int select_previous_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_select_previous(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Previous"; - ot->idname= "CURVE_OT_select_previous"; + ot->name = "Select Previous"; + ot->idname = "CURVE_OT_select_previous"; /* api callbacks */ - ot->exec= select_previous_exec; - ot->poll= ED_operator_editcurve; + ot->exec = select_previous_exec; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /***************** select more operator **********************/ @@ -5151,15 +5151,15 @@ static int select_more_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_select_more(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select More"; - ot->idname= "CURVE_OT_select_more"; + ot->name = "Select More"; + ot->idname = "CURVE_OT_select_more"; /* api callbacks */ - ot->exec= select_more_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = select_more_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /******************** select less operator *****************/ @@ -5312,15 +5312,15 @@ static int select_less_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_select_less(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Less"; - ot->idname= "CURVE_OT_select_less"; + ot->name = "Select Less"; + ot->idname = "CURVE_OT_select_less"; /* api callbacks */ - ot->exec= select_less_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = select_less_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /********************** select random *********************/ @@ -5375,15 +5375,15 @@ static int select_random_exec(bContext *C, wmOperator *op) void CURVE_OT_select_random(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Random"; - ot->idname= "CURVE_OT_select_random"; + ot->name = "Select Random"; + ot->idname = "CURVE_OT_select_random"; /* api callbacks */ - ot->exec= select_random_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = select_random_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_float_percentage(ot->srna, "percent", 50.f, 0.0f, 100.0f, "Percent", "Percentage of elements to select randomly", 0.f, 100.0f); @@ -5508,16 +5508,16 @@ static int select_nth_exec(bContext *C, wmOperator *op) void CURVE_OT_select_nth(wmOperatorType *ot) { /* identifiers */ - ot->name= "Select Nth"; - ot->description= ""; - ot->idname= "CURVE_OT_select_nth"; + ot->name = "Select Nth"; + ot->description = ""; + ot->idname = "CURVE_OT_select_nth"; /* api callbacks */ - ot->exec= select_nth_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = select_nth_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; RNA_def_int(ot->srna, "nth", 2, 2, 100, "Nth Selection", "", 1, INT_MAX); } @@ -5537,16 +5537,16 @@ static int duplicate_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_duplicate(wmOperatorType *ot) { /* identifiers */ - ot->name= "Duplicate Curve"; + ot->name = "Duplicate Curve"; ot->description = "Duplicate selected control points and segments between them"; - ot->idname= "CURVE_OT_duplicate"; + ot->idname = "CURVE_OT_duplicate"; /* api callbacks */ - ot->exec= duplicate_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = duplicate_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /********************** delete operator *********************/ @@ -5912,17 +5912,17 @@ void CURVE_OT_delete(wmOperatorType *ot) {0, NULL, 0, NULL, NULL}}; /* identifiers */ - ot->name= "Delete"; + ot->name = "Delete"; ot->description = "Delete selected control points or segments"; - ot->idname= "CURVE_OT_delete"; + ot->idname = "CURVE_OT_delete"; /* api callbacks */ - ot->exec= delete_exec; - ot->invoke= delete_invoke; - ot->poll= ED_operator_editsurfcurve; + ot->exec = delete_exec; + ot->invoke = delete_invoke; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "type", type_items, 0, "Type", "Which elements to delete"); @@ -5956,29 +5956,29 @@ static int shade_smooth_exec(bContext *C, wmOperator *op) void CURVE_OT_shade_smooth(wmOperatorType *ot) { /* identifiers */ - ot->name= "Shade Smooth"; - ot->idname= "CURVE_OT_shade_smooth"; + ot->name = "Shade Smooth"; + ot->idname = "CURVE_OT_shade_smooth"; /* api callbacks */ - ot->exec= shade_smooth_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = shade_smooth_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } void CURVE_OT_shade_flat(wmOperatorType *ot) { /* identifiers */ - ot->name= "Shade Flat"; - ot->idname= "CURVE_OT_shade_flat"; + ot->name = "Shade Flat"; + ot->idname = "CURVE_OT_shade_flat"; /* api callbacks */ - ot->exec= shade_smooth_exec; - ot->poll= ED_operator_editsurfcurve; + ot->exec = shade_smooth_exec; + ot->poll = ED_operator_editsurfcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /************** join operator, to be used externally? ****************/ @@ -6554,17 +6554,17 @@ static int add_primitive_bezier_exec(bContext *C, wmOperator *op) void CURVE_OT_primitive_bezier_curve_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Bezier"; - ot->description= "Construct a Bezier Curve"; - ot->idname= "CURVE_OT_primitive_bezier_curve_add"; + ot->name = "Add Bezier"; + ot->description = "Construct a Bezier Curve"; + ot->idname = "CURVE_OT_primitive_bezier_curve_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_bezier_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_bezier_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6577,17 +6577,17 @@ static int add_primitive_bezier_circle_exec(bContext *C, wmOperator *op) void CURVE_OT_primitive_bezier_circle_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Bezier Circle"; - ot->description= "Construct a Bezier Circle"; - ot->idname= "CURVE_OT_primitive_bezier_circle_add"; + ot->name = "Add Bezier Circle"; + ot->description = "Construct a Bezier Circle"; + ot->idname = "CURVE_OT_primitive_bezier_circle_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_bezier_circle_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_bezier_circle_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6600,17 +6600,17 @@ static int add_primitive_nurbs_curve_exec(bContext *C, wmOperator *op) void CURVE_OT_primitive_nurbs_curve_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Nurbs Curve"; - ot->description= "Construct a Nurbs Curve"; - ot->idname= "CURVE_OT_primitive_nurbs_curve_add"; + ot->name = "Add Nurbs Curve"; + ot->description = "Construct a Nurbs Curve"; + ot->idname = "CURVE_OT_primitive_nurbs_curve_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_curve_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_curve_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6623,17 +6623,17 @@ static int add_primitive_nurbs_circle_exec(bContext *C, wmOperator *op) void CURVE_OT_primitive_nurbs_circle_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Nurbs Circle"; - ot->description= "Construct a Nurbs Circle"; - ot->idname= "CURVE_OT_primitive_nurbs_circle_add"; + ot->name = "Add Nurbs Circle"; + ot->description = "Construct a Nurbs Circle"; + ot->idname = "CURVE_OT_primitive_nurbs_circle_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_circle_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_circle_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6646,17 +6646,17 @@ static int add_primitive_curve_path_exec(bContext *C, wmOperator *op) void CURVE_OT_primitive_nurbs_path_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Path"; - ot->description= "Construct a Path"; - ot->idname= "CURVE_OT_primitive_nurbs_path_add"; + ot->name = "Add Path"; + ot->description = "Construct a Path"; + ot->idname = "CURVE_OT_primitive_nurbs_path_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_curve_path_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_curve_path_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6670,17 +6670,17 @@ static int add_primitive_nurbs_surface_curve_exec(bContext *C, wmOperator *op) void SURFACE_OT_primitive_nurbs_surface_curve_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Surface Curve"; - ot->description= "Construct a Nurbs surface Curve"; - ot->idname= "SURFACE_OT_primitive_nurbs_surface_curve_add"; + ot->name = "Add Surface Curve"; + ot->description = "Construct a Nurbs surface Curve"; + ot->idname = "SURFACE_OT_primitive_nurbs_surface_curve_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_surface_curve_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_surface_curve_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6693,17 +6693,17 @@ static int add_primitive_nurbs_surface_circle_exec(bContext *C, wmOperator *op) void SURFACE_OT_primitive_nurbs_surface_circle_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Surface Circle"; - ot->description= "Construct a Nurbs surface Circle"; - ot->idname= "SURFACE_OT_primitive_nurbs_surface_circle_add"; + ot->name = "Add Surface Circle"; + ot->description = "Construct a Nurbs surface Circle"; + ot->idname = "SURFACE_OT_primitive_nurbs_surface_circle_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_surface_circle_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_surface_circle_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6716,17 +6716,17 @@ static int add_primitive_nurbs_surface_surface_exec(bContext *C, wmOperator *op) void SURFACE_OT_primitive_nurbs_surface_surface_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Surface Patch"; - ot->description= "Construct a Nurbs surface Patch"; - ot->idname= "SURFACE_OT_primitive_nurbs_surface_surface_add"; + ot->name = "Add Surface Patch"; + ot->description = "Construct a Nurbs surface Patch"; + ot->idname = "SURFACE_OT_primitive_nurbs_surface_surface_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_surface_surface_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_surface_surface_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6739,17 +6739,17 @@ static int add_primitive_nurbs_surface_cylinder_exec(bContext *C, wmOperator *op void SURFACE_OT_primitive_nurbs_surface_cylinder_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Surface Cylinder"; - ot->description= "Construct a Nurbs surface Cylinder"; - ot->idname= "SURFACE_OT_primitive_nurbs_surface_cylinder_add"; + ot->name = "Add Surface Cylinder"; + ot->description = "Construct a Nurbs surface Cylinder"; + ot->idname = "SURFACE_OT_primitive_nurbs_surface_cylinder_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_surface_cylinder_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_surface_cylinder_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6762,17 +6762,17 @@ static int add_primitive_nurbs_surface_sphere_exec(bContext *C, wmOperator *op) void SURFACE_OT_primitive_nurbs_surface_sphere_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Surface Sphere"; - ot->description= "Construct a Nurbs surface Sphere"; - ot->idname= "SURFACE_OT_primitive_nurbs_surface_sphere_add"; + ot->name = "Add Surface Sphere"; + ot->description = "Construct a Nurbs surface Sphere"; + ot->idname = "SURFACE_OT_primitive_nurbs_surface_sphere_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_surface_sphere_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_surface_sphere_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6785,17 +6785,17 @@ static int add_primitive_nurbs_surface_torus_exec(bContext *C, wmOperator *op) void SURFACE_OT_primitive_nurbs_surface_torus_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Surface Torus"; - ot->description= "Construct a Nurbs surface Torus"; - ot->idname= "SURFACE_OT_primitive_nurbs_surface_torus_add"; + ot->name = "Add Surface Torus"; + ot->description = "Construct a Nurbs surface Torus"; + ot->idname = "SURFACE_OT_primitive_nurbs_surface_torus_add"; /* api callbacks */ - ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_surface_torus_exec; - ot->poll= ED_operator_scene_editable; + ot->invoke = ED_object_add_generic_invoke; + ot->exec = add_primitive_nurbs_surface_torus_exec; + ot->poll = ED_operator_scene_editable; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; ED_object_add_generic_props(ot, TRUE); } @@ -6840,15 +6840,15 @@ static int clear_tilt_exec(bContext *C, wmOperator *UNUSED(op)) void CURVE_OT_tilt_clear(wmOperatorType *ot) { /* identifiers */ - ot->name= "Clear Tilt"; - ot->idname= "CURVE_OT_tilt_clear"; + ot->name = "Clear Tilt"; + ot->idname = "CURVE_OT_tilt_clear"; /* api callbacks */ - ot->exec= clear_tilt_exec; - ot->poll= ED_operator_editcurve; + ot->exec = clear_tilt_exec; + ot->poll = ED_operator_editcurve; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /****************** undo for curves ****************/ diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 4170b7e3299..7f31b34b367 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -321,16 +321,16 @@ static int insert_lorem_exec(bContext *C, wmOperator *UNUSED(op)) void FONT_OT_insert_lorem(wmOperatorType *ot) { /* identifiers */ - ot->name= "Insert Lorem"; - ot->description= "Insert placeholder text"; - ot->idname= "FONT_OT_insert_lorem"; + ot->name = "Insert Lorem"; + ot->description = "Insert placeholder text"; + ot->idname = "FONT_OT_insert_lorem"; /* api callbacks */ - ot->exec= insert_lorem_exec; - ot->poll= ED_operator_editfont; + ot->exec = insert_lorem_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /******************* paste file operator ********************/ @@ -409,17 +409,17 @@ static int paste_file_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event) void FONT_OT_file_paste(wmOperatorType *ot) { /* identifiers */ - ot->name= "Paste File"; - ot->description= "Paste contents from file"; - ot->idname= "FONT_OT_file_paste"; + ot->name = "Paste File"; + ot->description = "Paste contents from file"; + ot->idname = "FONT_OT_file_paste"; /* api callbacks */ - ot->exec= paste_file_exec; - ot->invoke= paste_file_invoke; - ot->poll= ED_operator_editfont; + ot->exec = paste_file_exec; + ot->invoke = paste_file_invoke; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ WM_operator_properties_filesel(ot, FOLDERFILE|TEXTFILE, FILE_SPECIAL, FILE_OPENFILE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY); @@ -611,16 +611,16 @@ static int set_style_exec(bContext *C, wmOperator *op) void FONT_OT_style_set(wmOperatorType *ot) { /* identifiers */ - ot->name= "Set Style"; - ot->description= "Set font style"; - ot->idname= "FONT_OT_style_set"; + ot->name = "Set Style"; + ot->description = "Set font style"; + ot->idname = "FONT_OT_style_set"; /* api callbacks */ - ot->exec= set_style_exec; - ot->poll= ED_operator_editfont; + ot->exec = set_style_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "style", style_items, CU_CHINFO_BOLD, "Style", "Style to set selection to"); @@ -649,16 +649,16 @@ static int toggle_style_exec(bContext *C, wmOperator *op) void FONT_OT_style_toggle(wmOperatorType *ot) { /* identifiers */ - ot->name= "Toggle Style"; - ot->description= "Toggle font style"; - ot->idname= "FONT_OT_style_toggle"; + ot->name = "Toggle Style"; + ot->description = "Toggle font style"; + ot->idname = "FONT_OT_style_toggle"; /* api callbacks */ - ot->exec= toggle_style_exec; - ot->poll= ED_operator_editfont; + ot->exec = toggle_style_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "style", style_items, CU_CHINFO_BOLD, "Style", "Style to set selection to"); @@ -692,13 +692,13 @@ static int copy_text_exec(bContext *C, wmOperator *UNUSED(op)) void FONT_OT_text_copy(wmOperatorType *ot) { /* identifiers */ - ot->name= "Copy Text"; - ot->description= "Copy selected text to clipboard"; - ot->idname= "FONT_OT_text_copy"; + ot->name = "Copy Text"; + ot->description = "Copy selected text to clipboard"; + ot->idname = "FONT_OT_text_copy"; /* api callbacks */ - ot->exec= copy_text_exec; - ot->poll= ED_operator_editfont; + ot->exec = copy_text_exec; + ot->poll = ED_operator_editfont; } /******************* cut text operator ********************/ @@ -723,16 +723,16 @@ static int cut_text_exec(bContext *C, wmOperator *UNUSED(op)) void FONT_OT_text_cut(wmOperatorType *ot) { /* identifiers */ - ot->name= "Cut Text"; - ot->description= "Cut selected text to clipboard"; - ot->idname= "FONT_OT_text_cut"; + ot->name = "Cut Text"; + ot->description = "Cut selected text to clipboard"; + ot->idname = "FONT_OT_text_cut"; /* api callbacks */ - ot->exec= cut_text_exec; - ot->poll= ED_operator_editfont; + ot->exec = cut_text_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /******************* paste text operator ********************/ @@ -781,16 +781,16 @@ static int paste_text_exec(bContext *C, wmOperator *op) void FONT_OT_text_paste(wmOperatorType *ot) { /* identifiers */ - ot->name= "Paste Text"; - ot->description= "Paste text from clipboard"; - ot->idname= "FONT_OT_text_paste"; + ot->name = "Paste Text"; + ot->description = "Paste text from clipboard"; + ot->idname = "FONT_OT_text_paste"; /* api callbacks */ - ot->exec= paste_text_exec; - ot->poll= ED_operator_editfont; + ot->exec = paste_text_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /************************ move operator ************************/ @@ -918,16 +918,16 @@ static int move_exec(bContext *C, wmOperator *op) void FONT_OT_move(wmOperatorType *ot) { /* identifiers */ - ot->name= "Move Cursor"; - ot->description= "Move cursor to position type"; - ot->idname= "FONT_OT_move"; + ot->name = "Move Cursor"; + ot->description = "Move cursor to position type"; + ot->idname = "FONT_OT_move"; /* api callbacks */ - ot->exec= move_exec; - ot->poll= ED_operator_editfont; + ot->exec = move_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to"); @@ -945,16 +945,16 @@ static int move_select_exec(bContext *C, wmOperator *op) void FONT_OT_move_select(wmOperatorType *ot) { /* identifiers */ - ot->name= "Move Select"; - ot->description= "Make selection from current cursor position to new cursor position type"; - ot->idname= "FONT_OT_move_select"; + ot->name = "Move Select"; + ot->description = "Make selection from current cursor position to new cursor position type"; + ot->idname = "FONT_OT_move_select"; /* api callbacks */ - ot->exec= move_select_exec; - ot->poll= ED_operator_editfont; + ot->exec = move_select_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to, to make a selection"); @@ -987,16 +987,16 @@ static int change_spacing_exec(bContext *C, wmOperator *op) void FONT_OT_change_spacing(wmOperatorType *ot) { /* identifiers */ - ot->name= "Change Spacing"; - ot->description= "Change font spacing"; - ot->idname= "FONT_OT_change_spacing"; + ot->name = "Change Spacing"; + ot->description = "Change font spacing"; + ot->idname = "FONT_OT_change_spacing"; /* api callbacks */ - ot->exec= change_spacing_exec; - ot->poll= ED_operator_editfont; + ot->exec = change_spacing_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_int(ot->srna, "delta", 1, -20, 20, "Delta", "Amount to decrease or increase character spacing with", -20, 20); @@ -1032,16 +1032,16 @@ static int change_character_exec(bContext *C, wmOperator *op) void FONT_OT_change_character(wmOperatorType *ot) { /* identifiers */ - ot->name= "Change Character"; - ot->description= "Change font character code"; - ot->idname= "FONT_OT_change_character"; + ot->name = "Change Character"; + ot->description = "Change font character code"; + ot->idname = "FONT_OT_change_character"; /* api callbacks */ - ot->exec= change_character_exec; - ot->poll= ED_operator_editfont; + ot->exec = change_character_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_int(ot->srna, "delta", 1, -255, 255, "Delta", "Number to increase or decrease character code with", -255, 255); @@ -1075,16 +1075,16 @@ static int line_break_exec(bContext *C, wmOperator *op) void FONT_OT_line_break(wmOperatorType *ot) { /* identifiers */ - ot->name= "Line Break"; - ot->description= "Insert line break at cursor position"; - ot->idname= "FONT_OT_line_break"; + ot->name = "Line Break"; + ot->description = "Insert line break at cursor position"; + ot->idname = "FONT_OT_line_break"; /* api callbacks */ - ot->exec= line_break_exec; - ot->poll= ED_operator_editfont; + ot->exec = line_break_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_boolean(ot->srna, "ctrl", 0, "Ctrl", ""); // XXX what is this? @@ -1165,16 +1165,16 @@ static int delete_exec(bContext *C, wmOperator *op) void FONT_OT_delete(wmOperatorType *ot) { /* identifiers */ - ot->name= "Delete"; - ot->description= "Delete text by cursor position"; - ot->idname= "FONT_OT_delete"; + ot->name = "Delete"; + ot->description = "Delete text by cursor position"; + ot->idname = "FONT_OT_delete"; /* api callbacks */ - ot->exec= delete_exec; - ot->poll= ED_operator_editfont; + ot->exec = delete_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "type", delete_type_items, DEL_ALL, "Type", "Which part of the text to delete"); @@ -1326,17 +1326,17 @@ static int insert_text_invoke(bContext *C, wmOperator *op, wmEvent *evt) void FONT_OT_text_insert(wmOperatorType *ot) { /* identifiers */ - ot->name= "Insert Text"; - ot->description= "Insert text at cursor position"; - ot->idname= "FONT_OT_text_insert"; + ot->name = "Insert Text"; + ot->description = "Insert text at cursor position"; + ot->idname = "FONT_OT_text_insert"; /* api callbacks */ - ot->exec= insert_text_exec; - ot->invoke= insert_text_invoke; - ot->poll= ED_operator_editfont; + ot->exec = insert_text_exec; + ot->invoke = insert_text_invoke; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position"); @@ -1365,16 +1365,16 @@ static int textbox_add_exec(bContext *C, wmOperator *UNUSED(op)) void FONT_OT_textbox_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Textbox"; - ot->description= "Add a new text box"; - ot->idname= "FONT_OT_textbox_add"; + ot->name = "Add Textbox"; + ot->description = "Add a new text box"; + ot->idname = "FONT_OT_textbox_add"; /* api callbacks */ - ot->exec= textbox_add_exec; - ot->poll= ED_operator_object_active_editable_font; + ot->exec = textbox_add_exec; + ot->poll = ED_operator_object_active_editable_font; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } @@ -1408,16 +1408,16 @@ static int textbox_remove_exec(bContext *C, wmOperator *op) void FONT_OT_textbox_remove(wmOperatorType *ot) { /* identifiers */ - ot->name= "Remove Textbox"; - ot->description= "Remove the textbox"; - ot->idname= "FONT_OT_textbox_remove"; + ot->name = "Remove Textbox"; + ot->description = "Remove the textbox"; + ot->idname = "FONT_OT_textbox_remove"; /* api callbacks */ - ot->exec= textbox_remove_exec; - ot->poll= ED_operator_object_active_editable_font; + ot->exec = textbox_remove_exec; + ot->poll = ED_operator_object_active_editable_font; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; RNA_def_int(ot->srna, "index", 0, 0, INT_MAX, "Index", "The current text box", 0, INT_MAX); } @@ -1544,16 +1544,16 @@ static int set_case_exec(bContext *C, wmOperator *op) void FONT_OT_case_set(wmOperatorType *ot) { /* identifiers */ - ot->name= "Set Case"; - ot->description= "Set font case"; - ot->idname= "FONT_OT_case_set"; + ot->name = "Set Case"; + ot->description = "Set font case"; + ot->idname = "FONT_OT_case_set"; /* api callbacks */ - ot->exec= set_case_exec; - ot->poll= ED_operator_editfont; + ot->exec = set_case_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ RNA_def_enum(ot->srna, "case", case_items, CASE_LOWER, "Case", "Lower or upper case"); @@ -1587,16 +1587,16 @@ static int toggle_case_exec(bContext *C, wmOperator *UNUSED(op)) void FONT_OT_case_toggle(wmOperatorType *ot) { /* identifiers */ - ot->name= "Toggle Case"; - ot->description= "Toggle font case"; - ot->idname= "FONT_OT_case_toggle"; + ot->name = "Toggle Case"; + ot->description = "Toggle font case"; + ot->idname = "FONT_OT_case_toggle"; /* api callbacks */ - ot->exec= toggle_case_exec; - ot->poll= ED_operator_editfont; + ot->exec = toggle_case_exec; + ot->poll = ED_operator_editfont; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* **************** Open Font ************** */ @@ -1685,16 +1685,16 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)) void FONT_OT_open(wmOperatorType *ot) { /* identifiers */ - ot->name= "Open Font"; - ot->idname= "FONT_OT_open"; + ot->name = "Open Font"; + ot->idname = "FONT_OT_open"; /* api callbacks */ - ot->exec= font_open_exec; - ot->invoke= open_invoke; - ot->cancel= font_open_cancel; + ot->exec = font_open_exec; + ot->invoke = open_invoke; + ot->cancel = font_open_cancel; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ WM_operator_properties_filesel(ot, FOLDERFILE|FTFONTFILE, FILE_SPECIAL, FILE_OPENFILE, WM_FILESEL_FILEPATH|WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY); @@ -1728,12 +1728,12 @@ static int font_unlink_exec(bContext *C, wmOperator *op) void FONT_OT_unlink(wmOperatorType *ot) { /* identifiers */ - ot->name= "Unlink"; - ot->idname= "FONT_OT_unlink"; - ot->description= "Unlink active font data block"; + ot->name = "Unlink"; + ot->idname = "FONT_OT_unlink"; + ot->description = "Unlink active font data block"; /* api callbacks */ - ot->exec= font_unlink_exec; + ot->exec = font_unlink_exec; } |