1 | // Part of BNC, a utility for retrieving decoding and
|
---|
2 | // converting GNSS data streams from NTRIP broadcasters.
|
---|
3 | //
|
---|
4 | // Copyright (C) 2007
|
---|
5 | // German Federal Agency for Cartography and Geodesy (BKG)
|
---|
6 | // http://www.bkg.bund.de
|
---|
7 | // Czech Technical University Prague, Department of Geodesy
|
---|
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.
|
---|
24 |
|
---|
25 | #ifndef BNCWINDOW_H
|
---|
26 | #define BNCWINDOW_H
|
---|
27 |
|
---|
28 | #include <QDialog>
|
---|
29 | #include <QList>
|
---|
30 | #include <QMainWindow>
|
---|
31 | #include <QTextEdit>
|
---|
32 | #include <QWhatsThis>
|
---|
33 |
|
---|
34 | #include "bncgetthread.h"
|
---|
35 | #include "bnccaster.h"
|
---|
36 | #include "pppWidgets.h"
|
---|
37 |
|
---|
38 | class bncAboutDlg : public QDialog {
|
---|
39 | Q_OBJECT
|
---|
40 | public:
|
---|
41 | bncAboutDlg(QWidget* parent);
|
---|
42 | ~bncAboutDlg();
|
---|
43 | };
|
---|
44 |
|
---|
45 | class bncFlowchartDlg : public QDialog {
|
---|
46 | Q_OBJECT
|
---|
47 |
|
---|
48 | public:
|
---|
49 | bncFlowchartDlg(QWidget* parent);
|
---|
50 | ~bncFlowchartDlg();
|
---|
51 | };
|
---|
52 |
|
---|
53 | class bncFigure;
|
---|
54 | class bncFigureLate;
|
---|
55 | class bncFigurePPP;
|
---|
56 | class bncBytesCounter;
|
---|
57 | class bncEphUploadCaster;
|
---|
58 | class qtFileChooser;
|
---|
59 | class bncMapWin;
|
---|
60 |
|
---|
61 | class bncWindow : public QMainWindow {
|
---|
62 | Q_OBJECT
|
---|
63 |
|
---|
64 | public:
|
---|
65 | bncWindow();
|
---|
66 | ~bncWindow();
|
---|
67 | void CreateMenu();
|
---|
68 | void AddToolbar();
|
---|
69 |
|
---|
70 | public slots:
|
---|
71 | void slotMountPointsRead(QList<bncGetThread*>);
|
---|
72 | void slotBncTextChanged();
|
---|
73 |
|
---|
74 | private slots:
|
---|
75 | void slotWindowMessage(const QByteArray msg, bool showOnScreen);
|
---|
76 | void slotHelp();
|
---|
77 | void slotAbout();
|
---|
78 | void slotFlowchart();
|
---|
79 | void slotFontSel();
|
---|
80 | void slotSaveOptions();
|
---|
81 | void slotAddMountPoints();
|
---|
82 | void slotMapMountPoints();
|
---|
83 | void slotMapPPP();
|
---|
84 | void slotMapPPPClosed();
|
---|
85 | void slotStart();
|
---|
86 | void slotStop();
|
---|
87 | void slotNewMountPoints(QStringList* mountPoints);
|
---|
88 | void slotDeleteMountPoints();
|
---|
89 | void slotGetThreadsFinished();
|
---|
90 | void slotSelectionChanged();
|
---|
91 | void slotWhatsThis();
|
---|
92 | void slotAddCmbRow();
|
---|
93 | void slotDelCmbRow();
|
---|
94 | void slotAddUploadRow();
|
---|
95 | void slotDelUploadRow();
|
---|
96 | void slotAddUploadEphRow();
|
---|
97 | void slotDelUploadEphRow();
|
---|
98 | void slotSetUploadTrafo();
|
---|
99 | void slotReqcEditOption();
|
---|
100 | void slotPostProcessingFinished();
|
---|
101 | void slotPostProcessingProgress(int);
|
---|
102 |
|
---|
103 | protected:
|
---|
104 | virtual void closeEvent(QCloseEvent *);
|
---|
105 |
|
---|
106 | private:
|
---|
107 | void saveOptions();
|
---|
108 | void populateMountPointsTable();
|
---|
109 | void populateCmbTable();
|
---|
110 | void populateUploadTable();
|
---|
111 | void populateUploadEphTable();
|
---|
112 | void enableWidget(bool enable, QWidget* widget);
|
---|
113 | void startRealTime();
|
---|
114 | void enableStartStop();
|
---|
115 |
|
---|
116 | QMenu* _menuHlp;
|
---|
117 | QMenu* _menuFile;
|
---|
118 |
|
---|
119 | QAction* _actHelp;
|
---|
120 | QAction* _actAbout;
|
---|
121 | QAction* _actFlowchart;
|
---|
122 | QAction* _actFontSel;
|
---|
123 | QAction* _actSaveOpt;
|
---|
124 | QAction* _actQuit;
|
---|
125 | QAction* _actMapMountPoints;
|
---|
126 | QAction* _actStart;
|
---|
127 | QAction* _actStop;
|
---|
128 | QAction* _actAddMountPoints;
|
---|
129 | QAction* _actDeleteMountPoints;
|
---|
130 | QAction* _actwhatsthis;
|
---|
131 | QAction* _actwhatsthismenu;
|
---|
132 |
|
---|
133 | QLineEdit* _proxyHostLineEdit;
|
---|
134 | QLineEdit* _proxyPortLineEdit;
|
---|
135 | QLineEdit* _sslCaCertPathLineEdit;
|
---|
136 | QLineEdit* _sslClientCertPathLineEdit;
|
---|
137 | QCheckBox* _sslIgnoreErrorsCheckBox;
|
---|
138 | QLineEdit* _outFileLineEdit;
|
---|
139 | QLineEdit* _outPortLineEdit;
|
---|
140 | QLineEdit* _outUPortLineEdit;
|
---|
141 | QCheckBox* _outLockTimeCheckBox;
|
---|
142 | QLineEdit* _ephOutPortLineEdit;
|
---|
143 | QLineEdit* _corrPortLineEdit;
|
---|
144 | QLineEdit* _rnxPathLineEdit;
|
---|
145 | QLineEdit* _rnxSkelPathLineEdit;
|
---|
146 | QLineEdit* _ephPathLineEdit;
|
---|
147 | QLineEdit* _corrPathLineEdit;
|
---|
148 | QLineEdit* _miscMountLineEdit;
|
---|
149 | QLineEdit* _miscPortLineEdit;
|
---|
150 |
|
---|
151 | QComboBox* _reqcActionComboBox;
|
---|
152 | QPushButton* _reqcEditOptionButton;
|
---|
153 | qtFileChooser* _reqcObsFileChooser;
|
---|
154 | qtFileChooser* _reqcNavFileChooser;
|
---|
155 | QLineEdit* _reqcOutObsLineEdit;
|
---|
156 | QLineEdit* _reqcOutNavLineEdit;
|
---|
157 | QLineEdit* _reqcOutLogLineEdit;
|
---|
158 | QLineEdit* _reqcPlotDirLineEdit;
|
---|
159 | QLineEdit* _reqcSkyPlotSignals;
|
---|
160 | QCheckBox* _reqcLogSummaryOnly;
|
---|
161 |
|
---|
162 | qtFileChooser* _sp3CompFileChooser;
|
---|
163 | QLineEdit* _sp3CompExclude;
|
---|
164 | QLineEdit* _sp3CompLogLineEdit;
|
---|
165 |
|
---|
166 | QComboBox* _rnxVersComboBox;
|
---|
167 | QLineEdit* _rnxV2Priority;
|
---|
168 | QComboBox* _ephVersComboBox;
|
---|
169 | QCheckBox* _rnxFileCheckBox;
|
---|
170 | QLineEdit* _rnxScrpLineEdit;
|
---|
171 | QLineEdit* _logFileLineEdit;
|
---|
172 | QLineEdit* _rawOutFileLineEdit;
|
---|
173 | QComboBox* _rnxIntrComboBox;
|
---|
174 | QComboBox* _ephIntrComboBox;
|
---|
175 | QComboBox* _corrIntrComboBox;
|
---|
176 | QComboBox* _rnxSamplComboBox;
|
---|
177 | QComboBox* _rnxSkelExtComboBox;
|
---|
178 | QComboBox* _outSamplComboBox;
|
---|
179 | QCheckBox* _rnxAppendCheckBox;
|
---|
180 | QCheckBox* _autoStartCheckBox;
|
---|
181 | QCheckBox* _miscScanRTCMCheckBox;
|
---|
182 | QSpinBox* _outWaitSpinBox;
|
---|
183 | QComboBox* _adviseObsRateComboBox;
|
---|
184 | QSpinBox* _adviseFailSpinBox;
|
---|
185 | QSpinBox* _adviseRecoSpinBox;
|
---|
186 | QLineEdit* _adviseScriptLineEdit;
|
---|
187 | QComboBox* _miscIntrComboBox;
|
---|
188 | QTableWidget* _mountPointsTable;
|
---|
189 |
|
---|
190 | QLineEdit* _serialPortNameLineEdit;
|
---|
191 | QLineEdit* _serialMountPointLineEdit;
|
---|
192 | QComboBox* _serialBaudRateComboBox;
|
---|
193 | QComboBox* _serialParityComboBox;
|
---|
194 | QComboBox* _serialDataBitsComboBox;
|
---|
195 | QComboBox* _serialStopBitsComboBox;
|
---|
196 | QComboBox* _serialFlowControlComboBox;
|
---|
197 | QLineEdit* _serialHeightNMEALineEdit;
|
---|
198 | QLineEdit* _serialFileNMEALineEdit;
|
---|
199 | QComboBox* _serialAutoNMEAComboBox;
|
---|
200 | QSpinBox* _serialManualNMEASamplingSpinBox;
|
---|
201 |
|
---|
202 | QLineEdit* _LatLineEdit;
|
---|
203 | QLineEdit* _LonLineEdit;
|
---|
204 |
|
---|
205 | QComboBox* _onTheFlyComboBox;
|
---|
206 |
|
---|
207 | QTextEdit* _log;
|
---|
208 |
|
---|
209 | QWidget* _canvas;
|
---|
210 | QTabWidget* _aogroup;
|
---|
211 |
|
---|
212 | QTabWidget* _loggroup;
|
---|
213 | bncFigure* _bncFigure;
|
---|
214 | bncFigureLate* _bncFigureLate;
|
---|
215 | bncFigurePPP* _bncFigurePPP;
|
---|
216 |
|
---|
217 | QTableWidget* _cmbTable;
|
---|
218 | QLineEdit* _cmbMaxresLineEdit;
|
---|
219 | QComboBox* _cmbMethodComboBox;
|
---|
220 | QSpinBox* _cmbSamplSpinBox;
|
---|
221 | QCheckBox* _cmbGpsCheckBox;
|
---|
222 | QCheckBox* _cmbGloCheckBox;
|
---|
223 | QCheckBox* _cmbGalCheckBox;
|
---|
224 | QCheckBox* _cmbBdsCheckBox;
|
---|
225 | QCheckBox* _cmbQzssCheckBox;
|
---|
226 | QCheckBox* _cmbSbasCheckBox;
|
---|
227 | QCheckBox* _cmbIrnssCheckBox;
|
---|
228 | qtFileChooser* _cmbBsxFile;
|
---|
229 |
|
---|
230 | QTableWidget* _uploadTable;
|
---|
231 | QComboBox* _uploadIntrComboBox;
|
---|
232 | QSpinBox* _uploadSamplRtcmEphCorrSpinBox;
|
---|
233 | QSpinBox* _uploadSamplSp3SpinBox;
|
---|
234 | QSpinBox* _uploadSamplClkRnxSpinBox;
|
---|
235 | QSpinBox* _uploadSamplBiaSnxSpinBox;
|
---|
236 | qtFileChooser* _uploadAntexFile;
|
---|
237 |
|
---|
238 | QTableWidget* _uploadEphTable;
|
---|
239 | QSpinBox* _uploadSamplRtcmEphSpinBox;
|
---|
240 |
|
---|
241 | bncCaster* _caster;
|
---|
242 | bncEphUploadCaster* _casterEph;
|
---|
243 |
|
---|
244 | bool _runningRealTime;
|
---|
245 | bool _runningPPP;
|
---|
246 | bool _runningEdit;
|
---|
247 | bool _runningQC;
|
---|
248 | bool _runningSp3Comp;
|
---|
249 |
|
---|
250 | bool running() {return _runningRealTime || _runningPPP || _runningEdit ||
|
---|
251 | _runningQC || _runningSp3Comp;}
|
---|
252 |
|
---|
253 | bncMapWin* _mapWin;
|
---|
254 |
|
---|
255 | QList<bncGetThread*> _threads;
|
---|
256 |
|
---|
257 | t_pppWidgets _pppWidgets;
|
---|
258 | };
|
---|
259 |
|
---|
260 | #ifdef GNSSCENTER_PLUGIN
|
---|
261 | #include "plugininterface.h"
|
---|
262 | class t_bncFactory : public QObject, public GnssCenter::t_pluginFactoryInterface {
|
---|
263 | Q_OBJECT
|
---|
264 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
|
---|
265 | public:
|
---|
266 | virtual QWidget* create() {return new bncWindow();}
|
---|
267 | virtual QString getName() const {return QString("BNC");}
|
---|
268 | };
|
---|
269 | #endif
|
---|
270 |
|
---|
271 | #endif
|
---|