whyclwt
2022-05-18 ab72c6e114d7c4e83564194367ba623ca23bf09d
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
#ifndef ADJUST_PAGE_H
#define ADJUST_PAGE_H
 
#include <QDialog>
#include "CustomClass/custom_dialog.h"
#include "WorkThread/work_thread.h"
#include "Common/app_define.h"
#include "custom_lineedit.h"
#include "CustomClass/mymessagebox.h"
 
 
 
namespace Ui {
class Adjust_Page;
}
 
class Adjust_Page : public custom_dialog
{
    Q_OBJECT
    
public:
    Adjust_Page(QWidget *parent = 0,Work_Thread *thread = 0);
    ~Adjust_Page();
 
    void showAdjustPage(void);
    
private:
    Ui::Adjust_Page *ui;
    Work_Thread *work_thread;
 
    QTimer *timer_500ms;
 
    TEST_PARAM testParam;
 
    qint32 now_value1;
    qint32 adj_value1;
    qint32 now_value2;
    qint32 adj_value2;
 
    bool paramEdited;
 
    quint8 cmdExecState;
 
    quint8 stateCnt;
 
    void setEditInput(Custom_LineEdit *edit, QLabel *lable, float min, float max, int floatNum);
    void setEditInputEx(Custom_LineEdit *edit, QLabel *lable, float min, float max, int floatNum);
 
    void popBox(QString msg);
 
    void getTestParam(const quint8 adjst);
 
    void closeAdjustPage(void);
 
    void updateAdjParamRead(void);
 
    int adjStartErrorCheck(const quint8 st);
 
 
private slots:
    void BtnReleased();
    void leditAction(void);
    void DSP_UpdateSlot();
 
    void TabChanged(int index);
 
    void recvCMD_Result(int);
};
 
#endif // ADJUST_PAGE_H