Version bump
[someplayer] / src / equalizerdialog.h
1 /*
2  * SomePlayer - An alternate music player for Maemo 5
3  * Copyright (C) 2010 Nikolay (somebody) Tischenko <niktischenko@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  */
19
20 #ifndef EQUALIZERDIALOG_H
21 #define EQUALIZERDIALOG_H
22
23 #include <QDialog>
24
25 namespace Ui {
26         class EqualizerDialog;
27 }
28
29 class EqualizerDialog : public QDialog
30 {
31         Q_OBJECT
32 public:
33         explicit EqualizerDialog(QWidget *parent = 0);
34         ~EqualizerDialog();
35 signals:
36         void valueChanged(int, int);
37         void equalizerDisabled();
38         void equalizerEnabled();
39
40 public slots:
41         void setValue(int, int);
42         void setEqualizerEnabled(bool);
43         void reloadPresets();
44
45 private slots:
46         void _value0_changed(int v) { emit valueChanged(0, v);}
47         void _value1_changed(int v) { emit valueChanged(1, v);}
48         void _value2_changed(int v) { emit valueChanged(2, v);}
49         void _value3_changed(int v) { emit valueChanged(3, v);}
50         void _value4_changed(int v) { emit valueChanged(4, v);}
51         void _value5_changed(int v) { emit valueChanged(5, v);}
52         void _value6_changed(int v) { emit valueChanged(6, v);}
53         void _value7_changed(int v) { emit valueChanged(7, v);}
54         void _value8_changed(int v) { emit valueChanged(8, v);}
55         void _value9_changed(int v) { emit valueChanged(9, v);}
56         void _value_master_changed(int v);
57         void _state_changed();
58         void _save_preset();
59         void _load_preset(QString);
60
61 private:
62         Ui::EqualizerDialog *ui;
63 };
64
65 #endif // EQUALIZERDIALOG_H