Ubuntu12.04.4_lts
2023-08-01 961efe36f62f7eba688d504ec0cdf3e1daa4dd74
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
50
51
#ifndef KEYBOARD_NUM_H
#define KEYBOARD_NUM_H
 
#include <QDialog>
#include <QLineEdit>
#include "Common/custom.h"
#include "Common/work_thread.h"
 
namespace Ui {
class keyboard_num;
}
 
#define INPUT_DATA      0
#define INPUT_TIME      1
#define INPUT_DATE      2
#define INPUT_ALLNO     3
#define INPUT_PW        4
 
typedef struct _data_keyboard_return_
{
    bool If_OK;
    QString set_text;
}DATA_KB_RTN;
 
class KeyBoard_Num : public customDialog
{
    Q_OBJECT
 
public:
    explicit KeyBoard_Num(QWidget *parent = 0,const quint8 type = 0,
         Work_Thread *thread = 0);
    ~KeyBoard_Num();
 
private:
    Ui::keyboard_num *ui;
    DATA_KB_RTN data_kb;
    Work_Thread *work_thread;
    QString EditString;
 
public:
    DATA_KB_RTN get_kb_data();
    bool execKeyboard();
    void closeKeyboard(bool accepted);
 
private slots:
    void num_key_released();
    void function_key_released();
    void UpdateInterface(int interface);
};
 
#endif // KEYBOARD_NUM_H