![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| void | addNameFilter (FileExtension ext) |
| void | addNameFilter (std::string_view filter) |
| void | addNameFilters (const std::vector< FileExtension > &filters) |
| void | clearNameFilters () |
| FileBase (std::function< void()> onModified, AcceptMode acceptMode, FileMode fileMode, std::string_view contentType) | |
| AcceptMode | getAcceptMode () const |
| const std::string & | getContentType () const |
| FileMode | getFileMode () const |
| std::vector< FileExtension > & | getNameFilters () |
| const std::vector< FileExtension > & | getNameFilters () const |
| const FileExtension & | getSelectedExtension () const |
| bool | matchesAnyNameFilter (const std::filesystem::path &file) const |
| void | setAcceptMode (AcceptMode mode) |
| void | setContentType (std::string_view contentType) |
| void | setFileMode (FileMode mode) |
| void | setSelectedExtension (const FileExtension &ext) |
Static Public Attributes | |
| static constexpr std::string_view | defaultContentType = "default" |
Protected Member Functions | |
| std::unique_ptr< FileDialog > | createFileDialog (std::string_view title, const std::filesystem::path &file) const |
| bool | deserialize (Deserializer &d, PropertySerializationMode mode) |
| bool | reset () |
| void | serialize (Serializer &s, PropertySerializationMode mode) const |
| void | setAsDefault () |
| bool | setFileBase (const FileBase &base) |
| bool | updateExtension (const std::filesystem::path &file) |
Static Protected Member Functions | |
| template<typename Arg, typename... Args> | |
| static constexpr bool | any_of (Arg &&arg, Args &&... args) |
Protected Attributes | |
| ValueWrapper< AcceptMode > | acceptMode_ |
| ValueWrapper< std::string > | contentType_ |
| ValueWrapper< FileMode > | fileMode_ |
| std::vector< FileExtension > | nameFilters_ |
| ValueWrapper< FileExtension > | selectedExtension_ |
|
inlinestaticnodiscardconstexprprotected |
A variadic any_of. This will evaluate all the arguments. But the order is arbitrary.