From 8f8782f43bd838e825f3792b611d27fffa90399b Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 7 Apr 2016 23:39:02 +0800 Subject: Lunatic Princess. --- qmidiplayer-desktop/qmpchannelswindow.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'qmidiplayer-desktop/qmpchannelswindow.hpp') 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 #include #include +#include #include #include #include #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 -- cgit v1.2.3