Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_operator_props.c
| Show First 20 Lines • Show All 377 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void WM_operator_properties_select_operation(wmOperatorType *ot) | void WM_operator_properties_select_operation(wmOperatorType *ot) | ||||
| { | { | ||||
| static const EnumPropertyItem select_mode_items[] = { | static const EnumPropertyItem select_mode_items[] = { | ||||
| {SEL_OP_SET, "SET", ICON_SELECT_SET, "Set", "Set a new selection"}, | {SEL_OP_SET, "SET", ICON_SELECT_SET, "Set", "Set a new selection"}, | ||||
| {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Extend", "Extend existing selection"}, | {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Extend", "Extend existing selection"}, | ||||
| {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", "Subtract existing selection"}, | {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", "Subtract existing selection"}, | ||||
| {SEL_OP_XOR, "XOR", ICON_SELECT_DIFFERENCE, "Difference", "Inverts existing selection"}, | {SEL_OP_XOR, "XOR", ICON_SELECT_DIFFERENCE, "Difference", "Invert existing selection"}, | ||||
| {SEL_OP_AND, "AND", ICON_SELECT_INTERSECT, "Intersect", "Intersect existing selection"}, | {SEL_OP_AND, "AND", ICON_SELECT_INTERSECT, "Intersect", "Intersect existing selection"}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", ""); | PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", ""); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| } | } | ||||
| void WM_operator_properties_select_operation_simple(wmOperatorType *ot) | void WM_operator_properties_select_operation_simple(wmOperatorType *ot) | ||||
| ▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines | |||||