source: ntrip/trunk/BNC/src/bncwindow.h@ 5249

Last change on this file since 5249 was 5235, checked in by mervart, 11 years ago
File size: 9.0 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* _sslCaCertPathLineEdit;
133 QCheckBox* _ignoreSslErrorsCheckBox;
134 QLineEdit* _outFileLineEdit;
135 QLineEdit* _outPortLineEdit;
136 QLineEdit* _outUPortLineEdit;
137 QLineEdit* _outEphPortLineEdit;
138 QLineEdit* _corrPortLineEdit;
139 QLineEdit* _rnxPathLineEdit;
140 QLineEdit* _ephPathLineEdit;
141 QLineEdit* _corrPathLineEdit;
142 QLineEdit* _miscMountLineEdit;
143 QLineEdit* _pppMountLineEdit;
144 QLineEdit* _pppCorrMountLineEdit;
145 QLineEdit* _pppNMEALineEdit;
146 QLineEdit* _pppNMEAPortLineEdit;
147 QLineEdit* _pppSigCLineEdit;
148 QLineEdit* _pppSigPLineEdit;
149 QLineEdit* _pppSigCrd0;
150 QLineEdit* _pppSigCrdP;
151 QLineEdit* _pppSigTrp0;
152 QLineEdit* _pppSigTrpP;
153 QLineEdit* _pppSync;
154 QLineEdit* _pppAverageLineEdit;
155 QLineEdit* _pppQuickStartLineEdit;
156 QLineEdit* _pppMaxSolGapLineEdit;
157 QLineEdit* _pppAudioResponseLineEdit;
158 QLineEdit* _pppRefCrdXLineEdit;
159 QLineEdit* _pppRefCrdYLineEdit;
160 QLineEdit* _pppRefCrdZLineEdit;
161 QLineEdit* _pppRefdNLineEdit;
162 QLineEdit* _pppRefdELineEdit;
163 QLineEdit* _pppRefdULineEdit;
164 QCheckBox* _pppPlotCoordinates;
165 QCheckBox* _pppUsePhaseCheckBox;
166 QCheckBox* _pppEstTropoCheckBox;
167 QCheckBox* _pppGLONASSCheckBox;
168 QCheckBox* _pppGalileoCheckBox;
169 QLineEdit* _pppAntennaLineEdit;
170 qtFileChooser* _pppAntexFileChooser;
171
172 qtFileChooser* _postObsFileChooser;
173 qtFileChooser* _postNavFileChooser;
174 qtFileChooser* _postCorrFileChooser;
175 QLineEdit* _postOutLineEdit;
176
177 QComboBox* _reqcActionComboBox;
178 QPushButton* _reqcEditOptionButton;
179 qtFileChooser* _reqcObsFileChooser;
180 qtFileChooser* _reqcNavFileChooser;
181 QLineEdit* _reqcOutObsLineEdit;
182 QLineEdit* _reqcOutNavLineEdit;
183 QLineEdit* _reqcOutLogLineEdit;
184 QLineEdit* _reqcPlotDirLineEdit;
185 QComboBox* _reqcSkyPlotSystems;
186
187 QCheckBox* _rnxV3CheckBox;
188 QCheckBox* _ephV3CheckBox;
189 QLineEdit* _rnxSkelLineEdit;
190 QLineEdit* _rnxScrpLineEdit;
191 QLineEdit* _logFileLineEdit;
192 QLineEdit* _rawOutFileLineEdit;
193 QComboBox* _pppSPPComboBox;
194 QComboBox* _rnxIntrComboBox;
195 QComboBox* _ephIntrComboBox;
196 QComboBox* _corrIntrComboBox;
197 QSpinBox* _rnxSamplSpinBox;
198 QSpinBox* _binSamplSpinBox;
199 QCheckBox* _rnxAppendCheckBox;
200 QCheckBox* _autoStartCheckBox;
201 QCheckBox* _scanRTCMCheckBox;
202 QSpinBox* _waitTimeSpinBox;
203 QSpinBox* _corrTimeSpinBox;
204 QComboBox* _obsRateComboBox;
205 QSpinBox* _adviseFailSpinBox;
206 QSpinBox* _adviseRecoSpinBox;
207 QLineEdit* _adviseScriptLineEdit;
208 QComboBox* _perfIntrComboBox;
209 QTableWidget* _mountPointsTable;
210
211 QLineEdit* _serialPortNameLineEdit;
212 QLineEdit* _serialMountPointLineEdit;
213 QComboBox* _serialBaudRateComboBox;
214 QComboBox* _serialParityComboBox;
215 QComboBox* _serialDataBitsComboBox;
216 QComboBox* _serialStopBitsComboBox;
217 QComboBox* _serialFlowControlComboBox;
218 QLineEdit* _serialHeightNMEALineEdit;
219 QLineEdit* _serialFileNMEALineEdit;
220 QComboBox* _serialAutoNMEAComboBox;
221
222 QLineEdit* _LatLineEdit;
223 QLineEdit* _LonLineEdit;
224
225 QComboBox* _onTheFlyComboBox;
226
227 QTextEdit* _log;
228
229 QWidget* _canvas;
230 QTabWidget* _aogroup;
231
232 QTabWidget* _loggroup;
233 bncFigure* _bncFigure;
234 bncFigureLate* _bncFigureLate;
235 bncFigurePPP* _bncFigurePPP;
236
237 QTableWidget* _cmbTable;
238 QLineEdit* _cmbMaxresLineEdit;
239 QComboBox* _cmbMethodComboBox;
240 QSpinBox* _cmbSamplSpinBox;
241
242 QTableWidget* _uploadTable;
243 QComboBox* _uploadIntrComboBox;
244 QSpinBox* _uploadSamplRtcmEphCorrSpinBox;
245 QSpinBox* _uploadSamplSp3SpinBox;
246 QSpinBox* _uploadSamplClkRnxSpinBox;
247
248 QLineEdit* _uploadEphHostLineEdit;
249 QLineEdit* _uploadEphPortLineEdit;
250 QLineEdit* _uploadEphPasswordLineEdit;
251 QLineEdit* _uploadEphMountpointLineEdit;
252 QSpinBox* _uploadEphSampleSpinBox;
253 bncBytesCounter* _uploadEphBytesCounter;
254
255 bncCaster* _caster;
256
257 bncEphUploadCaster* _casterEph;
258
259 bool _realTimeRunning;
260 bool _runningRealTime;
261 bool _runningPostProcessingPPP;
262 bool _runningPostProcessingReqc;
263 t_postProcessing* _postProcessing;
264
265 QPushButton* _mapWinButton;
266 QRadioButton* _gmRadioButton;
267 QRadioButton* _osmRadioButton;
268 QCheckBox* _mapWinTraceCheckBox;
269 QSlider* _mapSpeedSlider;
270 bncMapWin* _mapWin;
271 QList<bncGetThread*> _threads;
272
273#ifdef RTROVER_INTERFACE
274 QComboBox* _rtroverModeComboBox;
275 QLineEdit* _rtroverRoverMountLineEdit;
276 QLineEdit* _rtroverCorrMountLineEdit;
277 QLineEdit* _rtroverBaseMountLineEdit;
278 QLineEdit* _rtroverRoverRefCrdXLineEdit;
279 QLineEdit* _rtroverRoverRefCrdYLineEdit;
280 QLineEdit* _rtroverRoverRefCrdZLineEdit;
281 QLineEdit* _rtroverBaseRefCrdXLineEdit;
282 QLineEdit* _rtroverBaseRefCrdYLineEdit;
283 QLineEdit* _rtroverBaseCrdZLineEdit;
284 QLineEdit* _rtroverRoverDNLineEdit;
285 QLineEdit* _rtroverRoverDELineEdit;
286 QLineEdit* _rtroverRoverDULineEdit;
287 QLineEdit* _rtroverBaseDNLineEdit;
288 QLineEdit* _rtroverBaseDELineEdit;
289 QLineEdit* _rtroverBaseDULineEdit;
290 QLineEdit* _rtroverRoverAntennaLineEdit;
291 QLineEdit* _rtroverBaseAntennaLineEdit;
292 qtFileChooser* _rtroverAntexFileChooser;
293 QLineEdit* _rtroverOutputLineEdit;
294#endif
295};
296
297#ifdef GNSSCENTER_PLUGIN
298#include "plugininterface.h"
299class t_bncFactory : public QObject, public GnssCenter::t_pluginFactoryInterface {
300 Q_OBJECT
301 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
302 public:
303 virtual QWidget* create() {return new bncWindow();}
304 virtual QString getName() const {return QString("BNC");}
305};
306#endif
307
308#endif
Note: See TracBrowser for help on using the repository browser.