|
Blender V4.3
|
#include <BKE_file_handler.hh>
Public Member Functions | |
| blender::Vector< int64_t > | filter_supported_paths (const blender::Span< std::string > paths) const |
| std::string | get_default_filename (const StringRefNull name) |
Public Attributes | |
| char | idname [OP_MAX_TYPENAME] |
| char | label [OP_MAX_TYPENAME] |
| char | import_operator [OP_MAX_TYPENAME] |
| char | export_operator [OP_MAX_TYPENAME] |
| char | file_extensions_str [FH_MAX_FILE_EXTENSIONS_STR] |
| bool(* | poll_drop )(const bContext *C, FileHandlerType *file_handle_type) |
| Vector< std::string > | file_extensions |
| ExtensionRNA | rna_ext |
Definition at line 19 of file BKE_file_handler.hh.
| blender::Vector< int64_t > blender::bke::FileHandlerType::filter_supported_paths | ( | const blender::Span< std::string > | paths | ) | const |
Return a vector of indices in #paths of file paths supported by the file handler.
Definition at line 105 of file file_handler.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), BLI_path_extension(), BLI_strcaseeq(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), file_extensions, and indices.
Referenced by file_handler_import_operator_create_ptr().
| std::string blender::bke::FileHandlerType::get_default_filename | ( | const StringRefNull | name | ) |
Generate a default file name for use with this file handler.
Definition at line 126 of file file_handler.cc.
References BLI_path_extension_ensure(), BLI_path_make_safe_filename(), file_extensions, FILE_MAXFILE, blender::Vector< T, InlineBufferCapacity, Allocator >::first(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), and STRNCPY.
Referenced by blender::ed::object::collection_exporter_export(), and uiTemplateCollectionExporters().
| char blender::bke::FileHandlerType::export_operator[OP_MAX_TYPENAME] |
Export operator name.
Definition at line 27 of file BKE_file_handler.hh.
Referenced by blender::ed::object::collection_exporter_add_exec(), blender::ed::object::collection_exporter_export(), and uiTemplateCollectionExporters().
| Vector<std::string> blender::bke::FileHandlerType::file_extensions |
List of file extensions supported by the file handler.
Definition at line 36 of file BKE_file_handler.hh.
Referenced by blender::bke::file_handlers_poll_file_drop(), filter_supported_paths(), and get_default_filename().
| char blender::bke::FileHandlerType::file_extensions_str[FH_MAX_FILE_EXTENSIONS_STR] |
Formatted string of file extensions supported by the file handler, each extension should start with a . and be separated by ;. For Example: ".blend;.ble".
Definition at line 30 of file BKE_file_handler.hh.
| char blender::bke::FileHandlerType::idname[OP_MAX_TYPENAME] |
Unique name.
Definition at line 21 of file BKE_file_handler.hh.
Referenced by blender::ed::object::collection_exporter_add_exec().
| char blender::bke::FileHandlerType::import_operator[OP_MAX_TYPENAME] |
Import operator name.
Definition at line 25 of file BKE_file_handler.hh.
Referenced by drop_import_file_poll_file_handlers(), and file_handler_import_operator_create_ptr().
| char blender::bke::FileHandlerType::label[OP_MAX_TYPENAME] |
For UI text.
Definition at line 23 of file BKE_file_handler.hh.
Referenced by blender::ed::object::collection_exporter_add_exec(), and uiTemplateCollectionExporters().
| bool(* blender::bke::FileHandlerType::poll_drop) (const bContext *C, FileHandlerType *file_handle_type) |
Check if file handler can be used on file drop.
Definition at line 33 of file BKE_file_handler.hh.
Referenced by blender::bke::file_handlers_poll_file_drop().
| ExtensionRNA blender::bke::FileHandlerType::rna_ext |
RNA integration.
Definition at line 39 of file BKE_file_handler.hh.