drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / util / coreboot-configurator / src / application / MainWindow.h
blobbf317a814fae7be8c2775abe02b54c820f78e11c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #pragma once
5 #include <Configuration.h>
6 #include <QCheckBox>
7 #include <QComboBox>
8 #include <QMainWindow>
9 #include <QString>
10 #include <QTableWidget>
11 #include <yaml-cpp/yaml.h>
13 QT_BEGIN_NAMESPACE
14 namespace Ui { class MainWindow; }
15 QT_END_NAMESPACE
17 class MainWindow : public QMainWindow
19 Q_OBJECT
21 public:
22 MainWindow(QWidget *parent = nullptr);
23 ~MainWindow();
25 signals:
26 void updateValue(const QString& key);
28 private slots:
29 void on_actionSave_triggered(void);
31 void on_actionLoad_triggered(void);
33 void on_saveButton_clicked(void);
35 private:
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;
48 Ui::MainWindow *ui;
50 QComboBox *createComboBox(const QString &key);
51 QCheckBox *createCheckBox(const QString &key);
53 QTableWidget *createRawTable();