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
46
47
48
49
| #ifndef KEYBOARD_NUM_H
| #define KEYBOARD_NUM_H
|
| #include <QDialog>
| #include <QLineEdit>
| #include "CustomClass/custom_dialog.h"
|
| namespace Ui {
| class keyboard_num;
| }
|
| #define INPUT_DATA 0
| #define INPUT_TIME 1
| #define INPUT_DATE 2
| #define INPUT_INT 3
| #define INPUT_PW 4
|
| typedef struct _data_keyboard_return_
| {
| bool If_OK;
| QString set_text;
| }DATA_KB_RTN;
|
|
| class KeyBoard_Num : public custom_dialog
| {
| Q_OBJECT
|
| public:
| explicit KeyBoard_Num(QWidget *parent = 0,const quint8 type = 0,const QString &text = 0);
| ~KeyBoard_Num();
|
| private:
| Ui::keyboard_num *ui;
| DATA_KB_RTN data_kb;
|
| QString EditString;
|
| public:
| DATA_KB_RTN get_kb_data();
| bool execKeyboard();
| void closeKeyboard();
|
| private slots:
| void num_key_released();
| void function_key_released();
| };
|
| #endif // KEYBOARD_NUM_H
|
|