forked from ic005k/OCAuxiliaryTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dlgnewkeyfield.h
45 lines (38 loc) · 1.42 KB
/
dlgnewkeyfield.h
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
45
#ifndef DLGNEWKEYFIELD_H
#define DLGNEWKEYFIELD_H
#include <QDialog>
#include <QFrame>
#include <QInputDialog>
#include <QRegularExpression>
#include <QWidget>
namespace Ui {
class dlgNewKeyField;
}
class dlgNewKeyField : public QDialog {
Q_OBJECT
public:
explicit dlgNewKeyField(QWidget* parent = nullptr);
~dlgNewKeyField();
Ui::dlgNewKeyField* ui;
static void saveNewKey(QString ObjectName, int main, int sub);
static void readNewKey(QWidget* tab, QString Key);
static QLineEdit* add_LineEdit(QWidget* tab, QString ObjectName,
QString text);
static void add_CheckBox(QWidget* tab, QString ObjectName, QString text);
static QStringList getAllNewKey();
static QList<int> getKeyMainSub(QString Key);
static QStringList check_SampleFile(QVariantMap mapTatol, QWidget* tab,
QString MainName, QString SubName);
static QStringList get_KeyTypeValue(QVariantMap mapTatol, QString MainName,
QString SubName);
static QWidgetList get_AllLabelList(QWidget* tab);
static QString get_WidgetText(QWidget* w);
static void set_BtnHide(QWidget* tab, QString Key);
private slots:
void on_btnAdd_clicked();
private:
static void removeKey(QString ObjectName);
static void set_WidgetHide(QWidgetList listOCATWidget, QString Key);
static void set_LblHide(QWidget* tab, QString Key);
};
#endif // DLGNEWKEYFIELD_H