Sat, 11 Jun 2022 15:20:24 +0300
Rewrite prune to use graphs rather than O(n²) searches
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: | |
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 | }; |