Sun, 26 Jan 2020 14:29:30 +0200
replaced matrix and vertex classes with glm
7 | 1 | #pragma once |
2 | #include <QWidget> | |
3 | #include "main.h" | |
4 | #include "libraries.h" | |
5 | ||
6 | class LibrariesEditor : public QWidget | |
7 | { | |
8 | Q_OBJECT | |
9 | public: | |
10 | LibrariesEditor(QSettings* settings, QWidget* parent = nullptr); | |
11 | ~LibrariesEditor(); | |
12 | void saveSettings(QSettings* settings); | |
13 | private slots: | |
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 | }; | |
27 | LibraryManager libraries; | |
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 | }; |