aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpefxwindow.hpp
blob: 3bc8e40c55e7d86646be1c329f975862563e7437 (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
70
71
72
#ifndef QMPEFXWINDOW_HPP
#define QMPEFXWINDOW_HPP

#include <QDialog>
#include <QCloseEvent>
#include <QShowEvent>
#include <QMoveEvent>

#include "qdialskulpturestyle.hpp"
#include "../include/qmpcorepublic.hpp"

namespace Ui {
	class qmpEfxWindow;
}

class qmpEfxWindow;

class qmpEfxFunc:public qmpFuncBaseIntf
{
	private:
		qmpEfxWindow *p;
	public:
		qmpEfxFunc(qmpEfxWindow *par);
		void show();
		void close();
};

class qmpEfxWindow : public QDialog
{
	Q_OBJECT

	public:
		explicit qmpEfxWindow(QWidget *parent=0);
		~qmpEfxWindow();
		void closeEvent(QCloseEvent *event);
		void showEvent(QShowEvent *event);
		void sendEfxChange(void *_fs=NULL);

	private slots:
		void on_dRoom_valueChanged();
		void on_dDamp_valueChanged();
		void on_dWidth_valueChanged();
		void on_dLevelR_valueChanged();
		void on_dFeedBack_valueChanged();
		void on_dRate_valueChanged();
		void on_dDepth_valueChanged();
		void on_dLevelC_valueChanged();
		void on_sbRoom_valueChanged(QString s);
		void on_sbDamp_valueChanged(QString s);
		void on_sbWidth_valueChanged(QString s);
		void on_sbLevelR_valueChanged(QString s);
		void on_sbFeedBack_valueChanged(QString s);
		void on_sbRate_valueChanged(QString s);
		void on_sbDepth_valueChanged(QString s);
		void on_sbLevelC_valueChanged(QString s);
		void on_cbEnabledC_stateChanged();
		void on_cbEnabledR_stateChanged();
		void on_rbSine_toggled();
		void on_rbTriangle_toggled();

	private:
		void dailValueChange();
		void spinValueChange();
		Ui::qmpEfxWindow *ui;
		double rr,rd,rw,rl;
		int cfb,ct,initialized;
		double cl,cr,cd;
		QCommonStyle* styl;
		qmpEfxFunc *efxf;
};

#endif // QMPEFXWINDOW_HPP