26#include "RNA_prototypes.hh"
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",
185 "Filter OpenVDB volume files",
204 "The setting for the file browser mode to load a .blend file, a library or a special file",
214 "Select the file relative to the blend file");
224 prop =
RNA_def_enum(
ot->
srna,
"display_type", file_display_items, display,
"Display Type",
"");
238 if (prop_session_uid) {
241 else if (prop_name) {
284 "Name of the data-block to use by the operator");
294 "Session UID of the data-block to use by the operator",
307 ot->
srna,
"action", select_actions, default_action,
"Action",
"Selection action to execute");
317 {
SEL_TOGGLE,
"TOGGLE", 0,
"Toggle",
"Toggle selection for all elements"},
318 {
SEL_SELECT,
"SELECT", 0,
"Select",
"Select all elements"},
319 {
SEL_DESELECT,
"DESELECT", 0,
"Deselect",
"Deselect all elements"},
320 {
SEL_INVERT,
"INVERT", 0,
"Invert",
"Invert selection of all elements"},
321 {0,
nullptr, 0,
nullptr,
nullptr},
332 {
SEL_SELECT,
"SELECT", 0,
"Select",
"Select all elements"},
333 {
SEL_DESELECT,
"DESELECT", 0,
"Deselect",
"Deselect all elements"},
334 {0,
nullptr, 0,
nullptr,
nullptr},
348 "Portion of items to select randomly",
357 "Seed for the random number generator",
387 prop =
RNA_def_int(
ot->
srna,
"xmin", 0, INT_MIN, INT_MAX,
"X Min",
"", INT_MIN, INT_MAX);
389 prop =
RNA_def_int(
ot->
srna,
"xmax", 0, INT_MIN, INT_MAX,
"X Max",
"", INT_MIN, INT_MAX);
391 prop =
RNA_def_int(
ot->
srna,
"ymin", 0, INT_MIN, INT_MAX,
"Y Min",
"", INT_MIN, INT_MAX);
393 prop =
RNA_def_int(
ot->
srna,
"ymax", 0, INT_MIN, INT_MAX,
"Y Max",
"", INT_MIN, INT_MAX);
423 ot->
srna,
"deselect",
false,
"Deselect",
"Deselect rather than select items");
431 "Extend selection instead of deselecting everything first");
441 "Use Mouse Position",
442 "Allow the initial mouse position to be used");
458 {
SEL_OP_SET,
"SET", ICON_SELECT_SET,
"Set",
"Set a new selection"},
459 {
SEL_OP_ADD,
"ADD", ICON_SELECT_EXTEND,
"Extend",
"Extend existing selection"},
460 {
SEL_OP_SUB,
"SUB", ICON_SELECT_SUBTRACT,
"Subtract",
"Subtract existing selection"},
461 {
SEL_OP_XOR,
"XOR", ICON_SELECT_DIFFERENCE,
"Difference",
"Invert existing selection"},
462 {
SEL_OP_AND,
"AND", ICON_SELECT_INTERSECT,
"Intersect",
"Intersect existing selection"},
463 {0,
nullptr, 0,
nullptr,
nullptr},
472 {
SEL_OP_SET,
"SET", ICON_SELECT_SET,
"Set",
"Set a new selection"},
473 {
SEL_OP_ADD,
"ADD", ICON_SELECT_EXTEND,
"Extend",
"Extend existing selection"},
474 {
SEL_OP_SUB,
"SUB", ICON_SELECT_SUBTRACT,
"Subtract",
"Subtract existing selection"},
475 {0,
nullptr, 0,
nullptr,
nullptr},
488 {0,
nullptr, 0,
nullptr,
nullptr},
496 "Select/Deselect element in this direction");
508 ot->
srna,
"wait_to_deselect_others",
false,
"Wait to Deselect Others",
"");
511 RNA_def_int(
ot->
srna,
"mouse_x", 0, INT_MIN, INT_MAX,
"Mouse X",
"", INT_MIN, INT_MAX);
512 RNA_def_int(
ot->
srna,
"mouse_y", 0, INT_MIN, INT_MAX,
"Mouse Y",
"", INT_MIN, INT_MAX);
533 "Selection lags behind mouse and follows a smoother path");
535 "smooth_stroke_factor",
539 "Smooth Stroke Factor",
540 "Higher values gives a smoother stroke",
544 "smooth_stroke_radius",
548 "Smooth Stroke Radius",
549 "Minimum distance from last point before selection continues",
566 prop =
RNA_def_int(
ot->
srna,
"xstart", 0, INT_MIN, INT_MAX,
"X Start",
"", INT_MIN, INT_MAX);
568 prop =
RNA_def_int(
ot->
srna,
"xend", 0, INT_MIN, INT_MAX,
"X End",
"", INT_MIN, INT_MAX);
570 prop =
RNA_def_int(
ot->
srna,
"ystart", 0, INT_MIN, INT_MAX,
"Y Start",
"", INT_MIN, INT_MAX);
572 prop =
RNA_def_int(
ot->
srna,
"yend", 0, INT_MIN, INT_MAX,
"Y End",
"", INT_MIN, INT_MAX);
584 "Mouse cursor style to use during the modal operator",
594 const int radius_default = 25;
596 prop =
RNA_def_int(
ot->
srna,
"x", 0, INT_MIN, INT_MAX,
"X",
"", INT_MIN, INT_MAX);
598 prop =
RNA_def_int(
ot->
srna,
"y", 0, INT_MIN, INT_MAX,
"Y",
"", INT_MIN, INT_MAX);
600 RNA_def_int(
ot->
srna,
"radius", radius_default, 1, INT_MAX,
"Radius",
"", 1, INT_MAX);
614 "Extend selection instead of deselecting everything first");
624 "Deselect On Nothing",
625 "Deselect all when nothing under the cursor");
630 "select_passthrough",
632 "Only Select Unselected",
633 "Ignore the select action when the element is already selected");
639 const int nth_default = nth_can_disable ? 0 : 1;
640 const int nth_min =
min_ii(nth_default, 1);
647 "Number of deselected elements in the repetitive sequence",
656 "Number of selected elements in the repetitive sequence",
665 "Offset from the starting point",
677 op_params->
nth = nth;
678 op_params->
skip = skip;
687 return ((op_params->
skip == 0) ||
688 ((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
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)
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)