Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_select.c
| Show First 20 Lines • Show All 984 Lines • ▼ Show 20 Lines | void GPENCIL_OT_select_circle(wmOperatorType *ot) | ||||
| /* callbacks */ | /* callbacks */ | ||||
| ot->invoke = WM_gesture_circle_invoke; | ot->invoke = WM_gesture_circle_invoke; | ||||
| ot->modal = WM_gesture_circle_modal; | ot->modal = WM_gesture_circle_modal; | ||||
| ot->exec = gpencil_circle_select_exec; | ot->exec = gpencil_circle_select_exec; | ||||
| ot->poll = gpencil_select_poll; | ot->poll = gpencil_select_poll; | ||||
| ot->cancel = WM_gesture_circle_cancel; | ot->cancel = WM_gesture_circle_cancel; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| WM_operator_properties_gesture_circle(ot); | WM_operator_properties_gesture_circle(ot); | ||||
| WM_operator_properties_select_operation_simple(ot); | WM_operator_properties_select_operation_simple(ot); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| ▲ Show 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | void GPENCIL_OT_select_box(wmOperatorType *ot) | ||||
| ot->invoke = WM_gesture_box_invoke; | ot->invoke = WM_gesture_box_invoke; | ||||
| ot->exec = gpencil_box_select_exec; | ot->exec = gpencil_box_select_exec; | ||||
| ot->modal = WM_gesture_box_modal; | ot->modal = WM_gesture_box_modal; | ||||
| ot->cancel = WM_gesture_box_cancel; | ot->cancel = WM_gesture_box_cancel; | ||||
| ot->poll = gpencil_select_poll; | ot->poll = gpencil_select_poll; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| WM_operator_properties_gesture_box(ot); | WM_operator_properties_gesture_box(ot); | ||||
| WM_operator_properties_select_operation(ot); | WM_operator_properties_select_operation(ot); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| ▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | void GPENCIL_OT_select_lasso(wmOperatorType *ot) | ||||
| ot->invoke = WM_gesture_lasso_invoke; | ot->invoke = WM_gesture_lasso_invoke; | ||||
| ot->modal = WM_gesture_lasso_modal; | ot->modal = WM_gesture_lasso_modal; | ||||
| ot->exec = gpencil_lasso_select_exec; | ot->exec = gpencil_lasso_select_exec; | ||||
| ot->poll = gpencil_select_poll; | ot->poll = gpencil_select_poll; | ||||
| ot->cancel = WM_gesture_lasso_cancel; | ot->cancel = WM_gesture_lasso_cancel; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA; | ot->flag = OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| WM_operator_properties_select_operation(ot); | WM_operator_properties_select_operation(ot); | ||||
| WM_operator_properties_gesture_lasso(ot); | WM_operator_properties_gesture_lasso(ot); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| ▲ Show 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | void GPENCIL_OT_select(wmOperatorType *ot) | ||||
| ot->idname = "GPENCIL_OT_select"; | ot->idname = "GPENCIL_OT_select"; | ||||
| /* callbacks */ | /* callbacks */ | ||||
| ot->invoke = gpencil_select_invoke; | ot->invoke = gpencil_select_invoke; | ||||
| ot->exec = gpencil_select_exec; | ot->exec = gpencil_select_exec; | ||||
| ot->poll = gpencil_select_poll; | ot->poll = gpencil_select_poll; | ||||
| /* flag */ | /* flag */ | ||||
| ot->flag = OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA; | ot->flag = OPTYPE_UNDO; | ||||
| /* properties */ | /* properties */ | ||||
| WM_operator_properties_mouse_select(ot); | WM_operator_properties_mouse_select(ot); | ||||
| prop = RNA_def_boolean(ot->srna, | prop = RNA_def_boolean(ot->srna, | ||||
| "entire_strokes", | "entire_strokes", | ||||
| false, | false, | ||||
| "Entire Strokes", | "Entire Strokes", | ||||
| Show All 17 Lines | |||||