22#include "RNA_prototypes.hh"
40 if (directory_prop && files_prop) {
42 if (files.size() == 1) {
46 title = fmt::format(fmt::runtime(
TIP_(
"Import {} files")), files.size());
84 const bool is_relative_path = relative_path_prop ?
96 *ptr,
"files", RNA_OperatorFileListElement);
128 for (
const auto &path : paths) {
#define BLI_path_join(...)
#define RNA_PROP_BEGIN(sptr, itemptr, prop)
#define BLI_assert_msg(a, msg)
void append_non_duplicates(const T &value)
bool poll_file_object_drop(const bContext *C, bke::FileHandlerType *)
Vector< std::string > paths_from_operator_properties(PointerRNA *ptr)
void paths_to_operator_properties(PointerRNA *ptr, const Span< std::string > paths)
wmOperatorStatus filesel_drop_import_invoke(bContext *C, wmOperator *op, const wmEvent *)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
char * STRNCPY(char(&dst)[N], const char *src)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
std::string WM_operatortype_name(wmOperatorType *ot, PointerRNA *properties)
SpaceOutliner * CTX_wm_space_outliner(const bContext *C)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
const char * BKE_main_blendfile_path_from_global()
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
void void BLI_path_split_dir_part(const char *filepath, char *dir, size_t dir_maxncpy) ATTR_NONNULL(1
void RNA_collection_clear(PointerRNA *ptr, const char *name)
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
int BLI_path_normalize(char *path) ATTR_NONNULL(1)
wmOperatorStatus WM_operator_props_dialog_popup(bContext *C, wmOperator *op, int width, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message, const bool show_icon)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
std::string RNA_string_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_struct_find_collection_property_check(PointerRNA &props, const char *name, const StructRNA *struct_type_check)
void RNA_collection_add(PointerRNA *ptr, const char *name, PointerRNA *r_value)
ARegion * CTX_wm_region(const bContext *C)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
View3D * CTX_wm_view3d(const bContext *C)
void WM_event_add_fileselect(bContext *C, wmOperator *op)
eSpaceOutliner_Mode outlinevis
struct wmOperatorType * type