#ifndef ADJUST_PAGE_H
|
#define ADJUST_PAGE_H
|
#include "Common/work_thread.h"
|
#include "Common/custom.h"
|
#include "custom_lineedit.h"
|
typedef struct _adj_mon_
|
{
|
quint16 NowAddr;
|
quint16 NowFre;
|
quint16 AdjAddr;
|
quint16 AdjFre;
|
|
quint16 AddrLength;
|
quint16 historyAddr[75];
|
}ADJ_MON;
|
|
|
|
namespace Ui {
|
class Adjust_Page;
|
}
|
|
class Adjust_Page : public customDialog
|
{
|
Q_OBJECT
|
|
public:
|
explicit Adjust_Page(QWidget *parent = 0,Work_Thread *thread = 0);
|
~Adjust_Page();
|
|
private:
|
Ui::Adjust_Page *ui;
|
|
Work_Thread *work_thread;
|
QTimer *timer;
|
|
ADJ_PARAM_XML adjParam;
|
ADJ_PARAM_XML adjParamNew;
|
|
bool intCurrInput;
|
bool extCurrInput;
|
bool onlineVolInput;
|
bool groupVolInput;
|
double intCurrSlope;
|
double extCurrSlope;
|
double onlineVolSlope;
|
double groupVolSlope;
|
quint8 work_type;
|
quint16 monomerAdjIndex;
|
quint16 monomerAdjVol;
|
bool monomerDataUpdate;
|
void DspMonomerData(void);
|
void popBox(QString msg);
|
|
void initpage();
|
quint16 onlvolZero;
|
quint16 onlvolslope;
|
quint16 grpvolZero;
|
quint16 grpvolslope;
|
quint16 discur;
|
quint16 discurzero;
|
quint16 discurslope;
|
|
quint16 chrcur;
|
quint16 chrcurzero;
|
quint16 chrcurslope;
|
|
quint16 Ecurzero;
|
quint16 Ecurslope;
|
bool IF_NewDis;
|
bool IF_NewChr;
|
|
bool IF_Duplicate; //地址重复
|
ADJ_MON monAdj;
|
LOCAL_DATA commData1;
|
int tmpfre;
|
quint16 GroupVolOffset;
|
quint16 OnLineVolOffset;
|
bool showifwrite;
|
|
bool setEditInput(Custom_LineEdit *edit,
|
int pos, float min, float max, int floatNum, quint16 *param_data =0);
|
bool setEditInput2(Custom_LineEdit *edit,int pos, float min, float max, int floatNum);
|
void ShowMonData(void);
|
bool AddrIsUsed(const quint16 Addr);
|
void SaveAddrData(void);
|
|
void UpdateDataShow(void);
|
|
|
signals:
|
void SendAdjParam(ADJ_PARAM_XML);
|
void SendCurrAdjCMD(int,int);
|
void SendPowerCtrlCMD(int,QString);
|
void SendAdjCmd(int,quint16);
|
void setMonAddrandFre(int,quint16,quint16);
|
private slots:
|
void BtnReleased(void);
|
void AdjPageData(void);
|
void leditAction(void);
|
void DischargeWaitF1();
|
void ChargeWaitF1();
|
void RecvAddrFreResult(int type,int result);
|
void tabwidget_2currentChanged(int);
|
void on_tabWidget_currentChanged(int index);
|
};
|
|
#endif // ADJUST_PAGE_H
|