]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - LinuxGUI/Ventoy2Disk/QT/partcfgdialog.h
Only for VirtualBox.
[Ventoy.git] / LinuxGUI / Ventoy2Disk / QT / partcfgdialog.h
1 #ifndef PARTCFGDIALOG_H
2 #define PARTCFGDIALOG_H
3
4 #include <QDialog>
5 #include <QJsonObject>
6
7 namespace Ui {
8 class PartCfgDialog;
9 }
10
11 class PartCfgDialog : public QDialog
12 {
13 Q_OBJECT
14
15 public:
16
17 bool reserve;
18 int unit;
19 bool align;
20 QString valuestr;
21 qint64 resvalue;
22
23 QString invalid_value;
24 QString err_title;
25 void update_ui_status();
26 void update_language_ui(QJsonObject &obj);
27
28 explicit PartCfgDialog(QWidget *parent = nullptr);
29 ~PartCfgDialog();
30
31 private slots:
32 void on_pushButtonOK_clicked();
33
34 void on_pushButtonCancel_clicked();
35
36 void on_checkBox_stateChanged(int arg1);
37
38 private:
39 Ui::PartCfgDialog *ui;
40 };
41
42 #define _LANG_STR(id) obj.value(id).toString()
43
44 #endif // PARTCFGDIALOG_H