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

Last change on this file since 8188 was 8127, checked in by stoecker, 7 years ago

update qwt and qwtpolar, many QT5 fixes (unfinished)

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