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

Last change on this file since 10792 was 10766, checked in by stuerze, 6 weeks ago

external class QextSerialPort was replaced by Qt5 internal class QSerialPort, serial port is now introduced as case sensitive

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