6#include <QtCore/QFileInfo>
7#include <QtCore/QString>
45 I_ASSIGN(m_useNativeAttrPtr,
"UseNative",
"Use native system file dialog",
true,
true);
46 I_ASSIGN_MULTI_0(m_loadersCompPtr,
"Loaders",
"List of file serializers will be used as slaves",
true);
47 I_ASSIGN(m_statupDirectoryCompPtr,
"StartupDirectory",
"Initial directory path for the file loader dialog",
false,
"StartupDirectory");
53 const QString* filePathPtr =
NULL,
55 bool beQuiet =
true)
const override;
58 const QString& filePath = QString(),
62 const QString& filePath = QString(),
86 bool allowCommonDescription =
true);
98 I_ATTR(
bool, m_useNativeAttrPtr);
102 mutable QFileInfo m_lastOpenInfo;
103 mutable QFileInfo m_lastSaveInfo;
Consume information about progress of some process.
Common interface for any file system item name (e.g directory, file or URL path)
Interface providing loading and saving of data objects.
OperationState
Result of operation.
Provide some information about file loader state.
Provide loading and saving of objects.
virtual ifile::IFilePersistence::OperationState LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const override
This function loads data data from file filePath.
virtual void OnComponentCreated() override
Called when component is created.
static void AppendLoaderFilterList(const ifile::IFileTypeInfo &fileTypeInfo, const istd::IChangeable *dataObjectPtr, int flags, QStringList &allExt, QStringList &result, bool allowCommonDescription=true)
Append filters extracted from file loader to Qt filter list accepted by QFileDialog.
ilog::CLoggerComponentBase BaseClass
virtual bool GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=NULL, int flags=-1, bool doAppend=false) const override
Get file extensions supported by this loader.
virtual ifile::IFilePersistence::OperationState SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const override
This function saves data data to file filePath.
virtual QString GetLastFilePath(OperationType operationType=OT_UNKNOWN, PathType pathType=PT_COMPLETE) const override
Returns the last opened file name.
virtual QString GetFileName(const istd::IChangeable &data, const QString &filePath, bool isSaving, int &selectionIndex) const
virtual bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=NULL, int flags=-1, bool beQuiet=true) const override
Returns true if object dataObject can be loaded/saved.
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const override
Get description of object type associated with single extension.
QString GetPathForType(const QFileInfo &fileInfo, PathType pathType) const
ifile::IFilePersistence * GetLoaderFor(const istd::IChangeable *dataObjectPtr, const QString &filePath, int selectionIndex, int flags, bool beQuiet) const
Template wrapper adding comprehensive logging functionality to components.
Common interface for data model objects, which can be changed.
GUI specific interfaces and components for file system access and representation.