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

Last change on this file since 10907 was 10766, checked in by stuerze, 7 months ago

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

File size: 7.7 KB
RevLine 
[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]38class bncAboutDlg : public QDialog {
[10657]39 Q_OBJECT
40public:
[679]41 bncAboutDlg(QWidget* parent);
42 ~bncAboutDlg();
43};
44
[1932]45class bncFlowchartDlg : public QDialog {
[10657]46 Q_OBJECT
[989]47
[10657]48public:
[989]49 bncFlowchartDlg(QWidget* parent);
50 ~bncFlowchartDlg();
51};
52
[1932]53class bncFigure;
[1972]54class bncFigureLate;
[2141]55class bncFigurePPP;
[3245]56class bncBytesCounter;
[3249]57class bncEphUploadCaster;
[3602]58class qtFileChooser;
[5179]59class bncMapWin;
[1932]60
61class bncWindow : public QMainWindow {
[10657]62 Q_OBJECT
[679]63
[10657]64public:
[35]65 bncWindow();
[83]66 ~bncWindow();
[679]67 void CreateMenu();
68 void AddToolbar();
[1912]69
[10766]70
[10657]71public slots:
[1179]72 void slotMountPointsRead(QList<bncGetThread*>);
[2128]73 void slotBncTextChanged();
[35]74
[10657]75private slots:
[1299]76 void slotWindowMessage(const QByteArray msg, bool showOnScreen);
[108]77 void slotHelp();
78 void slotAbout();
[989]79 void slotFlowchart();
[111]80 void slotFontSel();
[35]81 void slotSaveOptions();
82 void slotAddMountPoints();
[5162]83 void slotMapMountPoints();
84 void slotMapPPP();
[5235]85 void slotMapPPPClosed();
[3782]86 void slotStart();
[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();
[7889]97 void slotAddUploadEphRow();
98 void slotDelUploadEphRow();
[10753]99 void slotAddUploadRawRow();
100 void slotDelUploadRawRow();
[3164]101 void slotSetUploadTrafo();
[3892]102 void slotReqcEditOption();
[5971]103 void slotPostProcessingFinished();
104 void slotPostProcessingProgress(int);
[35]105
[10657]106protected:
107 virtual void closeEvent(QCloseEvent*);
[83]108
[10657]109private:
[10766]110
[4076]111 void saveOptions();
[1178]112 void populateMountPointsTable();
[2870]113 void populateCmbTable();
[3164]114 void populateUploadTable();
[7889]115 void populateUploadEphTable();
[10753]116 void populateUploadRawTable();
[3605]117 void enableWidget(bool enable, QWidget* widget);
[3782]118 void startRealTime();
[3787]119 void enableStartStop();
[1178]120
[10657]121 QMenu* _menuHlp;
122 QMenu* _menuFile;
[35]123
[10657]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;
[35]137
138 QLineEdit* _proxyHostLineEdit;
139 QLineEdit* _proxyPortLineEdit;
[3356]140 QLineEdit* _sslCaCertPathLineEdit;
[9795]141 QLineEdit* _sslClientCertPathLineEdit;
[7513]142 QCheckBox* _sslIgnoreErrorsCheckBox;
[35]143 QLineEdit* _outFileLineEdit;
144 QLineEdit* _outPortLineEdit;
[1222]145 QLineEdit* _outUPortLineEdit;
[8621]146 QCheckBox* _outLockTimeCheckBox;
[7325]147 QLineEdit* _ephOutPortLineEdit;
[934]148 QLineEdit* _corrPortLineEdit;
[83]149 QLineEdit* _rnxPathLineEdit;
[9184]150 QLineEdit* _rnxSkelPathLineEdit;
[533]151 QLineEdit* _ephPathLineEdit;
[934]152 QLineEdit* _corrPathLineEdit;
[1307]153 QLineEdit* _miscMountLineEdit;
[5641]154 QLineEdit* _miscPortLineEdit;
[3602]155
[10657]156 QComboBox* _reqcActionComboBox;
157 QPushButton* _reqcEditOptionButton;
[3892]158 qtFileChooser* _reqcObsFileChooser;
159 qtFileChooser* _reqcNavFileChooser;
[10657]160 QLineEdit* _reqcOutObsLineEdit;
161 QLineEdit* _reqcOutNavLineEdit;
162 QLineEdit* _reqcOutLogLineEdit;
163 QLineEdit* _reqcPlotDirLineEdit;
164 QLineEdit* _reqcSkyPlotSignals;
165 QCheckBox* _reqcLogSummaryOnly;
[3731]166
[6332]167 qtFileChooser* _sp3CompFileChooser;
[10657]168 QLineEdit* _sp3CompExclude;
169 QLineEdit* _sp3CompLogLineEdit;
170 QCheckBox* _sp3CompSummaryOnly;
[6332]171
[9760]172 QComboBox* _rnxVersComboBox;
[6237]173 QLineEdit* _rnxV2Priority;
[9760]174 QComboBox* _ephVersComboBox;
[10091]175 //QCheckBox* _ephFilePerStation;
[6796]176 QCheckBox* _rnxFileCheckBox;
[106]177 QLineEdit* _rnxScrpLineEdit;
[143]178 QLineEdit* _logFileLineEdit;
[2386]179 QLineEdit* _rawOutFileLineEdit;
[106]180 QComboBox* _rnxIntrComboBox;
[560]181 QComboBox* _ephIntrComboBox;
[934]182 QComboBox* _corrIntrComboBox;
[9760]183 QComboBox* _rnxSamplComboBox;
184 QComboBox* _rnxSkelExtComboBox;
185 QComboBox* _outSamplComboBox;
[259]186 QCheckBox* _rnxAppendCheckBox;
[1333]187 QCheckBox* _autoStartCheckBox;
[7420]188 QCheckBox* _miscScanRTCMCheckBox;
[10657]189 QSpinBox* _outWaitSpinBox;
[7332]190 QComboBox* _adviseObsRateComboBox;
[10657]191 QSpinBox* _adviseFailSpinBox;
192 QSpinBox* _adviseRecoSpinBox;
[668]193 QLineEdit* _adviseScriptLineEdit;
[7420]194 QComboBox* _miscIntrComboBox;
[83]195 QTableWidget* _mountPointsTable;
[1329]196
[1327]197 QLineEdit* _serialPortNameLineEdit;
198 QLineEdit* _serialMountPointLineEdit;
[1329]199 QComboBox* _serialBaudRateComboBox;
200 QComboBox* _serialParityComboBox;
201 QComboBox* _serialDataBitsComboBox;
202 QComboBox* _serialStopBitsComboBox;
[1636]203 QComboBox* _serialFlowControlComboBox;
[1595]204 QLineEdit* _serialHeightNMEALineEdit;
[1601]205 QLineEdit* _serialFileNMEALineEdit;
[1595]206 QComboBox* _serialAutoNMEAComboBox;
[10657]207 QSpinBox* _serialNMEASamplingSpinBox;
[35]208
[10657]209 QLineEdit* _LatLineEdit;
210 QLineEdit* _LonLineEdit;
[356]211
[10657]212 QComboBox* _onTheFlyComboBox;
[1170]213
[10657]214 QTextEdit* _log;
[83]215
[10657]216 QWidget* _canvas;
[1925]217 QTabWidget* _aogroup;
[463]218
[1925]219 QTabWidget* _loggroup;
[10657]220 bncFigure* _bncFigure;
221 bncFigureLate* _bncFigureLate;
222 bncFigurePPP* _bncFigurePPP;
[1912]223
[10657]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;
[9635]237 qtFileChooser* _cmbBsxFile;
[2868]238
[10657]239 QTableWidget* _uploadTable;
240 QComboBox* _uploadIntrComboBox;
241 QComboBox* _uploadSamplRtcmEphCorrComboBox;
242 QComboBox* _uploadSamplSp3ComboBox;
243 QSpinBox* _uploadSamplClkRnxSpinBox;
244 QSpinBox* _uploadSamplBiaSnxSpinBox;
[6666]245 qtFileChooser* _uploadAntexFile;
[3152]246
[10657]247 QTableWidget* _uploadEphTable;
248 QSpinBox* _uploadSamplRtcmEphSpinBox;
[3240]249
[10753]250 QTableWidget* _uploadRawTable;
251
[10657]252 bncCaster* _caster;
[3249]253 bncEphUploadCaster* _casterEph;
[3735]254
[3782]255 bool _runningRealTime;
[5971]256 bool _runningPPP;
257 bool _runningEdit;
258 bool _runningQC;
[6332]259 bool _runningSp3Comp;
[4766]260
[10657]261 bool running() {
262 return _runningRealTime || _runningPPP || _runningEdit ||
263 _runningQC || _runningSp3Comp;
264 }
[5971]265
[10657]266 bncMapWin* _mapWin;
[5861]267
[5187]268 QList<bncGetThread*> _threads;
[5179]269
[5686]270 t_pppWidgets _pppWidgets;
[35]271};
[5063]272
273#ifdef GNSSCENTER_PLUGIN
274#include "plugininterface.h"
275class t_bncFactory : public QObject, public GnssCenter::t_pluginFactoryInterface {
[10657]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"); }
[5063]281};
[35]282#endif
[5063]283
284#endif
Note: See TracBrowser for help on using the repository browser.