17#include "RNA_prototypes.hh"
35 if (directory_prop && files_prop) {
37 if (files.size() == 1) {
41 title = fmt::format(
TIP_(
"Import {} files"), files.size());
79 const bool is_relative_path = relative_path_prop ?
91 *
ptr,
"files", &RNA_OperatorFileListElement);
99 paths.append_non_duplicates(path);
110 paths.append_non_duplicates(filepath);
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_path_join(...)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
#define RNA_PROP_BEGIN(sptr, itemptr, prop)
bool poll_file_object_drop(const bContext *C, blender::bke::FileHandlerType *)
Vector< std::string > paths_from_operator_properties(PointerRNA *ptr)
int 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)
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_string_get(PointerRNA *ptr, const char *name, char *value)
struct wmOperatorType * type
void WM_event_add_fileselect(bContext *C, wmOperator *op)
std::string WM_operatortype_name(wmOperatorType *ot, PointerRNA *properties)
int 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)