[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"
|
---|
[6040] | 33 | #include "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;
|
---|
[1932] | 57 |
|
---|
| 58 | class bncWindow : public QMainWindow {
|
---|
[679] | 59 | Q_OBJECT
|
---|
| 60 |
|
---|
| 61 | public:
|
---|
[35] | 62 | bncWindow();
|
---|
[83] | 63 | ~bncWindow();
|
---|
[679] | 64 | void CreateMenu();
|
---|
| 65 | void AddToolbar();
|
---|
[1912] | 66 |
|
---|
[83] | 67 | public slots:
|
---|
[1179] | 68 | void slotMountPointsRead(QList<bncGetThread*>);
|
---|
[2128] | 69 | void slotBncTextChanged();
|
---|
[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();
|
---|
[5235] | 81 | void slotMapPPPClosed();
|
---|
[3782] | 82 | void slotStart();
|
---|
[182] | 83 | void slotStop();
|
---|
[35] | 84 | void slotNewMountPoints(QStringList* mountPoints);
|
---|
| 85 | void slotDeleteMountPoints();
|
---|
[1556] | 86 | void slotGetThreadsFinished();
|
---|
[83] | 87 | void slotSelectionChanged();
|
---|
[399] | 88 | void slotWhatsThis();
|
---|
[2869] | 89 | void slotAddCmbRow();
|
---|
| 90 | void slotDelCmbRow();
|
---|
[3164] | 91 | void slotAddUploadRow();
|
---|
| 92 | void slotDelUploadRow();
|
---|
| 93 | void slotSetUploadTrafo();
|
---|
[3892] | 94 | void slotReqcEditOption();
|
---|
[5971] | 95 | void slotPostProcessingFinished();
|
---|
| 96 | void slotPostProcessingProgress(int);
|
---|
[35] | 97 |
|
---|
[83] | 98 | protected:
|
---|
| 99 | virtual void closeEvent(QCloseEvent *);
|
---|
| 100 |
|
---|
[35] | 101 | private:
|
---|
[4076] | 102 | void saveOptions();
|
---|
[1178] | 103 | void populateMountPointsTable();
|
---|
[2870] | 104 | void populateCmbTable();
|
---|
[3164] | 105 | void populateUploadTable();
|
---|
[3605] | 106 | void enableWidget(bool enable, QWidget* widget);
|
---|
[3782] | 107 | void startRealTime();
|
---|
[3787] | 108 | void enableStartStop();
|
---|
[1178] | 109 |
|
---|
[35] | 110 | QMenu* _menuHlp;
|
---|
| 111 | QMenu* _menuFile;
|
---|
| 112 |
|
---|
[108] | 113 | QAction* _actHelp;
|
---|
[35] | 114 | QAction* _actAbout;
|
---|
[989] | 115 | QAction* _actFlowchart;
|
---|
[111] | 116 | QAction* _actFontSel;
|
---|
[35] | 117 | QAction* _actSaveOpt;
|
---|
| 118 | QAction* _actQuit;
|
---|
[5162] | 119 | QAction* _actMapMountPoints;
|
---|
[3782] | 120 | QAction* _actStart;
|
---|
[182] | 121 | QAction* _actStop;
|
---|
[35] | 122 | QAction* _actAddMountPoints;
|
---|
| 123 | QAction* _actDeleteMountPoints;
|
---|
[399] | 124 | QAction* _actwhatsthis;
|
---|
| 125 | QAction* _actwhatsthismenu;
|
---|
[35] | 126 |
|
---|
| 127 | QLineEdit* _proxyHostLineEdit;
|
---|
| 128 | QLineEdit* _proxyPortLineEdit;
|
---|
[3356] | 129 | QLineEdit* _sslCaCertPathLineEdit;
|
---|
| 130 | QCheckBox* _ignoreSslErrorsCheckBox;
|
---|
[35] | 131 | QLineEdit* _outFileLineEdit;
|
---|
| 132 | QLineEdit* _outPortLineEdit;
|
---|
[1222] | 133 | QLineEdit* _outUPortLineEdit;
|
---|
[588] | 134 | QLineEdit* _outEphPortLineEdit;
|
---|
[934] | 135 | QLineEdit* _corrPortLineEdit;
|
---|
[83] | 136 | QLineEdit* _rnxPathLineEdit;
|
---|
[533] | 137 | QLineEdit* _ephPathLineEdit;
|
---|
[934] | 138 | QLineEdit* _corrPathLineEdit;
|
---|
[1307] | 139 | QLineEdit* _miscMountLineEdit;
|
---|
[5641] | 140 | QLineEdit* _miscPortLineEdit;
|
---|
[3602] | 141 |
|
---|
[3892] | 142 | QComboBox* _reqcActionComboBox;
|
---|
| 143 | QPushButton* _reqcEditOptionButton;
|
---|
| 144 | qtFileChooser* _reqcObsFileChooser;
|
---|
| 145 | qtFileChooser* _reqcNavFileChooser;
|
---|
| 146 | QLineEdit* _reqcOutObsLineEdit;
|
---|
| 147 | QLineEdit* _reqcOutNavLineEdit;
|
---|
| 148 | QLineEdit* _reqcOutLogLineEdit;
|
---|
[4449] | 149 | QLineEdit* _reqcPlotDirLineEdit;
|
---|
[6408] | 150 | QLineEdit* _reqcSkyPlotSignals;
|
---|
[6299] | 151 | QCheckBox* _reqcLogSummaryOnly;
|
---|
[3731] | 152 |
|
---|
[6332] | 153 | qtFileChooser* _sp3CompFileChooser;
|
---|
[6430] | 154 | QLineEdit* _sp3CompExclude;
|
---|
[6332] | 155 | QLineEdit* _sp3CompLogLineEdit;
|
---|
| 156 |
|
---|
[533] | 157 | QCheckBox* _rnxV3CheckBox;
|
---|
[6237] | 158 | QLineEdit* _rnxV2Priority;
|
---|
[533] | 159 | QCheckBox* _ephV3CheckBox;
|
---|
[83] | 160 | QLineEdit* _rnxSkelLineEdit;
|
---|
[106] | 161 | QLineEdit* _rnxScrpLineEdit;
|
---|
[143] | 162 | QLineEdit* _logFileLineEdit;
|
---|
[2386] | 163 | QLineEdit* _rawOutFileLineEdit;
|
---|
[106] | 164 | QComboBox* _rnxIntrComboBox;
|
---|
[560] | 165 | QComboBox* _ephIntrComboBox;
|
---|
[934] | 166 | QComboBox* _corrIntrComboBox;
|
---|
[106] | 167 | QSpinBox* _rnxSamplSpinBox;
|
---|
[740] | 168 | QSpinBox* _binSamplSpinBox;
|
---|
[259] | 169 | QCheckBox* _rnxAppendCheckBox;
|
---|
[1333] | 170 | QCheckBox* _autoStartCheckBox;
|
---|
[1307] | 171 | QCheckBox* _scanRTCMCheckBox;
|
---|
[135] | 172 | QSpinBox* _waitTimeSpinBox;
|
---|
[686] | 173 | QComboBox* _obsRateComboBox;
|
---|
[668] | 174 | QSpinBox* _adviseFailSpinBox;
|
---|
| 175 | QSpinBox* _adviseRecoSpinBox;
|
---|
| 176 | QLineEdit* _adviseScriptLineEdit;
|
---|
[728] | 177 | QComboBox* _perfIntrComboBox;
|
---|
[83] | 178 | QTableWidget* _mountPointsTable;
|
---|
[1329] | 179 |
|
---|
[1327] | 180 | QLineEdit* _serialPortNameLineEdit;
|
---|
| 181 | QLineEdit* _serialMountPointLineEdit;
|
---|
[1329] | 182 | QComboBox* _serialBaudRateComboBox;
|
---|
| 183 | QComboBox* _serialParityComboBox;
|
---|
| 184 | QComboBox* _serialDataBitsComboBox;
|
---|
| 185 | QComboBox* _serialStopBitsComboBox;
|
---|
[1636] | 186 | QComboBox* _serialFlowControlComboBox;
|
---|
[1595] | 187 | QLineEdit* _serialHeightNMEALineEdit;
|
---|
[1601] | 188 | QLineEdit* _serialFileNMEALineEdit;
|
---|
[1595] | 189 | QComboBox* _serialAutoNMEAComboBox;
|
---|
[35] | 190 |
|
---|
[356] | 191 | QLineEdit* _LatLineEdit;
|
---|
| 192 | QLineEdit* _LonLineEdit;
|
---|
| 193 |
|
---|
[1170] | 194 | QComboBox* _onTheFlyComboBox;
|
---|
| 195 |
|
---|
[83] | 196 | QTextEdit* _log;
|
---|
| 197 |
|
---|
[1912] | 198 | QWidget* _canvas;
|
---|
[1925] | 199 | QTabWidget* _aogroup;
|
---|
[463] | 200 |
|
---|
[1925] | 201 | QTabWidget* _loggroup;
|
---|
[1932] | 202 | bncFigure* _bncFigure;
|
---|
[1972] | 203 | bncFigureLate* _bncFigureLate;
|
---|
[2141] | 204 | bncFigurePPP* _bncFigurePPP;
|
---|
[1912] | 205 |
|
---|
[6172] | 206 | QTableWidget* _cmbTable;
|
---|
| 207 | QLineEdit* _cmbMaxresLineEdit;
|
---|
| 208 | QComboBox* _cmbMethodComboBox;
|
---|
| 209 | QSpinBox* _cmbSamplSpinBox;
|
---|
| 210 | qtFileChooser* _cmbAntexFile;
|
---|
| 211 | QCheckBox* _cmbUseGlonass;
|
---|
[2868] | 212 |
|
---|
[3164] | 213 | QTableWidget* _uploadTable;
|
---|
[3197] | 214 | QComboBox* _uploadIntrComboBox;
|
---|
[4172] | 215 | QSpinBox* _uploadSamplRtcmEphCorrSpinBox;
|
---|
| 216 | QSpinBox* _uploadSamplSp3SpinBox;
|
---|
| 217 | QSpinBox* _uploadSamplClkRnxSpinBox;
|
---|
[3152] | 218 |
|
---|
[3245] | 219 | QLineEdit* _uploadEphHostLineEdit;
|
---|
| 220 | QLineEdit* _uploadEphPortLineEdit;
|
---|
| 221 | QLineEdit* _uploadEphPasswordLineEdit;
|
---|
| 222 | QLineEdit* _uploadEphMountpointLineEdit;
|
---|
| 223 | QSpinBox* _uploadEphSampleSpinBox;
|
---|
| 224 | bncBytesCounter* _uploadEphBytesCounter;
|
---|
[3240] | 225 |
|
---|
[5729] | 226 | bncCaster* _caster;
|
---|
[3249] | 227 | bncEphUploadCaster* _casterEph;
|
---|
[3735] | 228 |
|
---|
[3782] | 229 | bool _runningRealTime;
|
---|
[5971] | 230 | bool _runningPPP;
|
---|
| 231 | bool _runningEdit;
|
---|
| 232 | bool _runningQC;
|
---|
[6332] | 233 | bool _runningSp3Comp;
|
---|
[4766] | 234 |
|
---|
[6332] | 235 | bool running() {return _runningRealTime || _runningPPP || _runningEdit ||
|
---|
| 236 | _runningQC || _runningSp3Comp;}
|
---|
[5971] | 237 |
|
---|
[5187] | 238 | bncMapWin* _mapWin;
|
---|
[5861] | 239 |
|
---|
[5187] | 240 | QList<bncGetThread*> _threads;
|
---|
[5179] | 241 |
|
---|
[5686] | 242 | t_pppWidgets _pppWidgets;
|
---|
[35] | 243 | };
|
---|
[5063] | 244 |
|
---|
| 245 | #ifdef GNSSCENTER_PLUGIN
|
---|
| 246 | #include "plugininterface.h"
|
---|
| 247 | class t_bncFactory : public QObject, public GnssCenter::t_pluginFactoryInterface {
|
---|
| 248 | Q_OBJECT
|
---|
| 249 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
|
---|
| 250 | public:
|
---|
| 251 | virtual QWidget* create() {return new bncWindow();}
|
---|
| 252 | virtual QString getName() const {return QString("BNC");}
|
---|
| 253 | };
|
---|
[35] | 254 | #endif
|
---|
[5063] | 255 |
|
---|
| 256 | #endif
|
---|