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
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef CHOOSE_PAGE_H
#define CHOOSE_PAGE_H
 
#include <QDialog>
#include "Common/custom.h"
#include "Common/filemanage.h"
#include "Common/work_thread.h"
#include "custom_lineedit.h"
#include "new_page.h"
#include "IMEKeyBoard/keyboard_num.h"
#include <QTimer>
#include <QDateTime>
 
namespace Ui {
class Choose_Page;
}
 
class Choose_Page : public customDialog
{
    Q_OBJECT
    
public:
    explicit Choose_Page(QWidget *parent = 0, Work_Thread *thread = 0);
    ~Choose_Page();
    
private:
    Ui::Choose_Page *ui;
 
    QPushButton *listBattery[7];
 
    FileManage fileManage;
    Work_Thread *work_thread;
    QTimer *getDataTimer;
    New_Page *new_page;
 
private:
    bool one_sub_window_exist;
    QString batteryName;
    TEST_PARAM_XML test_param_xml;
    QStringList batteryList;    //电池组列表
    int batteryNum;             //电池组总数
    int currentPageIndex;       //当前页索引(每页7条数据)
    int pageNum;                //总页数
 
private:
    void initListBattery();
    void initBatteryBtn();
    void setBatteryBtnColor(QPushButton *pushButton);
    void setBatteryInfo(QString batteryName);
    void renewErrorBatteryParam(QString batteryName);
    void updateChoosePage();
 
    bool setEditInput(Custom_LineEdit *edit,int space,
        float min,float max,int floatNum);
 
private slots:
    void IconTimeSlot();
    void ChooseBatterySlot();
    void ChooseBtnSlot();
    void CustomEditSlot();
    void UpdateInterface(int);
};
 
#endif // CHOOSE_PAGE_H