source: ntrip/branches/BNC_2.11.0/src/bncwindow.h@ 6478

Last change on this file since 6478 was 5641, checked in by weber, 11 years ago

Raw stream output through TCP/IP port enabled

File size: 9.1 KB
Line 
1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters.
3//
4// Copyright (C) 2007
5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
7// Czech Technical University Prague, Department of Geodesy
8// http://www.fsv.cvut.cz
9//
10// Email: euref-ip@bkg.bund.de
11//
12// This program is free software; you can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation, version 2.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25#ifndef BNCWINDOW_H
26#define BNCWINDOW_H
27
28#include <QtGui>
29#include <QWhatsThis>
30
31#include "bncgetthread.h"
32#include "bnccaster.h"
33
34class bncAboutDlg : public QDialog {
35 Q_OBJECT
36 public:
37 bncAboutDlg(QWidget* parent);
38 ~bncAboutDlg();
39};
40
41class bncFlowchartDlg : public QDialog {
42 Q_OBJECT
43
44 public:
45 bncFlowchartDlg(QWidget* parent);
46 ~bncFlowchartDlg();
47};
48
49class bncFigure;
50class bncFigureLate;
51class bncFigurePPP;
52class bncBytesCounter;
53class bncEphUploadCaster;
54class qtFileChooser;
55class bncMapWin;
56class t_postProcessing;
57
58class bncWindow : public QMainWindow {
59 Q_OBJECT
60
61 public:
62 bncWindow();
63 ~bncWindow();
64 void CreateMenu();
65 void AddToolbar();
66
67 public slots:
68 void slotMountPointsRead(QList<bncGetThread*>);
69 void slotBncTextChanged();
70 void slotPostProgress(int);
71
72 private slots:
73 void slotWindowMessage(const QByteArray msg, bool showOnScreen);
74 void slotHelp();
75 void slotAbout();
76 void slotFlowchart();
77 void slotFontSel();
78 void slotSaveOptions();
79 void slotAddMountPoints();
80 void slotMapMountPoints();
81 void slotMapPPP();
82 void slotMapPPPClosed();
83 void slotStart();
84 void slotFinishedPostProcessingPPP();
85 void slotFinishedPostProcessingReqc();
86 void slotStop();
87 void slotNewMountPoints(QStringList* mountPoints);
88 void slotDeleteMountPoints();
89 void slotGetThreadsFinished();
90 void slotSelectionChanged();
91 void slotWhatsThis();
92 void slotAddCmbRow();
93 void slotDelCmbRow();
94 void slotAddUploadRow();
95 void slotDelUploadRow();
96 void slotSetUploadTrafo();
97 void slotReqcEditOption();
98
99 protected:
100 virtual void closeEvent(QCloseEvent *);
101
102 private:
103 void saveOptions();
104 void populateMountPointsTable();
105 void populateCmbTable();
106 void populateUploadTable();
107 void enableWidget(bool enable, QWidget* widget);
108 void startRealTime();
109 void startPostProcessingPPP();
110 void startPostProcessingReqc();
111 void enableStartStop();
112
113 QMenu* _menuHlp;
114 QMenu* _menuFile;
115
116 QAction* _actHelp;
117 QAction* _actAbout;
118 QAction* _actFlowchart;
119 QAction* _actFontSel;
120 QAction* _actSaveOpt;
121 QAction* _actQuit;
122 QAction* _actMapMountPoints;
123 QAction* _actStart;
124 QAction* _actStop;
125 QAction* _actAddMountPoints;
126 QAction* _actDeleteMountPoints;
127 QAction* _actwhatsthis;
128 QAction* _actwhatsthismenu;
129
130 QLineEdit* _proxyHostLineEdit;
131 QLineEdit* _proxyPortLineEdit;
132 QLineEdit* _mapWinDotSizeLineEdit;
133 QLineEdit* _sslCaCertPathLineEdit;
134 QCheckBox* _ignoreSslErrorsCheckBox;
135 QLineEdit* _outFileLineEdit;
136 QLineEdit* _outPortLineEdit;
137 QLineEdit* _outUPortLineEdit;
138 QLineEdit* _outEphPortLineEdit;
139 QLineEdit* _corrPortLineEdit;
140 QLineEdit* _rnxPathLineEdit;
141 QLineEdit* _ephPathLineEdit;
142 QLineEdit* _corrPathLineEdit;
143 QLineEdit* _miscMountLineEdit;
144 QLineEdit* _miscPortLineEdit;
145 QLineEdit* _pppMountLineEdit;
146 QLineEdit* _pppCorrMountLineEdit;
147 QLineEdit* _pppNMEALineEdit;
148 QLineEdit* _pppNMEAPortLineEdit;
149 QLineEdit* _pppSigCLineEdit;
150 QLineEdit* _pppSigPLineEdit;
151 QLineEdit* _pppSigCrd0;
152 QLineEdit* _pppSigCrdP;
153 QLineEdit* _pppSigTrp0;
154 QLineEdit* _pppSigTrpP;
155 QLineEdit* _pppSync;
156 QLineEdit* _pppAverageLineEdit;
157 QLineEdit* _pppQuickStartLineEdit;
158 QLineEdit* _pppMaxSolGapLineEdit;
159 QLineEdit* _pppAudioResponseLineEdit;
160 QLineEdit* _pppRefCrdXLineEdit;
161 QLineEdit* _pppRefCrdYLineEdit;
162 QLineEdit* _pppRefCrdZLineEdit;
163 QLineEdit* _pppRefdNLineEdit;
164 QLineEdit* _pppRefdELineEdit;
165 QLineEdit* _pppRefdULineEdit;
166 QCheckBox* _pppPlotCoordinates;
167 QCheckBox* _pppUsePhaseCheckBox;
168 QCheckBox* _pppEstTropoCheckBox;
169 QCheckBox* _pppGLONASSCheckBox;
170 QCheckBox* _pppGalileoCheckBox;
171 QLineEdit* _pppAntennaLineEdit;
172 qtFileChooser* _pppAntexFileChooser;
173
174 qtFileChooser* _postObsFileChooser;
175 qtFileChooser* _postNavFileChooser;
176 qtFileChooser* _postCorrFileChooser;
177 QLineEdit* _postOutLineEdit;
178
179 QComboBox* _reqcActionComboBox;
180 QPushButton* _reqcEditOptionButton;
181 qtFileChooser* _reqcObsFileChooser;
182 qtFileChooser* _reqcNavFileChooser;
183 QLineEdit* _reqcOutObsLineEdit;
184 QLineEdit* _reqcOutNavLineEdit;
185 QLineEdit* _reqcOutLogLineEdit;
186 QLineEdit* _reqcPlotDirLineEdit;
187 QComboBox* _reqcSkyPlotSystems;
188
189 QCheckBox* _rnxV3CheckBox;
190 QCheckBox* _ephV3CheckBox;
191 QLineEdit* _rnxSkelLineEdit;
192 QLineEdit* _rnxScrpLineEdit;
193 QLineEdit* _logFileLineEdit;
194 QLineEdit* _rawOutFileLineEdit;
195 QComboBox* _pppSPPComboBox;
196 QComboBox* _rnxIntrComboBox;
197 QComboBox* _ephIntrComboBox;
198 QComboBox* _corrIntrComboBox;
199 QSpinBox* _rnxSamplSpinBox;
200 QSpinBox* _binSamplSpinBox;
201 QCheckBox* _rnxAppendCheckBox;
202 QCheckBox* _autoStartCheckBox;
203 QCheckBox* _scanRTCMCheckBox;
204 QSpinBox* _waitTimeSpinBox;
205 QSpinBox* _corrTimeSpinBox;
206 QComboBox* _obsRateComboBox;
207 QSpinBox* _adviseFailSpinBox;
208 QSpinBox* _adviseRecoSpinBox;
209 QLineEdit* _adviseScriptLineEdit;
210 QComboBox* _perfIntrComboBox;
211 QTableWidget* _mountPointsTable;
212
213 QLineEdit* _serialPortNameLineEdit;
214 QLineEdit* _serialMountPointLineEdit;
215 QComboBox* _serialBaudRateComboBox;
216 QComboBox* _serialParityComboBox;
217 QComboBox* _serialDataBitsComboBox;
218 QComboBox* _serialStopBitsComboBox;
219 QComboBox* _serialFlowControlComboBox;
220 QLineEdit* _serialHeightNMEALineEdit;
221 QLineEdit* _serialFileNMEALineEdit;
222 QComboBox* _serialAutoNMEAComboBox;
223
224 QLineEdit* _LatLineEdit;
225 QLineEdit* _LonLineEdit;
226
227 QComboBox* _onTheFlyComboBox;
228
229 QTextEdit* _log;
230
231 QWidget* _canvas;
232 QTabWidget* _aogroup;
233
234 QTabWidget* _loggroup;
235 bncFigure* _bncFigure;
236 bncFigureLate* _bncFigureLate;
237 bncFigurePPP* _bncFigurePPP;
238
239 QTableWidget* _cmbTable;
240 QLineEdit* _cmbMaxresLineEdit;
241 QComboBox* _cmbMethodComboBox;
242 QSpinBox* _cmbSamplSpinBox;
243
244 QTableWidget* _uploadTable;
245 QComboBox* _uploadIntrComboBox;
246 QSpinBox* _uploadSamplRtcmEphCorrSpinBox;
247 QSpinBox* _uploadSamplSp3SpinBox;
248 QSpinBox* _uploadSamplClkRnxSpinBox;
249
250 QLineEdit* _uploadEphHostLineEdit;
251 QLineEdit* _uploadEphPortLineEdit;
252 QLineEdit* _uploadEphPasswordLineEdit;
253 QLineEdit* _uploadEphMountpointLineEdit;
254 QSpinBox* _uploadEphSampleSpinBox;
255 bncBytesCounter* _uploadEphBytesCounter;
256
257 bncCaster* _caster;
258
259 bncEphUploadCaster* _casterEph;
260
261 bool _realTimeRunning;
262 bool _runningRealTime;
263 bool _runningPostProcessingPPP;
264 bool _runningPostProcessingReqc;
265 t_postProcessing* _postProcessing;
266
267 QPushButton* _mapWinButton;
268 QRadioButton* _gmRadioButton;
269 QRadioButton* _osmRadioButton;
270 QComboBox* _mapWinDotColorComboBox;
271 QSlider* _mapSpeedSlider;
272 bncMapWin* _mapWin;
273 QList<bncGetThread*> _threads;
274
275#ifdef RTROVER_INTERFACE
276 QComboBox* _rtroverModeComboBox;
277 QLineEdit* _rtroverRoverMountLineEdit;
278 QLineEdit* _rtroverCorrMountLineEdit;
279 QLineEdit* _rtroverBaseMountLineEdit;
280 QLineEdit* _rtroverRoverRefCrdXLineEdit;
281 QLineEdit* _rtroverRoverRefCrdYLineEdit;
282 QLineEdit* _rtroverRoverRefCrdZLineEdit;
283 QLineEdit* _rtroverBaseRefCrdXLineEdit;
284 QLineEdit* _rtroverBaseRefCrdYLineEdit;
285 QLineEdit* _rtroverBaseCrdZLineEdit;
286 QLineEdit* _rtroverRoverDNLineEdit;
287 QLineEdit* _rtroverRoverDELineEdit;
288 QLineEdit* _rtroverRoverDULineEdit;
289 QLineEdit* _rtroverBaseDNLineEdit;
290 QLineEdit* _rtroverBaseDELineEdit;
291 QLineEdit* _rtroverBaseDULineEdit;
292 QLineEdit* _rtroverRoverAntennaLineEdit;
293 QLineEdit* _rtroverBaseAntennaLineEdit;
294 qtFileChooser* _rtroverAntexFileChooser;
295 QLineEdit* _rtroverOutputLineEdit;
296#endif
297};
298
299#ifdef GNSSCENTER_PLUGIN
300#include "plugininterface.h"
301class t_bncFactory : public QObject, public GnssCenter::t_pluginFactoryInterface {
302 Q_OBJECT
303 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
304 public:
305 virtual QWidget* create() {return new bncWindow();}
306 virtual QString getName() const {return QString("BNC");}
307};
308#endif
309
310#endif
Note: See TracBrowser for help on using the repository browser.