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

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