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

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