/
toktservext.h
65 lines (52 loc) · 1.35 KB
/
toktservext.h
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
#ifndef TOKTSERVEXT_H
#define TOKTSERVEXT_H
#include "toktservregsetup.h"
class TOktServExt : public TOktServ
{
Q_OBJECT
public:
TOktServExt(QGroupBox *PortSettings_GroupBox = 0
#if !defined(Q_OS_WIN)
, const char *port_name="ttySP1"
#endif
, QLabel *RegState_Label=NULL
);
QMainWindow *OscList_MainWindow;
QMainWindow *ParametersView_MainWindow;
TOscService *OscService;
static QPixmap *wait_qp[4];
static QMainWindow *RegSetup_MainWindow;
static xTabWidget *RegSetup_tabWidget;
QWidget *RegSetup_Tab;
static QMainWindow *GetBlocksID_MainWindow;
static xTabWidget *GetBlocksID_tabWidget;
QWidget *GetBlocksID_Tab;
TOktServRegSetup *RegSetup_GetBlocksID;
QString Name;
bool Master;//Ведущий
void StartStop(bool);
void Retranslate();
QLabel *RegState_Label;
int server_index;
void *okt_serv_other;
bool FirstDataAsquired;
Q_SIGNALS:
void DataProcessLocal(TOscDataWithIndic &, TOscDataWithIndic &, TOktServExt *, int, bool);
private slots:
void GetDataOktServ(TOscDataWithIndic &od);
void CatchError();
public slots:
void RegSetup_CloseSlotExternal()
{
RegSetup_MainWindow->close();
}
void GetBlocksID_CloseSlotExternal()
{
GetBlocksID_MainWindow->close();
}
private:
TOscDataWithIndic previous_od;
int PktCntPrescale;
static int server_count;
};
#endif // TOKTSERVEXT_H