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

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