Recovery file fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user