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

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