diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-07 23:39:02 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-07 23:39:02 +0800 |
commit | 8f8782f43bd838e825f3792b611d27fffa90399b (patch) | |
tree | 1fbd96dd7ce061010edacf67f72f0ffb07889edf /qmidiplayer-desktop/qmpchannelswindow.hpp | |
parent | 70fd2d85c1bd6fb8732e680e8fda9d36c317c732 (diff) | |
download | QMidiPlayer-8f8782f43bd838e825f3792b611d27fffa90399b.tar.xz |
Lunatic Princess.
Diffstat (limited to 'qmidiplayer-desktop/qmpchannelswindow.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchannelswindow.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpchannelswindow.hpp b/qmidiplayer-desktop/qmpchannelswindow.hpp index f0591b6..57f293e 100644 --- a/qmidiplayer-desktop/qmpchannelswindow.hpp +++ b/qmidiplayer-desktop/qmpchannelswindow.hpp @@ -4,11 +4,13 @@ #include <QLabel> #include <QPushButton> #include <QDialog> +#include <QComboBox> #include <QShowEvent> #include <QCloseEvent> #include <QMoveEvent> #include "qmppresetselect.hpp" #include "qmpchanneleditor.hpp" +#include "../core/qmpmidimappers.hpp" namespace Ui { class qmpChannelsWindow; @@ -42,6 +44,20 @@ class QDCPushButton:public QPushButton void onClick(int id); }; +class QDCComboBox:public QComboBox +{ + Q_OBJECT + private: + int id; + public: + QDCComboBox():QComboBox(){id=-1;connect(this,SIGNAL(currentIndexChanged(int)),this,SLOT(indexChangedSlot(int)));} + void setID(int _id){id=_id;} + signals: + void onChange(int id,int idx); + public slots: + void indexChangedSlot(int idx){emit(onChange(id,idx));} +}; + class qmpChannelsWindow:public QDialog { Q_OBJECT @@ -59,6 +75,7 @@ class qmpChannelsWindow:public QDialog void channelMSChanged(); void showPresetWindow(int chid); void showChannelEditorWindow(int chid); + void changeMidiMapping(int chid,int idx); void on_pbUnmute_clicked(); void on_pbUnsolo_clicked(); @@ -66,6 +83,7 @@ class qmpChannelsWindow:public QDialog Ui::qmpChannelsWindow *ui; qmpPresetSelector *pselectw; qmpChannelEditor *ceditw; + qmpMidiMapperRtMidi *mapper; }; #endif // QMPCHANNELSWINDOW_H |