| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef SETTINGSGUI_H |
| 4 | #define SETTINGSGUI_H |
| 5 | |
| 6 | #include "gui/settings/settingspanel.h" |
| 7 | |
| 8 | #include "ui_settingsgui.h" |
| 9 | |
| 10 | class SettingsGui : public SettingsPanel { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | public: |
| 14 | explicit SettingsGui(Settings* settings, QWidget* parent = nullptr); |
| 15 | virtual ~SettingsGui(); |
| 16 | |
| 17 | virtual QIcon icon() const; |
| 18 | virtual QString title() const; |
| 19 | virtual void loadSettings(); |
| 20 | virtual void saveSettings(); |
| 21 | |
| 22 | protected: |
| 23 | // Does check of controls before dialog can be submitted. |
| 24 | bool eventFilter(QObject* obj, QEvent* e); |
| 25 | |
| 26 | private slots: |
| 27 | void updateSkinOptions(); |
| 28 | void resetCustomSkinColor(); |
| 29 | |
| 30 | private: |
| 31 | Ui::SettingsGui* m_ui; |
| 32 | }; |
| 33 | |
| 34 | inline QString SettingsGui::title() const { |
| 35 | return tr("User interface"); |
| 36 | } |
| 37 | |
| 38 | #endif // SETTINGSGUI_H |