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

Last change on this file since 5179 was 5179, checked in by mervart, 11 years ago
File size: 8.7 KB
RevLine 
[280]1// Part of BNC, a utility for retrieving decoding and
[464]2// converting GNSS data streams from NTRIP broadcasters.
[280]3//
[464]4// Copyright (C) 2007
[280]5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
[464]7// Czech Technical University Prague, Department of Geodesy
[280]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.
[35]24
25#ifndef BNCWINDOW_H
26#define BNCWINDOW_H
27
28#include <QtGui>
[399]29#include <QWhatsThis>
[35]30
31#include "bncgetthread.h"
[463]32#include "bnccaster.h"
[35]33
[1925]34class bncAboutDlg : public QDialog {
[35]35 Q_OBJECT
36 public:
[679]37 bncAboutDlg(QWidget* parent);
38 ~bncAboutDlg();
39};
40
[1932]41class bncFlowchartDlg : public QDialog {
[989]42 Q_OBJECT
43
44 public:
45 bncFlowchartDlg(QWidget* parent);
46 ~bncFlowchartDlg();
47};
48
[1932]49class bncFigure;
[1972]50class bncFigureLate;
[2141]51class bncFigurePPP;
[3245]52class bncBytesCounter;
[3249]53class bncEphUploadCaster;
[3602]54class qtFileChooser;
[5179]55class bncMapWin;
[1932]56
57class bncWindow : public QMainWindow {
[679]58 Q_OBJECT
59
60 public:
[35]61 bncWindow();
[83]62 ~bncWindow();
[679]63 void CreateMenu();
64 void AddToolbar();
[1912]65
[83]66 public slots:
[1179]67 void slotMountPointsRead(QList<bncGetThread*>);
[2128]68 void slotBncTextChanged();
[3685]69 void slotPostProgress(int);
[35]70
71 private slots:
[1299]72 void slotWindowMessage(const QByteArray msg, bool showOnScreen);
[108]73 void slotHelp();
74 void slotAbout();
[989]75 void slotFlowchart();
[111]76 void slotFontSel();
[35]77 void slotSaveOptions();
78 void slotAddMountPoints();
[5162]79 void slotMapMountPoints();
80 void slotMapPPP();
[3782]81 void slotStart();
[3736]82 void slotFinishedPostProcessingPPP();
[3892]83 void slotFinishedPostProcessingReqc();
[182]84 void slotStop();
[35]85 void slotNewMountPoints(QStringList* mountPoints);
86 void slotDeleteMountPoints();
[1556]87 void slotGetThreadsFinished();
[83]88 void slotSelectionChanged();
[399]89 void slotWhatsThis();
[2869]90 void slotAddCmbRow();
91 void slotDelCmbRow();
[3164]92 void slotAddUploadRow();
93 void slotDelUploadRow();
94 void slotSetUploadTrafo();
[3892]95 void slotReqcEditOption();
[35]96
[83]97 protected:
98 virtual void closeEvent(QCloseEvent *);
99
[35]100 private:
[4076]101 void saveOptions();
[1178]102 void populateMountPointsTable();
[2870]103 void populateCmbTable();
[3164]104 void populateUploadTable();
[3605]105 void enableWidget(bool enable, QWidget* widget);
[3782]106 void startRealTime();
[3735]107 void startPostProcessingPPP();
[3892]108 void startPostProcessingReqc();
[3787]109 void enableStartStop();
[1178]110
[35]111 QMenu* _menuHlp;
112 QMenu* _menuFile;
113
[108]114 QAction* _actHelp;
[35]115 QAction* _actAbout;
[989]116 QAction* _actFlowchart;
[111]117 QAction* _actFontSel;
[35]118 QAction* _actSaveOpt;
119 QAction* _actQuit;
[5162]120 QAction* _actMapMountPoints;
121 QAction* _actMapPPP;
[3782]122 QAction* _actStart;
[182]123 QAction* _actStop;
[35]124 QAction* _actAddMountPoints;
125 QAction* _actDeleteMountPoints;
[399]126 QAction* _actwhatsthis;
127 QAction* _actwhatsthismenu;
[35]128
129 QLineEdit* _proxyHostLineEdit;
130 QLineEdit* _proxyPortLineEdit;
[3356]131 QLineEdit* _sslCaCertPathLineEdit;
132 QCheckBox* _ignoreSslErrorsCheckBox;
[35]133 QLineEdit* _outFileLineEdit;
134 QLineEdit* _outPortLineEdit;
[1222]135 QLineEdit* _outUPortLineEdit;
[588]136 QLineEdit* _outEphPortLineEdit;
[934]137 QLineEdit* _corrPortLineEdit;
[83]138 QLineEdit* _rnxPathLineEdit;
[533]139 QLineEdit* _ephPathLineEdit;
[934]140 QLineEdit* _corrPathLineEdit;
[1307]141 QLineEdit* _miscMountLineEdit;
[2003]142 QLineEdit* _pppMountLineEdit;
[2967]143 QLineEdit* _pppCorrMountLineEdit;
[2126]144 QLineEdit* _pppNMEALineEdit;
[2185]145 QLineEdit* _pppNMEAPortLineEdit;
[2473]146 QLineEdit* _pppSigCLineEdit;
147 QLineEdit* _pppSigPLineEdit;
[2718]148 QLineEdit* _pppSigCrd0;
149 QLineEdit* _pppSigCrdP;
150 QLineEdit* _pppSigTrp0;
151 QLineEdit* _pppSigTrpP;
[2811]152 QLineEdit* _pppSync;
[2597]153 QLineEdit* _pppAverageLineEdit;
[2719]154 QLineEdit* _pppQuickStartLineEdit;
[3111]155 QLineEdit* _pppMaxSolGapLineEdit;
[4546]156 QLineEdit* _pppAudioResponseLineEdit;
[2165]157 QLineEdit* _pppRefCrdXLineEdit;
158 QLineEdit* _pppRefCrdYLineEdit;
159 QLineEdit* _pppRefCrdZLineEdit;
[3284]160 QLineEdit* _pppRefdNLineEdit;
161 QLineEdit* _pppRefdELineEdit;
162 QLineEdit* _pppRefdULineEdit;
[2718]163 QCheckBox* _pppPlotCoordinates;
[2083]164 QCheckBox* _pppUsePhaseCheckBox;
[2086]165 QCheckBox* _pppEstTropoCheckBox;
[2137]166 QCheckBox* _pppGLONASSCheckBox;
[2794]167 QCheckBox* _pppGalileoCheckBox;
[2876]168 QLineEdit* _pppAntennaLineEdit;
[3620]169 qtFileChooser* _pppAntexFileChooser;
[3602]170
171 qtFileChooser* _postObsFileChooser;
172 qtFileChooser* _postNavFileChooser;
173 qtFileChooser* _postCorrFileChooser;
[3618]174 QLineEdit* _postOutLineEdit;
[3602]175
[3892]176 QComboBox* _reqcActionComboBox;
177 QPushButton* _reqcEditOptionButton;
178 qtFileChooser* _reqcObsFileChooser;
179 qtFileChooser* _reqcNavFileChooser;
180 QLineEdit* _reqcOutObsLineEdit;
181 QLineEdit* _reqcOutNavLineEdit;
182 QLineEdit* _reqcOutLogLineEdit;
[4449]183 QLineEdit* _reqcPlotDirLineEdit;
[5144]184 QComboBox* _reqcSkyPlotSystems;
[3731]185
[533]186 QCheckBox* _rnxV3CheckBox;
187 QCheckBox* _ephV3CheckBox;
[83]188 QLineEdit* _rnxSkelLineEdit;
[106]189 QLineEdit* _rnxScrpLineEdit;
[143]190 QLineEdit* _logFileLineEdit;
[2386]191 QLineEdit* _rawOutFileLineEdit;
[2341]192 QComboBox* _pppSPPComboBox;
[106]193 QComboBox* _rnxIntrComboBox;
[560]194 QComboBox* _ephIntrComboBox;
[934]195 QComboBox* _corrIntrComboBox;
[106]196 QSpinBox* _rnxSamplSpinBox;
[740]197 QSpinBox* _binSamplSpinBox;
[259]198 QCheckBox* _rnxAppendCheckBox;
[1333]199 QCheckBox* _autoStartCheckBox;
[1307]200 QCheckBox* _scanRTCMCheckBox;
[135]201 QSpinBox* _waitTimeSpinBox;
[967]202 QSpinBox* _corrTimeSpinBox;
[686]203 QComboBox* _obsRateComboBox;
[668]204 QSpinBox* _adviseFailSpinBox;
205 QSpinBox* _adviseRecoSpinBox;
206 QLineEdit* _adviseScriptLineEdit;
[728]207 QComboBox* _perfIntrComboBox;
[83]208 QTableWidget* _mountPointsTable;
[1329]209
[1327]210 QLineEdit* _serialPortNameLineEdit;
211 QLineEdit* _serialMountPointLineEdit;
[1329]212 QComboBox* _serialBaudRateComboBox;
213 QComboBox* _serialParityComboBox;
214 QComboBox* _serialDataBitsComboBox;
215 QComboBox* _serialStopBitsComboBox;
[1636]216 QComboBox* _serialFlowControlComboBox;
[1595]217 QLineEdit* _serialHeightNMEALineEdit;
[1601]218 QLineEdit* _serialFileNMEALineEdit;
[1595]219 QComboBox* _serialAutoNMEAComboBox;
[35]220
[356]221 QLineEdit* _LatLineEdit;
222 QLineEdit* _LonLineEdit;
223
[1170]224 QComboBox* _onTheFlyComboBox;
225
[83]226 QTextEdit* _log;
227
[1912]228 QWidget* _canvas;
[1925]229 QTabWidget* _aogroup;
[463]230
[1925]231 QTabWidget* _loggroup;
[1932]232 bncFigure* _bncFigure;
[1972]233 bncFigureLate* _bncFigureLate;
[2141]234 bncFigurePPP* _bncFigurePPP;
[1912]235
[2868]236 QTableWidget* _cmbTable;
[3328]237 QLineEdit* _cmbMaxresLineEdit;
[3469]238 QComboBox* _cmbMethodComboBox;
[4179]239 QSpinBox* _cmbSamplSpinBox;
[2868]240
[3164]241 QTableWidget* _uploadTable;
[3197]242 QComboBox* _uploadIntrComboBox;
[4172]243 QSpinBox* _uploadSamplRtcmEphCorrSpinBox;
244 QSpinBox* _uploadSamplSp3SpinBox;
245 QSpinBox* _uploadSamplClkRnxSpinBox;
[3152]246
[3245]247 QLineEdit* _uploadEphHostLineEdit;
248 QLineEdit* _uploadEphPortLineEdit;
249 QLineEdit* _uploadEphPasswordLineEdit;
250 QLineEdit* _uploadEphMountpointLineEdit;
251 QSpinBox* _uploadEphSampleSpinBox;
252 bncBytesCounter* _uploadEphBytesCounter;
[3240]253
[463]254 bncCaster* _caster;
[3249]255
256 bncEphUploadCaster* _casterEph;
[3735]257
[3782]258 bool _realTimeRunning;
259 bool _runningRealTime;
260 bool _runningPostProcessingPPP;
[3892]261 bool _runningPostProcessingReqc;
[4766]262
[5179]263 bncMapWin* _mapWin;
264
[4766]265#ifdef RTROVER_INTERFACE
266 QComboBox* _rtroverModeComboBox;
267 QLineEdit* _rtroverRoverMountLineEdit;
268 QLineEdit* _rtroverCorrMountLineEdit;
269 QLineEdit* _rtroverBaseMountLineEdit;
270 QLineEdit* _rtroverRoverRefCrdXLineEdit;
271 QLineEdit* _rtroverRoverRefCrdYLineEdit;
272 QLineEdit* _rtroverRoverRefCrdZLineEdit;
273 QLineEdit* _rtroverBaseRefCrdXLineEdit;
274 QLineEdit* _rtroverBaseRefCrdYLineEdit;
275 QLineEdit* _rtroverBaseCrdZLineEdit;
[4790]276 QLineEdit* _rtroverRoverDNLineEdit;
277 QLineEdit* _rtroverRoverDELineEdit;
278 QLineEdit* _rtroverRoverDULineEdit;
279 QLineEdit* _rtroverBaseDNLineEdit;
280 QLineEdit* _rtroverBaseDELineEdit;
281 QLineEdit* _rtroverBaseDULineEdit;
282 QLineEdit* _rtroverRoverAntennaLineEdit;
283 QLineEdit* _rtroverBaseAntennaLineEdit;
284 qtFileChooser* _rtroverAntexFileChooser;
[4766]285 QLineEdit* _rtroverOutputLineEdit;
286#endif
[35]287};
[5063]288
289#ifdef GNSSCENTER_PLUGIN
290#include "plugininterface.h"
291class t_bncFactory : public QObject, public GnssCenter::t_pluginFactoryInterface {
292 Q_OBJECT
293 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
294 public:
295 virtual QWidget* create() {return new bncWindow();}
296 virtual QString getName() const {return QString("BNC");}
297};
[35]298#endif
[5063]299
300#endif
Note: See TracBrowser for help on using the repository browser.