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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#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