diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-01-03 23:15:41 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-01-03 23:15:41 +0800 |
commit | 84634010422f578b27105bbbaf6b8ee4c1232e86 (patch) | |
tree | 022775f88c94d697bdce0b32ae32698c542b50ca /qmpmainwindow.hpp | |
parent | b886aa1fcafc16fe93bfe19e2f63b4089234f9f6 (diff) | |
download | QMidiPlayer-84634010422f578b27105bbbaf6b8ee4c1232e86.tar.xz |
Bad Apple. (WTF)
Diffstat (limited to 'qmpmainwindow.hpp')
-rw-r--r-- | qmpmainwindow.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qmpmainwindow.hpp b/qmpmainwindow.hpp index c251fc0..bd61b13 100644 --- a/qmpmainwindow.hpp +++ b/qmpmainwindow.hpp @@ -4,6 +4,7 @@ #include <QMainWindow> #include <QTimer> #include <QCloseEvent> +#include <QMoveEvent> #include <QAction> #include <QMenu> #include <thread> @@ -26,9 +27,11 @@ class qmpMainWindow:public QMainWindow public: explicit qmpMainWindow(QWidget *parent = 0); void closeEvent(QCloseEvent *event); + void moveEvent(QMoveEvent *event); ~qmpMainWindow(); CMidiPlayer* getPlayer(){return player;} QTimer* getTimer(){return timer;} + bool isFinalizing(){return fin;} private slots: void on_pbPlayPause_clicked(); @@ -43,8 +46,9 @@ class qmpMainWindow:public QMainWindow void on_pbChannels_clicked(); void on_pbEfx_clicked(); void on_lbFileName_customContextMenuRequested(const QPoint &pos); - void onfnA1(); void on_pbSettings_clicked(); + void onfnA1(); + void onfnA2(); public slots: void dialogClosed(); @@ -53,8 +57,9 @@ class qmpMainWindow:public QMainWindow private: Ui::qmpMainWindow *ui; QTimer *timer; - bool playing,stopped,dragging; + bool playing,stopped,dragging,fin; std::thread *playerTh=NULL; + std::thread *renderTh=NULL; std::chrono::steady_clock::time_point st; double offset; CMidiPlayer *player; |