Wed, 15 Jun 2022 13:03:20 +0300
refactor
7 | 1 | #pragma once |
2 | #include <QDialog> | |
206
654661eab7f3
More refactor, merged main.h, basics.h and utility.h into one header file basics.h and removed plenty of unused code
Teemu Piippo <teemu@hecknology.net>
parents:
112
diff
changeset
|
3 | #include "basics.h" |
7 | 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: | |
218
63125c36de73
Replace config collector with a simpler system
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
206
diff
changeset
|
13 | SettingsEditor(const uiutilities::KeySequenceMap& defaultKeyboardShortcuts = {}, |
16 | 14 | QWidget* parent = nullptr); |
7 | 15 | ~SettingsEditor(); |
112 | 16 | private Q_SLOTS: |
7 | 17 | void handleAccepted(); |
18 | private: | |
19 | class Ui_SettingsEditor& ui; | |
20 | LibraryManager libraries; | |
21 | LibrariesEditor librariesEditor; | |
16 | 22 | const uiutilities::KeySequenceMap defaultKeyboardShortcuts; |
7 | 23 | void loadLocales(); |
24 | void setDefaults(); | |
25 | void setCurrentLanguage(const QString& localeCode); | |
26 | }; |