18#include "RNA_prototypes.hh"
36 if (directory_prop && files_prop) {
38 if (files.size() == 1) {
42 title = fmt::format(fmt::runtime(
TIP_(
"Import {} files")), files.size());
80 const bool is_relative_path = relative_path_prop ?
92 *
ptr,
"files", &RNA_OperatorFileListElement);
124 for (
const auto &path : paths) {
SpaceOutliner * CTX_wm_space_outliner(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
View3D * CTX_wm_view3d(const bContext *C)
const char * BKE_main_blendfile_path_from_global()
#define BLI_assert_msg(a, msg)
int BLI_path_normalize(char *path) ATTR_NONNULL(1)
#define BLI_path_join(...)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
void void BLI_path_split_dir_part(const char *filepath, char *dir, size_t dir_maxncpy) ATTR_NONNULL(1
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
#define STRNCPY_UTF8(dst, src)
#define RNA_PROP_BEGIN(sptr, itemptr, prop)
void append_non_duplicates(const T &value)
bool poll_file_object_drop(const bContext *C, blender::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 *)
PropertyRNA * RNA_struct_find_collection_property_check(PointerRNA &props, const char *name, const StructRNA *struct_type_check)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
void RNA_collection_clear(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
void RNA_collection_add(PointerRNA *ptr, const char *name, PointerRNA *r_value)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
struct wmOperatorType * type
void WM_event_add_fileselect(bContext *C, wmOperator *op)
std::string WM_operatortype_name(wmOperatorType *ot, PointerRNA *properties)
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)