817d9f5d736b136ed80d4ce607e9ddc933e2c9de
[someplayer] / src / settingsform.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
21 #ifndef SETTINGSFORM_H
22 #define SETTINGSFORM_H
23
24 #include <QWidget>
25 #include "config.h"
26
27 namespace Ui {
28         class SettingsForm;
29 }
30
31 class SettingsForm : public QWidget {
32         Q_OBJECT
33
34 public:
35         explicit SettingsForm(QWidget *parent = 0);
36         ~SettingsForm();
37
38 public slots:
39         void updateTranslations();
40         void landscapeMode();
41         void portraitMode();
42
43 signals:
44         void iconsChanged();
45         void orientationChanged();
46         void gradientChanged();
47         void libraryOptionsChanged();
48         void translationChanged();
49         void trackColorChanged();
50         void hwZoomPolicyChanged();
51         void fmtxSettingsChanged();
52
53 private:
54         Ui::SettingsForm *ui;
55
56 private slots:
57         void _set_album_sorting_alphabet(bool);
58         void _set_album_sorting_date(bool);
59         void _set_track_lenght_show_yes(bool);
60         void _set_track_lenght_show_no(bool);
61         void _set_orientation_auto(bool);
62         void _set_orientation_portrait(bool);
63         void _set_orientation_landscape(bool);
64         void _set_icons_white(bool);
65         void _set_icons_black(bool);
66         void _set_gradient_yes(bool);
67         void _set_gradient_no(bool);
68         void _set_lang_en(bool);
69         void _set_lang_ru(bool);
70         void _set_color_blue(bool);
71         void _set_color_magenta(bool);
72         void _set_color_red(bool);
73         void _set_color_yellow(bool);
74         void _set_color_white(bool);
75         void _set_color_black(bool);
76         void _set_color_light(bool);
77         void _set_color_dark(bool);
78         void _set_pause_hp_yes(bool);
79         void _set_pause_hp_no(bool);
80         void _toggle_hw_settings(bool);
81         void _set_hw_volume_control(bool);
82         void _set_hw_track_control(bool);
83         void _toggle_view_ui();
84         void _toggle_view_lib();
85         void _toggle_view_hw();
86         void _open_fmtx_settings();
87         void _toggle_fmtx_settings(bool);
88 };
89
90 #endif // SETTINGSFORM_H