partcfgdialog.h 743 Bytes
Newer Older
longpanda's avatar
longpanda committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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