Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/SettingsDialog/BackendOptionsPage.h
- This file was added.
1 | #ifndef BACKEND_PAGE_H | ||||
---|---|---|---|---|---|
2 | #define BACKEND_PAGE_H | ||||
3 | | ||||
4 | #include "SettingsPage.h" | ||||
5 | | ||||
6 | #include <QButtonGroup> | ||||
7 | #include <QVBoxLayout> | ||||
8 | | ||||
9 | #include <tuple> | ||||
10 | #include <vector> | ||||
11 | | ||||
12 | #include <QJsonValue> | ||||
13 | #include <QJsonArray> | ||||
14 | | ||||
15 | class QString; | ||||
16 | | ||||
17 | class BackendOptionsPage : public SettingsPage { | ||||
18 | Q_OBJECT | ||||
19 | public: | ||||
20 | explicit BackendOptionsPage(QWidget *parent = nullptr); | ||||
21 | | ||||
22 | public Q_SLOTS: | ||||
23 | void saveChanges() override; | ||||
24 | void resetChanges() override; | ||||
25 | | ||||
26 | private: | ||||
27 | void initalizeModel(); | ||||
28 | void setScreenshotViewLayout(); | ||||
29 | | ||||
30 | enum class PluginState { | ||||
31 | InUse, | ||||
32 | NotInUse, | ||||
33 | Disabled | ||||
34 | }; | ||||
35 | | ||||
36 | QVBoxLayout* layout; | ||||
37 | QButtonGroup* activateButtonGroup; | ||||
38 | std::vector<std::tuple<QJsonValue, QJsonArray, PluginState>> model; | ||||
39 | }; | ||||
40 | | ||||
41 | #endif //BACKEND_PAGE_H | ||||
42 | No newline at end of file |