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 NEW_PAGE_H
#define NEW_PAGE_H
 
#include <QDialog>
#include "Common/custom.h"
#include "custom_lineedit.h"
#include "Common/app_define.h"
#include "Common/work_thread.h"
#include "Common/classxml.h"
#include "IMEKeyBoard/syszuxpinyin.h"
#include "IMEKeyBoard/keyboard_num.h"
#include "Common/mymessagebox.h"
 
namespace Ui {
class New_Page;
}
 
class New_Page : public customDialog
{
    Q_OBJECT
    
public:
    explicit New_Page(QWidget *parent = 0, Work_Thread *thread = 0);
    ~New_Page();
    
private:
    Ui::New_Page *ui;
    Work_Thread *work_thread;
 
public:
    QString batteryName;
    TEST_PARAM_XML test_param_xml;
 
private:
    void setBatteryInfo();
    bool setEditInput(Custom_LineEdit *edit, int space,
        float min, float max, int floatNum, int type);
    void setTimeInput(Custom_LineEdit *edit,int space);
 //  void setTimeInput(Custom_LineEdit *edit, int pos, quint16 *param_data);
 
    bool checkTimeText(QString time);
 
    void popBox(QString msg);
    void initpage();
 
private slots:
    void CustomEditSlot();
    void NewBtnSlot();
};
 
#endif // NEW_PAGE_H