aboutsummaryrefslogtreecommitdiff
path: root/qmpchannelswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-30 23:45:12 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-12-30 23:45:12 +0800
commitb1be9e45b5abdf0a03181b9cee8dc208a762fe57 (patch)
tree1af8db6a9776af748c1d14e330a30ce61e162bea /qmpchannelswindow.hpp
parent8dc90ae27c24aec1851215f2cc28ee24eff01ea5 (diff)
downloadQMidiPlayer-b1be9e45b5abdf0a03181b9cee8dc208a762fe57.tar.xz
Complete Darkness. (WTF)
Diffstat (limited to 'qmpchannelswindow.hpp')
-rw-r--r--qmpchannelswindow.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/qmpchannelswindow.hpp b/qmpchannelswindow.hpp
index a594a5a..c87a90f 100644
--- a/qmpchannelswindow.hpp
+++ b/qmpchannelswindow.hpp
@@ -2,9 +2,11 @@
#define QMPCHANNELSWINDOW_H
#include <QLabel>
+#include <QPushButton>
#include <QDialog>
#include <QCloseEvent>
#include "qmppresetselect.hpp"
+#include "qmpchanneleditor.hpp"
namespace Ui {
class qmpchannelswindow;
@@ -24,6 +26,20 @@ class QDCLabel:public QLabel
void onDoubleClick(int id);
};
+class QDCPushButton:public QPushButton
+{
+ Q_OBJECT
+ using QPushButton::QPushButton;
+ private:
+ int id;
+ protected:
+ void mousePressEvent(QMouseEvent *event){QPushButton::mousePressEvent(event);emit onClick(id);}
+ public:
+ void setID(int _id){id=_id;}
+ signals:
+ void onClick(int id);
+};
+
class qmpchannelswindow:public QDialog
{
Q_OBJECT
@@ -38,6 +54,7 @@ class qmpchannelswindow:public QDialog
void channelWindowsUpdate();
void channelMSChanged();
void showPresetWindow(int chid);
+ void showChannelEditorWindow(int chid);
private slots:
void on_pbUnmute_clicked();
@@ -46,6 +63,7 @@ class qmpchannelswindow:public QDialog
private:
Ui::qmpchannelswindow *ui;
qmppresetselect *pselectw;
+ qmpchanneleditor *ceditw;
};
#endif // QMPCHANNELSWINDOW_H