Sat, 05 Oct 2019 23:47:03 +0300
added the settings editor
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(); | |
16 | private: | |
17 | enum | |
18 | { | |
19 | RoleColumn, | |
20 | PathColumn | |
21 | }; | |
22 | LibraryManager libraries; | |
23 | class Ui_LibrariesEditor& ui; | |
24 | }; |