Sun, 09 Apr 2023 16:01:38 +0300
Removed unused code
7 | 1 | #pragma once |
285
99af8bf63d10
Don't create more than one settings editor
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
282
diff
changeset
|
2 | #include <QMdiSubWindow> |
264
76a025db4948
Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
259
diff
changeset
|
3 | #include "src/basics.h" |
76a025db4948
Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
259
diff
changeset
|
4 | #include "src/libraries.h" |
76a025db4948
Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
259
diff
changeset
|
5 | #include "src/uiutilities.h" |
76a025db4948
Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
259
diff
changeset
|
6 | #include "src/settingseditor/librarieseditor.h" |
7 | 7 | |
285
99af8bf63d10
Don't create more than one settings editor
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
282
diff
changeset
|
8 | class SettingsEditor : public QMdiSubWindow |
7 | 9 | { |
10 | Q_OBJECT | |
11 | public: | |
218
63125c36de73
Replace config collector with a simpler system
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
206
diff
changeset
|
12 | SettingsEditor(const uiutilities::KeySequenceMap& defaultKeyboardShortcuts = {}, |
16 | 13 | QWidget* parent = nullptr); |
7 | 14 | ~SettingsEditor(); |
282
f2dc3bbecbfa
Make settings editor a sub window instead of a dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
264
diff
changeset
|
15 | Q_SLOT void saveSettings(); |
f2dc3bbecbfa
Make settings editor a sub window instead of a dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
264
diff
changeset
|
16 | Q_SLOT void loadSettings(); |
f2dc3bbecbfa
Make settings editor a sub window instead of a dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
264
diff
changeset
|
17 | Q_SIGNALS: |
f2dc3bbecbfa
Make settings editor a sub window instead of a dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
264
diff
changeset
|
18 | void settingsChanged(); |
7 | 19 | private: |
357
66c75604f5b8
Add settings import and export
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
296
diff
changeset
|
20 | bool disableSettingsAutoSave = false; |
7 | 21 | class Ui_SettingsEditor& ui; |
230
a1f3f7d9078b
rename LibraryManager -> LibrariesModel
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
218
diff
changeset
|
22 | LibrariesModel libraries; |
7 | 23 | LibrariesEditor librariesEditor; |
16 | 24 | const uiutilities::KeySequenceMap defaultKeyboardShortcuts; |
7 | 25 | }; |