25 #include "RNA_prototypes.h"
52 "Automatically determine sort method for files",
79 "Automatically determine display type for files"},
84 "Display files as short list"},
89 "Display files as a detailed list"},
90 {
FILE_IMGDISPLAY,
"THUMBNAIL", ICON_IMGDISPLAY,
"Thumbnails",
"Display files as thumbnails"},
110 ot->
srna,
"files", &RNA_OperatorFileListElement,
"Files",
"");
118 "Hide Operator Properties",
119 "Collapse the region displaying the operator settings");
130 "Check and warn on overwriting existing files");
140 "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");
221 prop =
RNA_def_enum(
ot->
srna,
"display_type", file_display_items, display,
"Display Type",
"");
234 if (prop_session_uuid) {
237 else if (prop_name) {
281 "Name of the data-block to use by the operator");
291 "Session UUID 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"},
329 {
SEL_SELECT,
"SELECT", 0,
"Select",
"Select all elements"},
330 {
SEL_DESELECT,
"DESELECT", 0,
"Deselect",
"Deselect all elements"},
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);
420 ot->
srna,
"deselect",
false,
"Deselect",
"Deselect rather than select items");
428 "Extend selection instead of deselecting everything first");
438 "Use Mouse Position",
439 "Allow the initial mouse position to be used");
455 {
SEL_OP_SET,
"SET", ICON_SELECT_SET,
"Set",
"Set a new selection"},
456 {
SEL_OP_ADD,
"ADD", ICON_SELECT_EXTEND,
"Extend",
"Extend existing selection"},
457 {
SEL_OP_SUB,
"SUB", ICON_SELECT_SUBTRACT,
"Subtract",
"Subtract existing selection"},
458 {
SEL_OP_XOR,
"XOR", ICON_SELECT_DIFFERENCE,
"Difference",
"Invert existing selection"},
459 {
SEL_OP_AND,
"AND", ICON_SELECT_INTERSECT,
"Intersect",
"Intersect existing selection"},
469 {
SEL_OP_SET,
"SET", ICON_SELECT_SET,
"Set",
"Set a new selection"},
470 {
SEL_OP_ADD,
"ADD", ICON_SELECT_EXTEND,
"Extend",
"Extend existing selection"},
471 {
SEL_OP_SUB,
"SUB", ICON_SELECT_SUBTRACT,
"Subtract",
"Subtract existing selection"},
493 "Select/Deselect element in this direction");
505 ot->
srna,
"wait_to_deselect_others",
false,
"Wait to Deselect Others",
"");
508 RNA_def_int(
ot->
srna,
"mouse_x", 0, INT_MIN, INT_MAX,
"Mouse X",
"", INT_MIN, INT_MAX);
509 RNA_def_int(
ot->
srna,
"mouse_y", 0, INT_MIN, INT_MAX,
"Mouse Y",
"", INT_MIN, INT_MAX);
532 prop =
RNA_def_int(
ot->
srna,
"xstart", 0, INT_MIN, INT_MAX,
"X Start",
"", INT_MIN, INT_MAX);
534 prop =
RNA_def_int(
ot->
srna,
"xend", 0, INT_MIN, INT_MAX,
"X End",
"", INT_MIN, INT_MAX);
536 prop =
RNA_def_int(
ot->
srna,
"ystart", 0, INT_MIN, INT_MAX,
"Y Start",
"", INT_MIN, INT_MAX);
538 prop =
RNA_def_int(
ot->
srna,
"yend", 0, INT_MIN, INT_MAX,
"Y End",
"", INT_MIN, INT_MAX);
550 "Mouse cursor style to use during the modal operator",
560 const int radius_default = 25;
562 prop =
RNA_def_int(
ot->
srna,
"x", 0, INT_MIN, INT_MAX,
"X",
"", INT_MIN, INT_MAX);
564 prop =
RNA_def_int(
ot->
srna,
"y", 0, INT_MIN, INT_MAX,
"Y",
"", INT_MIN, INT_MAX);
566 RNA_def_int(
ot->
srna,
"radius", radius_default, 1, INT_MAX,
"Radius",
"", 1, INT_MAX);
580 "Extend selection instead of deselecting everything first");
590 "Deselect On Nothing",
591 "Deselect all when nothing under the cursor");
596 "select_passthrough",
598 "Only Select Unselected",
599 "Ignore the select action when the element is already selected");
605 const int nth_default = nth_can_disable ? 0 : 1;
606 const int nth_min =
min_ii(nth_default, 1);
613 "Number of deselected elements in the repetitive sequence",
622 "Number of selected elements in the repetitive sequence",
631 "Offset from the starting point",
643 op_params->
nth = nth;
644 op_params->
skip = skip;
653 return ((op_params->
skip == 0) ||
654 ((op_params->
offset + depth) % (op_params->
skip + op_params->
nth) >= op_params->
skip));
struct ID * BKE_libblock_find_session_uuid(struct Main *bmain, short type, uint32_t session_uuid)
struct ID * BKE_libblock_find_name(struct Main *bmain, short type, const char *name) 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
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
void sort(btMatrix3x3 &U, btVector3 &sigma, btMatrix3x3 &V, int t)
Helper function of 3X3 SVD for sorting singular values.
DO_INLINE void filter(lfVector *V, fmatrix3x3 *S)
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
void RNA_property_int_set(PointerRNA *ptr, PropertyRNA *prop, int value)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop)
int RNA_int_get(PointerRNA *ptr, const char *name)
void RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop, char *value)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
PropertyRNA * RNA_def_string_file_name(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_string_file_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, 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)
PropertyRNA * RNA_def_float_factor(StructOrFunctionRNA *cont_, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
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_dir_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
const EnumPropertyItem DummyRNA_NULL_items[]
const EnumPropertyItem rna_enum_fileselect_params_sort_items[]
unsigned int session_uuid
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(struct wmOperator *op, rcti *rect)
static const EnumPropertyItem * wm_operator_properties_filesel_sort_items_itemf(struct bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
int WM_operator_properties_select_random_seed_increment_get(wmOperator *op)
void WM_operator_properties_gesture_box(wmOperatorType *ot)
bool WM_operator_properties_checker_interval_test(const struct CheckerIntervalParams *op_params, int depth)
void WM_operator_properties_confirm_or_exec(wmOperatorType *ot)
ID * WM_operator_properties_id_lookup_from_name_or_session_uuid(Main *bmain, PointerRNA *ptr, const ID_Type type)
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_generic_select(wmOperatorType *ot)
void WM_operator_properties_gesture_straightline(wmOperatorType *ot, int cursor)
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_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_border_to_rctf(struct wmOperator *op, rctf *rect)
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_checker_interval_from_op(struct wmOperator *op, struct CheckerIntervalParams *op_params)
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)
void WM_operator_properties_select_action_simple(wmOperatorType *ot, int default_action, bool hide_gui)