blob: c87a90fc6cd1c2e1c0a1a49ea5079ead2ac7bb78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#ifndef QMPCHANNELSWINDOW_H
#define QMPCHANNELSWINDOW_H
#include <QLabel>
#include <QPushButton>
#include <QDialog>
#include <QCloseEvent>
#include "qmppresetselect.hpp"
#include "qmpchanneleditor.hpp"
namespace Ui {
class qmpchannelswindow;
}
class QDCLabel:public QLabel
{
Q_OBJECT
using QLabel::QLabel;
private:
int id;
protected:
void mouseDoubleClickEvent(QMouseEvent *event){event->accept();emit onDoubleClick(id);}
public:
void setID(int _id){id=_id;}
signals:
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
public:
explicit qmpchannelswindow(QWidget *parent = 0);
~qmpchannelswindow();
void closeEvent(QCloseEvent *event);
signals:
void dialogClosing();
public slots:
void channelWindowsUpdate();
void channelMSChanged();
void showPresetWindow(int chid);
void showChannelEditorWindow(int chid);
private slots:
void on_pbUnmute_clicked();
void on_pbUnsolo_clicked();
private:
Ui::qmpchannelswindow *ui;
qmppresetselect *pselectw;
qmpchanneleditor *ceditw;
};
#endif // QMPCHANNELSWINDOW_H
|