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