Refactor loading song errors notification

This commit is contained in:
Amadeus Folego
2014-12-29 03:56:46 -02:00
parent 3dd1da4e25
commit edebf5d7da
9 changed files with 60 additions and 75 deletions

View File

@@ -117,7 +117,6 @@ private:
delete tmp;
}
static bool s_hasGUI;
static float s_framesPerTick;
// core

View File

@@ -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

View File

@@ -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;