15 #ifndef BORNAGAIN_GUI_VIEW_PROJECT_AUTOSAVECONTROLLER_H
16 #define BORNAGAIN_GUI_VIEW_PROJECT_AUTOSAVECONTROLLER_H
Triggers autosave request after some accumulated ammount of document changes.
void setAutosaveTime(int timerInterval)
Sets autosave time (in msec)
void setDocument(ProjectDocument *document)
void onDocumentModified()
void onDocumentDestroyed(QObject *object)
AutosaveController(QObject *parent=nullptr)
ProjectDocument * m_document
QString autosaveName() const
bool assureAutoSaveDirExists() const
Tries to make sure that the directory for auto saving exists. Tries to create it if not existing so f...
void removeAutosaveDir() const
remove auto save directory for given project and all its content
QString autosaveDir() const
The complete path to the autosave dir (e.g. '/projects/Untitled2/autosave').
Project document class handles all data related to the opened project (sample, job,...
The UpdateTimer class accumulates update requests during certain period of time, and at the end of th...