Recovery file fixes

This commit is contained in:
Oskar Wallgren
2015-12-10 02:53:27 +01:00
parent 7d38e0e9dc
commit 9e8020719c
3 changed files with 218 additions and 21 deletions

View File

@@ -81,6 +81,29 @@ public:
///
bool mayChangeProject(bool stopPlayback);
void autoSaveTimerStart()
{
m_autoSaveTimer.start( 1000 * 60 ); // 1 minute
}
enum SessionState
{
Normal,
Recover,
Limited,
};
void setSession( SessionState session )
{
m_session = session;
}
SessionState getSession()
{
return m_session;
}
void sessionCleanup();
void clearKeyModifiers();
@@ -131,6 +154,8 @@ public slots:
void undo();
void redo();
void autoSave();
void runAutoSave();
protected:
virtual void closeEvent( QCloseEvent * _ce );
@@ -150,7 +175,6 @@ private:
void toggleWindow( QWidget *window, bool forceShow = false );
void refocus();
QMdiArea * m_workspace;
QWidget * m_toolBar;
@@ -187,6 +211,8 @@ private:
ToolButton * m_metronomeToggle;
SessionState m_session;
private slots:
void browseHelp();
void fillTemplatesMenu();
@@ -198,8 +224,6 @@ private slots:
void onToggleMetronome();
void autoSave();
signals:
void periodicUpdate();
void initProgress(const QString &msg);