aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchanneleditor.hpp
blob: 350db1e785d34e3dfe904b6cf7e1b57c2aaa4716 (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
#ifndef QMPCHANNELEDITOR_H
#define QMPCHANNELEDITOR_H

#include <QDialog>
#include <QShowEvent>
#include <QCloseEvent>
#include "qdialskulpturestyle.hpp"

namespace Ui {
	class qmpChannelEditor;
}

class qmpChannelEditor:public QDialog
{
	Q_OBJECT

	public:
		explicit qmpChannelEditor(QWidget *parent=0);
		~qmpChannelEditor();
	protected:
		void showEvent(QShowEvent *e);
		void closeEvent(QCloseEvent *e);
	public slots:
		void setupWindow(int chid=-1);

	private slots:
		void commonPressed();
		void commonReleased();
		void commonChanged();
		void on_pbChLeft_clicked();
		void on_pbChRight_clicked();

	private:
		Ui::qmpChannelEditor *ui;
		int ch,knobpressed;
		void sendCC();
		void connectSlots();
		void disconnectSlots();
		QMetaObject::Connection updconn;
		QCommonStyle* styl;
};

#endif // QMPCHANNELEDITOR_H