forked from keshavbhatt/olivia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
equalizer.h
66 lines (44 loc) · 1018 Bytes
/
equalizer.h
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
#ifndef EQUALIZER_H
#define EQUALIZER_H
#include <QWidget>
#include <QDebug>
#include <QSlider>
#include <QEvent>
#include <QSettings>
#include <QCloseEvent>
namespace Ui {
class equalizer;
}
class equalizer : public QWidget
{
Q_OBJECT
public:
explicit equalizer(QWidget *parent = nullptr);
~equalizer();
QString eq_args;
signals:
void disable_eq();
public slots:
void removeStyle();
void loadSettings();
void setRange();
void triggerEq();
bool eq_enabled();
signals:
void update_eq(QString);
protected slots:
bool eventFilter(QObject *obj, QEvent *event);
void closeEvent(QCloseEvent *event);
private slots:
void updateEqVal();
QString validBandVal(QSlider *band);
void on_reset_master_clicked();
void on_reset_super_clicked();
void on_fake_valueChanged(int value);
void setBandLabel(QSlider *slider);
private:
Ui::equalizer *ui;
QSettings *settingsObj = nullptr;
QString setting_path;
};
#endif // EQUALIZER_H