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

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