diff options
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchannelswindow.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.hpp b/qmidiplayer-desktop/qmpchannelswindow.hpp index 57f293e..80f427a 100644 --- a/qmidiplayer-desktop/qmpchannelswindow.hpp +++ b/qmidiplayer-desktop/qmpchannelswindow.hpp @@ -10,6 +10,7 @@ #include <QMoveEvent> #include "qmppresetselect.hpp" #include "qmpchanneleditor.hpp" +#include "../core/qmpmidiplay.hpp" #include "../core/qmpmidimappers.hpp" namespace Ui { @@ -58,6 +59,15 @@ class QDCComboBox:public QComboBox void indexChangedSlot(int idx){emit(onChange(id,idx));} }; +class qmpCWNoteOnCB:public QObject,public CMidiCallBack +{ + Q_OBJECT + public: + void callBack(void *data){if(data)data=NULL;emit(onNoteOn());} + signals: + void onNoteOn(); +}; + class qmpChannelsWindow:public QDialog { Q_OBJECT @@ -72,6 +82,7 @@ class qmpChannelsWindow:public QDialog void dialogClosing(); public slots: void channelWindowsUpdate(); + void updateChannelActivity(); void channelMSChanged(); void showPresetWindow(int chid); void showChannelEditorWindow(int chid); @@ -84,6 +95,8 @@ class qmpChannelsWindow:public QDialog qmpPresetSelector *pselectw; qmpChannelEditor *ceditw; qmpMidiMapperRtMidi *mapper; + QPixmap *cha,*chi; + qmpCWNoteOnCB *cb; }; #endif // QMPCHANNELSWINDOW_H |