Mon, 20 Jun 2022 22:40:31 +0300
Make the grid black on bright backgrounds
7 | 1 | #pragma once |
2 | #include <QWidget> | |
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 "libraries.h" |
5 | ||
6 | class LibrariesEditor : public QWidget | |
7 | { | |
8 | Q_OBJECT | |
9 | public: | |
218
63125c36de73
Replace config collector with a simpler system
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
206
diff
changeset
|
10 | LibrariesEditor(QWidget* parent = nullptr); |
7 | 11 | ~LibrariesEditor(); |
218
63125c36de73
Replace config collector with a simpler system
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
206
diff
changeset
|
12 | void saveSettings(); |
112 | 13 | private Q_SLOTS: |
7 | 14 | void searchPathForNewLibrary(); |
15 | void addNewLibrary(); | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
16 | void showContextMenu(const QPoint position); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
17 | void setCurrentLibraryRole(); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
18 | void removeCurrentLibrary(); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
19 | void moveCurrentLibraryUp(); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
20 | void moveCurrentLibraryDown(); |
7 | 21 | private: |
22 | enum | |
23 | { | |
24 | RoleColumn, | |
25 | PathColumn | |
26 | }; | |
230
a1f3f7d9078b
rename LibraryManager -> LibrariesModel
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
218
diff
changeset
|
27 | LibrariesModel libraries; |
7 | 28 | class Ui_LibrariesEditor& ui; |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
29 | int currentLibraryIndex() const; |
7 | 30 | }; |