diff options
author | Chris Xiong <chirs241097@gmail.com> | 2017-02-12 00:29:01 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2017-02-12 00:29:01 +0800 |
commit | d779d32c8c32e0e0c22662046498620b11fa46de (patch) | |
tree | ba63a0d33d1fb6a07bca30d74dd72934b9ef69ce /qmidiplayer-desktop/qmpchannelswindow.hpp | |
parent | acf466561f17bf0eb6c19ea0467b27f5392aeb36 (diff) | |
download | QMidiPlayer-d779d32c8c32e0e0c22662046498620b11fa46de.tar.xz |
New functionality API. Port built-in features to the new API.
Start the revamp of the main Window. Credit of the new design goes to @BLumia.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchannelswindow.hpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.hpp b/qmidiplayer-desktop/qmpchannelswindow.hpp index 0fa1e06..4502b21 100644 --- a/qmidiplayer-desktop/qmpchannelswindow.hpp +++ b/qmidiplayer-desktop/qmpchannelswindow.hpp @@ -69,6 +69,18 @@ class qmpCWNoteOnCB:public QObject,public IMidiCallBack void onNoteOn(); }; +class qmpChannelsWindow; + +class qmpChannelFunc:public qmpFuncBaseIntf +{ + private: + qmpChannelsWindow *p; + public: + qmpChannelFunc(qmpChannelsWindow *par); + void show(); + void close(); +}; + class qmpChannelsWindow:public QDialog { Q_OBJECT @@ -80,8 +92,6 @@ class qmpChannelsWindow:public QDialog void closeEvent(QCloseEvent *event); void moveEvent(QMoveEvent *event); void resetAcitivity(); - signals: - void dialogClosing(); public slots: void channelWindowsUpdate(); void updateChannelActivity(); @@ -99,6 +109,7 @@ class qmpChannelsWindow:public QDialog qmpMidiMapperRtMidi *mapper; QPixmap *cha,*chi; qmpCWNoteOnCB *cb; + qmpChannelFunc *chnlf; //callback fuse... (avoid black midi blocking the main thread) int callbacksc,cbcnt,fused; }; |