source: ntrip/trunk/BNS/bnswindow.h@ 6653

Last change on this file since 6653 was 2349, checked in by weber, 15 years ago

* empty log message *

File size: 4.7 KB
Line 
1#ifndef BNSWINDOW_H
2#define BNSWINDOW_H
3
4#include <QtGui>
5#include <QWhatsThis>
6#include <QMessageBox>
7
8#include "bns.h"
9
10class bnsAboutDlg : public QDialog {
11 Q_OBJECT
12 public:
13 bnsAboutDlg(QWidget* parent);
14 ~bnsAboutDlg();
15};
16
17class bnsFlowchartDlg : public QDialog {
18 Q_OBJECT
19
20 public:
21 bnsFlowchartDlg(QWidget* parent);
22 ~bnsFlowchartDlg();
23};
24
25class bnsWindow : public QMainWindow {
26Q_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 slotBnsTextChanged();
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 void slotOutBytes4(int nBytes);
53 void slotOutBytes5(int nBytes);
54 void slotOutBytes6(int nBytes);
55 void slotOutEphBytes(int nBytes);
56
57 protected:
58 virtual void closeEvent(QCloseEvent *);
59
60 private:
61 void CreateMenu();
62 void AddToolbar();
63 void deleteBns();
64 void updateStatus(int ii, int nBytes);
65
66 QMenu* _menuHlp;
67 QMenu* _menuFile;
68
69 QAction* _actHelp;
70 QAction* _actAbout;
71 QAction* _actFlowchart;
72 QAction* _actFontSel;
73 QAction* _actSaveOpt;
74 QAction* _actQuit;
75 QAction* _actWhatsThis;
76 QAction* _actStart;
77 QAction* _actStop;
78
79 QWidget* _canvas;
80
81 QLineEdit* _proxyHostLineEdit;
82 QLineEdit* _proxyPortLineEdit;
83
84 QLineEdit* _logFileLineEdit;
85 QCheckBox* _fileAppendCheckBox;
86 QCheckBox* _autoStartCheckBox;
87
88 QLineEdit* _ephHostLineEdit;
89 QLineEdit* _ephPortLineEdit;
90 QLineEdit* _ephEchoLineEdit;
91
92 QLineEdit* _clkPortLineEdit;
93 QLineEdit* _inpEchoLineEdit;
94
95 QLineEdit* _outHost_1_LineEdit;
96 QLineEdit* _outPort_1_LineEdit;
97 QLineEdit* _mountpoint_1_LineEdit;
98 QLineEdit* _password_1_LineEdit;
99 QComboBox* _refSys_1_ComboBox;
100 QLineEdit* _outFile_1_LineEdit;
101 QCheckBox* _CoM_1_CheckBox;
102
103 QLineEdit* _outHost_2_LineEdit;
104 QLineEdit* _outPort_2_LineEdit;
105 QLineEdit* _mountpoint_2_LineEdit;
106 QLineEdit* _password_2_LineEdit;
107 QComboBox* _refSys_2_ComboBox;
108 QLineEdit* _outFile_2_LineEdit;
109 QCheckBox* _CoM_2_CheckBox;
110
111 QLineEdit* _outHost_3_LineEdit;
112 QLineEdit* _outPort_3_LineEdit;
113 QLineEdit* _mountpoint_3_LineEdit;
114 QLineEdit* _password_3_LineEdit;
115 QComboBox* _refSys_3_ComboBox;
116 QLineEdit* _outFile_3_LineEdit;
117 QCheckBox* _CoM_3_CheckBox;
118
119 QLineEdit* _outHost_4_LineEdit;
120 QLineEdit* _outPort_4_LineEdit;
121 QLineEdit* _mountpoint_4_LineEdit;
122 QLineEdit* _password_4_LineEdit;
123 QComboBox* _refSys_4_ComboBox;
124 QLineEdit* _outFile_4_LineEdit;
125 QCheckBox* _CoM_4_CheckBox;
126
127 QLineEdit* _outHost_5_LineEdit;
128 QLineEdit* _outPort_5_LineEdit;
129 QLineEdit* _mountpoint_5_LineEdit;
130 QLineEdit* _password_5_LineEdit;
131 QComboBox* _refSys_5_ComboBox;
132 QLineEdit* _outFile_5_LineEdit;
133 QCheckBox* _CoM_5_CheckBox;
134
135 QLineEdit* _outHost_6_LineEdit;
136 QLineEdit* _outPort_6_LineEdit;
137 QLineEdit* _mountpoint_6_LineEdit;
138 QLineEdit* _password_6_LineEdit;
139 QComboBox* _refSys_6_ComboBox;
140 QLineEdit* _outFile_6_LineEdit;
141 QCheckBox* _CoM_6_CheckBox;
142
143 QLineEdit* _outHost_7_LineEdit;
144 QLineEdit* _outPort_7_LineEdit;
145 QLineEdit* _mountpoint_7_LineEdit;
146 QLineEdit* _password_7_LineEdit;
147 QComboBox* _refSys_7_ComboBox;
148 QLineEdit* _outFile_7_LineEdit;
149 QCheckBox* _CoM_7_CheckBox;
150
151 QLineEdit* _outHost_8_LineEdit;
152 QLineEdit* _outPort_8_LineEdit;
153 QLineEdit* _mountpoint_8_LineEdit;
154 QLineEdit* _password_8_LineEdit;
155 QComboBox* _refSys_8_ComboBox;
156 QLineEdit* _outFile_8_LineEdit;
157 QCheckBox* _CoM_8_CheckBox;
158
159 QLineEdit* _outHost_9_LineEdit;
160 QLineEdit* _outPort_9_LineEdit;
161 QLineEdit* _mountpoint_9_LineEdit;
162 QLineEdit* _password_9_LineEdit;
163 QComboBox* _refSys_9_ComboBox;
164 QLineEdit* _outFile_9_LineEdit;
165 QCheckBox* _CoM_9_CheckBox;
166
167 QLineEdit* _outHost_10_LineEdit;
168 QLineEdit* _outPort_10_LineEdit;
169 QLineEdit* _mountpoint_10_LineEdit;
170 QLineEdit* _password_10_LineEdit;
171 QComboBox* _refSys_10_ComboBox;
172 QLineEdit* _outFile_10_LineEdit;
173 QCheckBox* _CoM_10_CheckBox;
174
175 QLineEdit* _outHost_Eph_LineEdit;
176 QLineEdit* _outPort_Eph_LineEdit;
177 QLineEdit* _mountpoint_Eph_LineEdit;
178 QLineEdit* _password_Eph_LineEdit;
179 QSpinBox* _samplEphSpinBox;
180
181 QLineEdit* _rnxPathLineEdit;
182 QComboBox* _rnxIntrComboBox;
183 QSpinBox* _rnxSamplSpinBox;
184
185 QLineEdit* _sp3PathLineEdit;
186 QComboBox* _sp3IntrComboBox;
187 QSpinBox* _sp3SamplSpinBox;
188
189 QTextEdit* _log;
190
191 QTabWidget* tabs;
192//QWidget* _status;
193 QGroupBox* _status;
194 QLabel* _statusLbl[26];
195 double _statusCnt[13];
196 QMutex _mutex;
197
198 t_bns* _bns;
199};
200#endif
Note: See TracBrowser for help on using the repository browser.