26#include "RNA_prototypes.hh"
37 prop =
RNA_def_boolean(
ot->srna,
"confirm",
true,
"Confirm",
"Prompt for confirmation");
53 "Automatically determine sort method for files",
80 "Automatically determine display type for files"},
85 "Display files as short list"},
90 "Display files as a detailed list"},
91 {
FILE_IMGDISPLAY,
"THUMBNAIL", ICON_IMGDISPLAY,
"Thumbnails",
"Display files as thumbnails"},
92 {0,
nullptr, 0,
nullptr,
nullptr},
97 ot->srna,
"filepath",
nullptr,
FILE_MAX,
"File Path",
"Path to file");
103 ot->srna,
"directory",
nullptr,
FILE_MAX,
"Directory",
"Directory of the file");
109 ot->srna,
"filename",
nullptr,
FILE_MAX,
"File Name",
"Name of the file");
115 ot->srna,
"files", &RNA_OperatorFileListElement,
"Files",
"");
123 "Hide Operator Properties",
124 "Collapse the region displaying the operator settings");
134 "Check and warn on overwriting existing files");
143 "Filter .blend files",
182 "Filter OpenVDB volume files",
201 "The setting for the file browser mode to load a .blend file, a library or a special file",
211 "Select the file relative to the blend file");
215 prop =
RNA_def_boolean(
ot->srna,
"show_multiview",
false,
"Enable Multi-View",
"");
221 prop =
RNA_def_enum(
ot->srna,
"display_type", file_display_items, display,
"Display Type",
"");
235 if (prop_session_uid) {
238 else if (prop_name) {
281 "Name of the data-block to use by the operator");
291 "Session UID of the data-block to use by the operator",
304 ot->srna,
"action", select_actions, default_action,
"Action",
"Selection action to execute");
314 {
SEL_TOGGLE,
"TOGGLE", 0,
"Toggle",
"Toggle selection for all elements"},
315 {
SEL_SELECT,
"SELECT", 0,
"Select",
"Select all elements"},
316 {
SEL_DESELECT,
"DESELECT", 0,
"Deselect",
"Deselect all elements"},
317 {
SEL_INVERT,
"INVERT", 0,
"Invert",
"Invert selection of all elements"},
318 {0,
nullptr, 0,
nullptr,
nullptr},
329 {
SEL_SELECT,
"SELECT", 0,
"Select",
"Select all elements"},
330 {
SEL_DESELECT,
"DESELECT", 0,
"Deselect",
"Deselect all elements"},
331 {0,
nullptr, 0,
nullptr,
nullptr},
345 "Portion of items to select randomly",
354 "Seed for the random number generator",
384 prop =
RNA_def_int(
ot->srna,
"xmin", 0, INT_MIN, INT_MAX,
"X Min",
"", INT_MIN, INT_MAX);
386 prop =
RNA_def_int(
ot->srna,
"xmax", 0, INT_MIN, INT_MAX,
"X Max",
"", INT_MIN, INT_MAX);
388 prop =
RNA_def_int(
ot->srna,
"ymin", 0, INT_MIN, INT_MAX,
"Y Min",
"", INT_MIN, INT_MAX);
390 prop =
RNA_def_int(
ot->srna,
"ymax", 0, INT_MIN, INT_MAX,
"Y Max",
"", INT_MIN, INT_MAX);
427 ot->srna,
"deselect",
false,
"Deselect",
"Deselect rather than select items");
435 "Extend selection instead of deselecting everything first");
445 "Use Mouse Position",
446 "Allow the initial mouse position to be used");
462 {
SEL_OP_SET,
"SET", ICON_SELECT_SET,
"Set",
"Set a new selection"},
463 {
SEL_OP_ADD,
"ADD", ICON_SELECT_EXTEND,
"Extend",
"Extend existing selection"},
464 {
SEL_OP_SUB,
"SUB", ICON_SELECT_SUBTRACT,
"Subtract",
"Subtract existing selection"},
465 {
SEL_OP_XOR,
"XOR", ICON_SELECT_DIFFERENCE,
"Difference",
"Invert existing selection"},
466 {
SEL_OP_AND,
"AND", ICON_SELECT_INTERSECT,
"Intersect",
"Intersect existing selection"},
467 {0,
nullptr, 0,
nullptr,
nullptr},
476 {
SEL_OP_SET,
"SET", ICON_SELECT_SET,
"Set",
"Set a new selection"},
477 {
SEL_OP_ADD,
"ADD", ICON_SELECT_EXTEND,
"Extend",
"Extend existing selection"},
478 {
SEL_OP_SUB,
"SUB", ICON_SELECT_SUBTRACT,
"Subtract",
"Subtract existing selection"},
479 {0,
nullptr, 0,
nullptr,
nullptr},
492 {0,
nullptr, 0,
nullptr,
nullptr},
500 "Select/Deselect element in this direction");
512 ot->srna,
"wait_to_deselect_others",
false,
"Wait to Deselect Others",
"");
518 "use_select_on_click",
521 "Instead of selecting on mouse press, wait to see if there's drag event. "
522 "Otherwise select on mouse release");
525 RNA_def_int(
ot->srna,
"mouse_x", 0, INT_MIN, INT_MAX,
"Mouse X",
"", INT_MIN, INT_MAX);
526 RNA_def_int(
ot->srna,
"mouse_y", 0, INT_MIN, INT_MAX,
"Mouse Y",
"", INT_MIN, INT_MAX);
547 "Selection lags behind mouse and follows a smoother path");
549 "smooth_stroke_factor",
553 "Smooth Stroke Factor",
554 "Higher values gives a smoother stroke",
558 "smooth_stroke_radius",
562 "Smooth Stroke Radius",
563 "Minimum distance from last point before selection continues",
580 prop =
RNA_def_int(
ot->srna,
"xstart", 0, INT_MIN, INT_MAX,
"X Start",
"", INT_MIN, INT_MAX);
582 prop =
RNA_def_int(
ot->srna,
"xend", 0, INT_MIN, INT_MAX,
"X End",
"", INT_MIN, INT_MAX);
584 prop =
RNA_def_int(
ot->srna,
"ystart", 0, INT_MIN, INT_MAX,
"Y Start",
"", INT_MIN, INT_MAX);
586 prop =
RNA_def_int(
ot->srna,
"yend", 0, INT_MIN, INT_MAX,
"Y End",
"", INT_MIN, INT_MAX);
598 "Mouse cursor style to use during the modal operator",
608 const int radius_default = 25;
610 prop =
RNA_def_int(
ot->srna,
"x", 0, INT_MIN, INT_MAX,
"X",
"", INT_MIN, INT_MAX);
612 prop =
RNA_def_int(
ot->srna,
"y", 0, INT_MIN, INT_MAX,
"Y",
"", INT_MIN, INT_MAX);
614 RNA_def_int(
ot->srna,
"radius", radius_default, 1, INT_MAX,
"Radius",
"", 1, INT_MAX);
628 "Extend selection instead of deselecting everything first");
630 prop =
RNA_def_boolean(
ot->srna,
"deselect",
false,
"Deselect",
"Remove from selection");
632 prop =
RNA_def_boolean(
ot->srna,
"toggle",
false,
"Toggle Selection",
"Toggle the selection");
638 "Deselect On Nothing",
639 "Deselect all when nothing under the cursor");
644 "select_passthrough",
646 "Only Select Unselected",
647 "Ignore the select action when the element is already selected");
653 const int nth_default = nth_can_disable ? 0 : 1;
654 const int nth_min =
min_ii(nth_default, 1);
661 "Number of deselected elements in the repetitive sequence",
670 "Number of selected elements in the repetitive sequence",
679 "Offset from the starting point",
691 op_params->
nth = nth;
692 op_params->
skip = skip;
701 return ((op_params->
skip == 0) ||
702 ((op_params->
offset + depth) % (op_params->
skip + op_params->
nth) >= op_params->
skip));
ID * BKE_libblock_find_session_uid(Main *bmain, short type, uint32_t session_uid)
ID * BKE_libblock_find_name(Main *bmain, short type, const char *name, const std::optional< Library * > lib=std::nullopt) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
#define BLI_assert_unreachable()
MINLINE int min_ii(int a, int b)
MINLINE int mod_i(int i, int n)
void BLI_rctf_rcti_copy(struct rctf *dst, const struct rcti *src)
Enumerations for DNA_ID.h.
@ FILE_TYPE_BLENDER_BACKUP
static DBVT_INLINE btDbvtNode * sort(btDbvtNode *n, btDbvtNode *&r)
void RNA_property_int_set(PointerRNA *ptr, PropertyRNA *prop, int value)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop)
int RNA_int_get(PointerRNA *ptr, const char *name)
std::string RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
PropertyRNA * RNA_def_float_factor(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_string_file_name(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_collection_runtime(StructOrFunctionRNA *cont_, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
PropertyRNA * RNA_def_string_file_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
PropertyRNA * RNA_def_string_dir_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
const EnumPropertyItem rna_enum_fileselect_params_sort_items[]
static void wm_operator_properties_select_action_ex(wmOperatorType *ot, int default_action, const EnumPropertyItem *select_actions, bool hide_gui)
void WM_operator_properties_border_to_rcti(wmOperator *op, rcti *r_rect)
void WM_operator_properties_checker_interval_from_op(wmOperator *op, CheckerIntervalParams *op_params)
int WM_operator_properties_select_random_seed_increment_get(wmOperator *op)
void WM_operator_properties_gesture_box(wmOperatorType *ot)
void WM_operator_properties_confirm_or_exec(wmOperatorType *ot)
bool WM_operator_properties_id_lookup_is_set(PointerRNA *ptr)
void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
void WM_operator_properties_select_operation(wmOperatorType *ot)
void WM_operator_properties_select_action(wmOperatorType *ot, int default_action, bool hide_gui)
void WM_operator_properties_border_to_rctf(wmOperator *op, rctf *r_rect)
void WM_operator_properties_generic_select(wmOperatorType *ot)
void WM_operator_properties_gesture_straightline(wmOperatorType *ot, int cursor)
ID * WM_operator_properties_id_lookup_from_name_or_session_uid(Main *bmain, PointerRNA *ptr, const ID_Type type)
blender::Bounds< blender::int2 > WM_operator_properties_border_to_bounds(wmOperator *op)
void WM_operator_properties_border(wmOperatorType *ot)
void WM_operator_properties_gesture_lasso(wmOperatorType *ot)
void WM_operator_properties_select_walk_direction(wmOperatorType *ot)
void WM_operator_properties_select_random(wmOperatorType *ot)
void WM_operator_properties_filesel(wmOperatorType *ot, const int filter, const short type, const eFileSel_Action action, const eFileSel_Flag flag, const short display, const short sort)
void WM_operator_properties_gesture_polyline(wmOperatorType *ot)
void WM_operator_properties_gesture_box_select(wmOperatorType *ot)
void WM_operator_properties_gesture_circle(wmOperatorType *ot)
void WM_operator_properties_select_all(wmOperatorType *ot)
void WM_operator_properties_use_cursor_init(wmOperatorType *ot)
void WM_operator_properties_gesture_box_ex(wmOperatorType *ot, bool deselect, bool extend)
void WM_operator_properties_mouse_select(wmOperatorType *ot)
void WM_operator_properties_gesture_box_zoom(wmOperatorType *ot)
void WM_operator_properties_id_lookup(wmOperatorType *ot, const bool add_name_prop)
void WM_operator_properties_id_lookup_set_from_id(PointerRNA *ptr, const ID *id)
void WM_operator_properties_checker_interval(wmOperatorType *ot, bool nth_can_disable)
bool WM_operator_properties_checker_interval_test(const CheckerIntervalParams *op_params, int depth)
static const EnumPropertyItem * wm_operator_properties_filesel_sort_items_itemf(bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
void WM_operator_properties_select_action_simple(wmOperatorType *ot, int default_action, bool hide_gui)