Refactor loading song errors notification
This commit is contained in:
@@ -117,7 +117,6 @@ private:
|
||||
delete tmp;
|
||||
}
|
||||
|
||||
static bool s_hasGUI;
|
||||
static float s_framesPerTick;
|
||||
|
||||
// core
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
#include <QtCore/QList>
|
||||
#include <QMainWindow>
|
||||
|
||||
#include "export.h"
|
||||
|
||||
class QAction;
|
||||
class QDomElement;
|
||||
class QGridLayout;
|
||||
@@ -42,7 +40,7 @@ class PluginView;
|
||||
class ToolButton;
|
||||
|
||||
|
||||
class EXPORT MainWindow : public QMainWindow
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -97,12 +95,6 @@ public:
|
||||
static void saveWidgetState( QWidget * _w, QDomElement & _de );
|
||||
static void restoreWidgetState( QWidget * _w, const QDomElement & _de );
|
||||
|
||||
void collectErrors( const QList<QString>* errors );
|
||||
void collectError( const QString & error );
|
||||
void clearErrors();
|
||||
void showErrors( const QString & reason );
|
||||
|
||||
|
||||
public slots:
|
||||
void resetWindowTitle();
|
||||
|
||||
@@ -178,8 +170,6 @@ private:
|
||||
QBasicTimer m_updateTimer;
|
||||
QTimer m_autoSaveTimer;
|
||||
|
||||
QList<QString>* m_errors;
|
||||
|
||||
friend class GuiApplication;
|
||||
|
||||
|
||||
@@ -199,4 +189,3 @@ signals:
|
||||
} ;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -65,6 +65,10 @@ public:
|
||||
Mode_Count
|
||||
} ;
|
||||
|
||||
void clearErrors();
|
||||
void collectError( const QString error );
|
||||
bool hasErrors();
|
||||
QString* errorSummary();
|
||||
|
||||
class playPos : public MidiTime
|
||||
{
|
||||
@@ -344,6 +348,8 @@ private:
|
||||
|
||||
bool m_loadingProject;
|
||||
|
||||
QList<QString> * m_errors;
|
||||
|
||||
PlayModes m_playMode;
|
||||
playPos m_playPos[Mode_Count];
|
||||
tact_t m_length;
|
||||
|
||||
Reference in New Issue
Block a user