mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-06-05 01:04:20 -04:00
Add QT GUI install program
This commit is contained in:
parent
dd2411d7d4
commit
d148139227
61 changed files with 6850 additions and 75 deletions
44
LinuxGUI/Ventoy2Disk/QT/partcfgdialog.h
Normal file
44
LinuxGUI/Ventoy2Disk/QT/partcfgdialog.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
#ifndef PARTCFGDIALOG_H
|
||||
#define PARTCFGDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QJsonObject>
|
||||
|
||||
namespace Ui {
|
||||
class PartCfgDialog;
|
||||
}
|
||||
|
||||
class PartCfgDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
bool reserve;
|
||||
int unit;
|
||||
bool align;
|
||||
QString valuestr;
|
||||
qint64 resvalue;
|
||||
|
||||
QString invalid_value;
|
||||
QString err_title;
|
||||
void update_ui_status();
|
||||
void update_language_ui(QJsonObject &obj);
|
||||
|
||||
explicit PartCfgDialog(QWidget *parent = nullptr);
|
||||
~PartCfgDialog();
|
||||
|
||||
private slots:
|
||||
void on_pushButtonOK_clicked();
|
||||
|
||||
void on_pushButtonCancel_clicked();
|
||||
|
||||
void on_checkBox_stateChanged(int arg1);
|
||||
|
||||
private:
|
||||
Ui::PartCfgDialog *ui;
|
||||
};
|
||||
|
||||
#define _LANG_STR(id) obj.value(id).toString()
|
||||
|
||||
#endif // PARTCFGDIALOG_H
|
Loading…
Add table
Add a link
Reference in a new issue