11 #include <QFileSystemWatcher> 14 #include "abstract_project.h" 15 #include "file_helper.h" 27 void reset()
override;
31 bool setAutosaveDomDocument(
const QDomDocument& domDocument);
34 void setFilePath(
const QString& filePath);
35 QString filePath()
const;
36 QString fileName()
const;
39 QString relativFilePath()
const;
40 void setRelativFilePath(
const QString &relativFilePath);
43 void setAutosaveFilePath(
const QString &autosaveFilePath);
44 void setFallbackAttributes();
45 QDomDocument _domDocument;
46 QDomDocument _autosaveDomDocument;
47 QFileSystemWatcher _fileSystemWatcher;
48 QString _autosaveFilePath;
49 QString _relativFilePath;
51 bool _internalSave =
false;
54 void onProjectFileChanged();
57 #endif // FILEPROJECT_H void setLoaded(bool isLoaded) override
Set the project loaded property. This indicates, that the project is currently loaded by the related ...
Definition: file_project.cpp:291
bool isLoaded() const
Definition: abstract_project.cpp:120
bool save() override
Save the project in a xml structure.
Definition: file_project.cpp:119
bool autosaveExists() override
Check autosave project xml exists.
Definition: file_project.cpp:39
The SettingsScope class acts as a container for scoped settings.
Definition: settings_scope.h:21
QDomDocument domDocument() const override
Definition: file_project.cpp:221
Definition: file_project.h:17
QDomDocument autosaveDomDocument() const override
Definition: file_project.cpp:264
void reset() override
Reload the complete project structure from xml. All settings, which are not saved will be discarded a...
Definition: file_project.cpp:171
void cleanAutosave() override
Remove the autosave project xml structure.
Definition: file_project.cpp:50
Definition: abstract_project.h:16
QString connectionString() override
The connection string defines the link to the project xml source (e.g file, sql). ...
Definition: file_project.cpp:201
bool autosave() override
Save the project in a xml structure.
Definition: file_project.cpp:151
QString autosaveInfo() override
Information about the autosave project xml structure.
Definition: file_project.cpp:56
bool setDomDocument(const QDomDocument &domDocument) override
Set and validate the project domDocument xml structure.
Definition: file_project.cpp:226