#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
|