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