1 /* SPDX-License-Identifier: GPL-2.0-only */
5 #include <Configuration.h>
10 #include <QTableWidget>
11 #include <yaml-cpp/yaml.h>
14 namespace Ui
{ class MainWindow
; }
17 class MainWindow
: public QMainWindow
22 MainWindow(QWidget
*parent
= nullptr);
26 void updateValue(const QString
& key
);
29 void on_actionSave_triggered(void);
31 void on_actionLoad_triggered(void);
33 void on_saveButton_clicked(void);
36 void pullSettings(void);
37 void pushSettings(void);
39 void generateUi(void);
40 void askForReboot(void);
42 void readSettings(const QString
& fileName
);
43 void writeSettings(const QString
& fileName
);
45 Configuration::Parameters m_parameters
;
46 YAML::Node m_categories
;
50 QComboBox
*createComboBox(const QString
&key
);
51 QCheckBox
*createCheckBox(const QString
&key
);
53 QTableWidget
*createRawTable();