1 | #ifndef BNSWINDOW_H
|
---|
2 | #define BNSWINDOW_H
|
---|
3 |
|
---|
4 | #include <QtGui>
|
---|
5 | #include <QWhatsThis>
|
---|
6 | #include <QMessageBox>
|
---|
7 |
|
---|
8 | #include "bns.h"
|
---|
9 |
|
---|
10 | class bnsAboutDlg : public QDialog {
|
---|
11 | Q_OBJECT
|
---|
12 | public:
|
---|
13 | bnsAboutDlg(QWidget* parent);
|
---|
14 | ~bnsAboutDlg();
|
---|
15 | };
|
---|
16 |
|
---|
17 | class bnsFlowchartDlg : public QDialog {
|
---|
18 | Q_OBJECT
|
---|
19 |
|
---|
20 | public:
|
---|
21 | bnsFlowchartDlg(QWidget* parent);
|
---|
22 | ~bnsFlowchartDlg();
|
---|
23 | };
|
---|
24 |
|
---|
25 | class bnsWindow : public QMainWindow {
|
---|
26 | Q_OBJECT
|
---|
27 |
|
---|
28 | public:
|
---|
29 | bnsWindow();
|
---|
30 | ~bnsWindow();
|
---|
31 |
|
---|
32 | public slots:
|
---|
33 | void slotMessage(const QByteArray msg);
|
---|
34 | void slotError(const QByteArray msg);
|
---|
35 | void bnsText(const QString &text);
|
---|
36 | void customTrafo(const QString &text);
|
---|
37 |
|
---|
38 | private slots:
|
---|
39 | void slotHelp();
|
---|
40 | void slotAbout();
|
---|
41 | void slotFlowchart();
|
---|
42 | void slotFontSel();
|
---|
43 | void slotSaveOptions();
|
---|
44 | void slotWhatsThis();
|
---|
45 | void slotStart();
|
---|
46 | void slotStop();
|
---|
47 | void slotEphBytes(int nBytes);
|
---|
48 | void slotClkBytes(int nBytes);
|
---|
49 | void slotOutBytes1(int nBytes);
|
---|
50 | void slotOutBytes2(int nBytes);
|
---|
51 | void slotOutBytes3(int nBytes);
|
---|
52 |
|
---|
53 | protected:
|
---|
54 | virtual void closeEvent(QCloseEvent *);
|
---|
55 |
|
---|
56 | private:
|
---|
57 | void CreateMenu();
|
---|
58 | void AddToolbar();
|
---|
59 | void deleteBns();
|
---|
60 | void updateStatus(int ii, int nBytes);
|
---|
61 |
|
---|
62 | QMenu* _menuHlp;
|
---|
63 | QMenu* _menuFile;
|
---|
64 |
|
---|
65 | QAction* _actHelp;
|
---|
66 | QAction* _actAbout;
|
---|
67 | QAction* _actFlowchart;
|
---|
68 | QAction* _actFontSel;
|
---|
69 | QAction* _actSaveOpt;
|
---|
70 | QAction* _actQuit;
|
---|
71 | QAction* _actWhatsThis;
|
---|
72 | QAction* _actStart;
|
---|
73 | QAction* _actStop;
|
---|
74 |
|
---|
75 | QWidget* _canvas;
|
---|
76 |
|
---|
77 | QLineEdit* _proxyHostLineEdit;
|
---|
78 | QLineEdit* _proxyPortLineEdit;
|
---|
79 |
|
---|
80 | QLineEdit* _logFileLineEdit;
|
---|
81 | QCheckBox* _fileAppendCheckBox;
|
---|
82 | QCheckBox* _autoStartCheckBox;
|
---|
83 |
|
---|
84 | QLineEdit* _ephHostLineEdit;
|
---|
85 | QLineEdit* _ephPortLineEdit;
|
---|
86 | QLineEdit* _ephEchoLineEdit;
|
---|
87 |
|
---|
88 | QLineEdit* _clkPortLineEdit;
|
---|
89 | QLineEdit* _inpEchoLineEdit;
|
---|
90 |
|
---|
91 | QLineEdit* _outHost_1_LineEdit;
|
---|
92 | QLineEdit* _outPort_1_LineEdit;
|
---|
93 | QLineEdit* _mountpoint_1_LineEdit;
|
---|
94 | QLineEdit* _password_1_LineEdit;
|
---|
95 | QComboBox* _refSys_1_ComboBox;
|
---|
96 | QLineEdit* _outFile_1_LineEdit;
|
---|
97 | QCheckBox* _beClocks1CheckBox;
|
---|
98 |
|
---|
99 | QLineEdit* _outHost_2_LineEdit;
|
---|
100 | QLineEdit* _outPort_2_LineEdit;
|
---|
101 | QLineEdit* _mountpoint_2_LineEdit;
|
---|
102 | QLineEdit* _password_2_LineEdit;
|
---|
103 | QComboBox* _refSys_2_ComboBox;
|
---|
104 | QLineEdit* _outFile_2_LineEdit;
|
---|
105 | QCheckBox* _beClocks2CheckBox;
|
---|
106 |
|
---|
107 | QLineEdit* _outHost_3_LineEdit;
|
---|
108 | QLineEdit* _outPort_3_LineEdit;
|
---|
109 | QLineEdit* _mountpoint_3_LineEdit;
|
---|
110 | QLineEdit* _password_3_LineEdit;
|
---|
111 | QComboBox* _refSys_3_ComboBox;
|
---|
112 | QLineEdit* _outFile_3_LineEdit;
|
---|
113 | QCheckBox* _beClocks3CheckBox;
|
---|
114 |
|
---|
115 | QLineEdit* _rnxPathLineEdit;
|
---|
116 | QComboBox* _rnxIntrComboBox;
|
---|
117 | QSpinBox* _rnxSamplSpinBox;
|
---|
118 |
|
---|
119 | QLineEdit* _sp3PathLineEdit;
|
---|
120 | QComboBox* _sp3IntrComboBox;
|
---|
121 | QSpinBox* _sp3SamplSpinBox;
|
---|
122 |
|
---|
123 | QTextEdit* _log;
|
---|
124 |
|
---|
125 | QTabWidget* tabs;
|
---|
126 | //QWidget* _status;
|
---|
127 | QGroupBox* _status;
|
---|
128 | QLabel* _statusLbl[10];
|
---|
129 | double _statusCnt[5];
|
---|
130 | QMutex _mutex;
|
---|
131 |
|
---|
132 | t_bns* _bns;
|
---|
133 | };
|
---|
134 | #endif
|
---|