From 84634010422f578b27105bbbaf6b8ee4c1232e86 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 3 Jan 2016 23:15:41 +0800 Subject: Bad Apple. (WTF) --- qmpmainwindow.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'qmpmainwindow.hpp') diff --git a/qmpmainwindow.hpp b/qmpmainwindow.hpp index c251fc0..bd61b13 100644 --- a/qmpmainwindow.hpp +++ b/qmpmainwindow.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -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; -- cgit v1.2.3