Wed, 22 Sep 2021 00:25:13 +0300
Add remaining serialize methods
7 | 1 | #pragma once |
2 | #include <QDialog> | |
3 | #include "main.h" | |
4 | #include "librarieseditor.h" | |
5 | #include "libraries.h" | |
16 | 6 | #include "uiutilities.h" |
41
0abada2a9802
added automated configuration collection
Teemu Piippo <teemu@hecknology.net>
parents:
16
diff
changeset
|
7 | #include "configuration.h" |
7 | 8 | |
9 | class SettingsEditor : public QDialog | |
10 | { | |
11 | Q_OBJECT | |
12 | public: | |
41
0abada2a9802
added automated configuration collection
Teemu Piippo <teemu@hecknology.net>
parents:
16
diff
changeset
|
13 | SettingsEditor(Configuration* settings, |
16 | 14 | const uiutilities::KeySequenceMap& defaultKeyboardShortcuts = {}, |
15 | QWidget* parent = nullptr); | |
7 | 16 | ~SettingsEditor(); |
112 | 17 | private Q_SLOTS: |
7 | 18 | void handleAccepted(); |
19 | private: | |
20 | class Ui_SettingsEditor& ui; | |
41
0abada2a9802
added automated configuration collection
Teemu Piippo <teemu@hecknology.net>
parents:
16
diff
changeset
|
21 | Configuration* const settings; |
7 | 22 | LibraryManager libraries; |
23 | LibrariesEditor librariesEditor; | |
16 | 24 | const uiutilities::KeySequenceMap defaultKeyboardShortcuts; |
7 | 25 | void loadLocales(); |
26 | void setDefaults(); | |
27 | void setCurrentLanguage(const QString& localeCode); | |
28 | }; |