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

Last change on this file since 5162 was 5162, checked in by mervart, 11 years ago
File size: 8.7 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;
55
56class bncWindow : public QMainWindow {
57 Q_OBJECT
58
59 public:
60 bncWindow();
61 ~bncWindow();
62 void CreateMenu();
63 void AddToolbar();
64
65 public slots:
66 void slotMountPointsRead(QList<bncGetThread*>);
67 void slotBncTextChanged();
68 void slotPostProgress(int);
69
70 private slots:
71 void slotWindowMessage(const QByteArray msg, bool showOnScreen);
72 void slotHelp();
73 void slotAbout();
74 void slotFlowchart();
75 void slotFontSel();
76 void slotSaveOptions();
77 void slotAddMountPoints();
78 void slotMapMountPoints();
79 void slotMapPPP();
80 void slotStart();
81 void slotFinishedPostProcessingPPP();
82 void slotFinishedPostProcessingReqc();
83 void slotStop();
84 void slotNewMountPoints(QStringList* mountPoints);
85 void slotDeleteMountPoints();
86 void slotGetThreadsFinished();
87 void slotSelectionChanged();
88 void slotWhatsThis();
89 void slotAddCmbRow();
90 void slotDelCmbRow();
91 void slotAddUploadRow();
92 void slotDelUploadRow();
93 void slotSetUploadTrafo();
94 void slotReqcEditOption();
95
96 protected:
97 virtual void closeEvent(QCloseEvent *);
98
99 private:
100 void saveOptions();
101 void populateMountPointsTable();
102 void populateCmbTable();
103 void populateUploadTable();
104 void enableWidget(bool enable, QWidget* widget);
105 void startRealTime();
106 void startPostProcessingPPP();
107 void startPostProcessingReqc();
108 void enableStartStop();
109
110 QMenu* _menuHlp;
111 QMenu* _menuFile;
112
113 QAction* _actHelp;
114 QAction* _actAbout;
115 QAction* _actFlowchart;
116 QAction* _actFontSel;
117 QAction* _actSaveOpt;
118 QAction* _actQuit;
119 QAction* _actMapMountPoints;
120 QAction* _actMapPPP;
121 QAction* _actStart;
122 QAction* _actStop;
123 QAction* _actAddMountPoints;
124 QAction* _actDeleteMountPoints;
125 QAction* _actwhatsthis;
126 QAction* _actwhatsthismenu;
127
128 QLineEdit* _proxyHostLineEdit;
129 QLineEdit* _proxyPortLineEdit;
130 QLineEdit* _sslCaCertPathLineEdit;
131 QCheckBox* _ignoreSslErrorsCheckBox;
132 QLineEdit* _outFileLineEdit;
133 QLineEdit* _outPortLineEdit;
134 QLineEdit* _outUPortLineEdit;
135 QLineEdit* _outEphPortLineEdit;
136 QLineEdit* _corrPortLineEdit;
137 QLineEdit* _rnxPathLineEdit;
138 QLineEdit* _ephPathLineEdit;
139 QLineEdit* _corrPathLineEdit;
140 QLineEdit* _miscMountLineEdit;
141 QLineEdit* _pppMountLineEdit;
142 QLineEdit* _pppCorrMountLineEdit;
143 QLineEdit* _pppNMEALineEdit;
144 QLineEdit* _pppNMEAPortLineEdit;
145 QLineEdit* _pppSigCLineEdit;
146 QLineEdit* _pppSigPLineEdit;
147 QLineEdit* _pppSigCrd0;
148 QLineEdit* _pppSigCrdP;
149 QLineEdit* _pppSigTrp0;
150 QLineEdit* _pppSigTrpP;
151 QLineEdit* _pppSync;
152 QLineEdit* _pppAverageLineEdit;
153 QLineEdit* _pppQuickStartLineEdit;
154 QLineEdit* _pppMaxSolGapLineEdit;
155 QLineEdit* _pppAudioResponseLineEdit;
156 QLineEdit* _pppRefCrdXLineEdit;
157 QLineEdit* _pppRefCrdYLineEdit;
158 QLineEdit* _pppRefCrdZLineEdit;
159 QLineEdit* _pppRefdNLineEdit;
160 QLineEdit* _pppRefdELineEdit;
161 QLineEdit* _pppRefdULineEdit;
162 QCheckBox* _pppPlotCoordinates;
163 QCheckBox* _pppUsePhaseCheckBox;
164 QCheckBox* _pppEstTropoCheckBox;
165 QCheckBox* _pppGLONASSCheckBox;
166 QCheckBox* _pppGalileoCheckBox;
167 QLineEdit* _pppAntennaLineEdit;
168 qtFileChooser* _pppAntexFileChooser;
169
170 qtFileChooser* _postObsFileChooser;
171 qtFileChooser* _postNavFileChooser;
172 qtFileChooser* _postCorrFileChooser;
173 QLineEdit* _postOutLineEdit;
174
175 QComboBox* _reqcActionComboBox;
176 QPushButton* _reqcEditOptionButton;
177 qtFileChooser* _reqcObsFileChooser;
178 qtFileChooser* _reqcNavFileChooser;
179 QLineEdit* _reqcOutObsLineEdit;
180 QLineEdit* _reqcOutNavLineEdit;
181 QLineEdit* _reqcOutLogLineEdit;
182 QLineEdit* _reqcPlotDirLineEdit;
183 QComboBox* _reqcSkyPlotSystems;
184
185 QCheckBox* _rnxV3CheckBox;
186 QCheckBox* _ephV3CheckBox;
187 QLineEdit* _rnxSkelLineEdit;
188 QLineEdit* _rnxScrpLineEdit;
189 QLineEdit* _logFileLineEdit;
190 QLineEdit* _rawOutFileLineEdit;
191 QComboBox* _pppSPPComboBox;
192 QComboBox* _rnxIntrComboBox;
193 QComboBox* _ephIntrComboBox;
194 QComboBox* _corrIntrComboBox;
195 QSpinBox* _rnxSamplSpinBox;
196 QSpinBox* _binSamplSpinBox;
197 QCheckBox* _rnxAppendCheckBox;
198 QCheckBox* _autoStartCheckBox;
199 QCheckBox* _scanRTCMCheckBox;
200 QSpinBox* _waitTimeSpinBox;
201 QSpinBox* _corrTimeSpinBox;
202 QComboBox* _obsRateComboBox;
203 QSpinBox* _adviseFailSpinBox;
204 QSpinBox* _adviseRecoSpinBox;
205 QLineEdit* _adviseScriptLineEdit;
206 QComboBox* _perfIntrComboBox;
207 QTableWidget* _mountPointsTable;
208
209 QLineEdit* _serialPortNameLineEdit;
210 QLineEdit* _serialMountPointLineEdit;
211 QComboBox* _serialBaudRateComboBox;
212 QComboBox* _serialParityComboBox;
213 QComboBox* _serialDataBitsComboBox;
214 QComboBox* _serialStopBitsComboBox;
215 QComboBox* _serialFlowControlComboBox;
216 QLineEdit* _serialHeightNMEALineEdit;
217 QLineEdit* _serialFileNMEALineEdit;
218 QComboBox* _serialAutoNMEAComboBox;
219
220 QLineEdit* _LatLineEdit;
221 QLineEdit* _LonLineEdit;
222
223 QComboBox* _onTheFlyComboBox;
224
225 QTextEdit* _log;
226
227 QWidget* _canvas;
228 QTabWidget* _aogroup;
229
230 QTabWidget* _loggroup;
231 bncFigure* _bncFigure;
232 bncFigureLate* _bncFigureLate;
233 bncFigurePPP* _bncFigurePPP;
234
235 QTableWidget* _cmbTable;
236 QLineEdit* _cmbMaxresLineEdit;
237 QComboBox* _cmbMethodComboBox;
238 QSpinBox* _cmbSamplSpinBox;
239
240 QTableWidget* _uploadTable;
241 QComboBox* _uploadIntrComboBox;
242 QSpinBox* _uploadSamplRtcmEphCorrSpinBox;
243 QSpinBox* _uploadSamplSp3SpinBox;
244 QSpinBox* _uploadSamplClkRnxSpinBox;
245
246 QLineEdit* _uploadEphHostLineEdit;
247 QLineEdit* _uploadEphPortLineEdit;
248 QLineEdit* _uploadEphPasswordLineEdit;
249 QLineEdit* _uploadEphMountpointLineEdit;
250 QSpinBox* _uploadEphSampleSpinBox;
251 bncBytesCounter* _uploadEphBytesCounter;
252
253 bncCaster* _caster;
254
255 bncEphUploadCaster* _casterEph;
256
257 bool _realTimeRunning;
258 bool _runningRealTime;
259 bool _runningPostProcessingPPP;
260 bool _runningPostProcessingReqc;
261
262#ifdef RTROVER_INTERFACE
263 QComboBox* _rtroverModeComboBox;
264 QLineEdit* _rtroverRoverMountLineEdit;
265 QLineEdit* _rtroverCorrMountLineEdit;
266 QLineEdit* _rtroverBaseMountLineEdit;
267 QLineEdit* _rtroverRoverRefCrdXLineEdit;
268 QLineEdit* _rtroverRoverRefCrdYLineEdit;
269 QLineEdit* _rtroverRoverRefCrdZLineEdit;
270 QLineEdit* _rtroverBaseRefCrdXLineEdit;
271 QLineEdit* _rtroverBaseRefCrdYLineEdit;
272 QLineEdit* _rtroverBaseCrdZLineEdit;
273 QLineEdit* _rtroverRoverDNLineEdit;
274 QLineEdit* _rtroverRoverDELineEdit;
275 QLineEdit* _rtroverRoverDULineEdit;
276 QLineEdit* _rtroverBaseDNLineEdit;
277 QLineEdit* _rtroverBaseDELineEdit;
278 QLineEdit* _rtroverBaseDULineEdit;
279 QLineEdit* _rtroverRoverAntennaLineEdit;
280 QLineEdit* _rtroverBaseAntennaLineEdit;
281 qtFileChooser* _rtroverAntexFileChooser;
282 QLineEdit* _rtroverOutputLineEdit;
283#endif
284};
285
286#ifdef GNSSCENTER_PLUGIN
287#include "plugininterface.h"
288class t_bncFactory : public QObject, public GnssCenter::t_pluginFactoryInterface {
289 Q_OBJECT
290 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
291 public:
292 virtual QWidget* create() {return new bncWindow();}
293 virtual QString getName() const {return QString("BNC");}
294};
295#endif
296
297#endif
Note: See TracBrowser for help on using the repository browser.