Sayonara Player
Loading...
Searching...
No Matches
GUI_StyleSettings.h
1/* GUI_StyleSettings.h */
2
3/* Copyright (C) 2011-2024 Michael Lugmair (Lucio Carreras)
4 *
5 * This file is part of sayonara player
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef STYLESETTINGS_H
22#define STYLESETTINGS_H
23
24#include "Utils/Pimpl.h"
25#include "Gui/Utils/GuiClass.h"
26#include "Gui/Utils/Widgets/Dialog.h"
27
28UI_FWD(GUI_Style)
29
30class QSpinBox;
31class GUI_StyleSettings :
32 public Gui::Dialog
33{
34 Q_OBJECT
35 PIMPL(GUI_StyleSettings)
36 UI_CLASS(GUI_Style)
37
38 public:
39 explicit GUI_StyleSettings(QWidget* parent = nullptr);
40 ~GUI_StyleSettings() override;
41
42 signals:
43 void sig_style_update();
44
45 public slots:
46 void show(int);
47
48 private slots:
49 void combo_styles_changed(int);
50 void combo_text_changed(const QString&);
51 void col1_activated();
52 void col2_activated();
53 void col3_activated();
54 void col4_activated();
55 void save_pressed();
56 void del_pressed();
57 void undo_pressed();
58 void spin_box_changed(int);
59 void col_changed();
60
61 private:
62 void init();
63
64 void connect_spinbox(const QSpinBox* box);
65 void disconnect_spinbox(const QSpinBox* box);
66 void connect_spinboxes();
67 void disconnect_spinboxes();
68 void set_sth_changed(bool b);
69
70 protected:
71 void closeEvent(QCloseEvent* event) override;
72 void languageChanged() override;
73 void skinChanged() override;
74
75 void connect_combo_idx_changed();
76 void disconnect_combo_idx_changed();
77};
78
79#endif // STYLESETTINGS_H
Dialog with Settings connection. Also contains triggers for language_changed() and skin_changed()....
Definition Dialog.h:37