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

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