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

Last change on this file since 5943 was 5943, 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
71 private slots:
72 void slotWindowMessage(const QByteArray msg, bool showOnScreen);
73 void slotHelp();
74 void slotAbout();
75 void slotFlowchart();
76 void slotFontSel();
77 void slotSaveOptions();
78 void slotAddMountPoints();
79 void slotMapMountPoints();
80 void slotMapPPP();
81 void slotMapPPPClosed();
82 void slotStart();
83 void slotStop();
84 void slotNewMountPoints(QStringList* mountPoints);
85 void slotDeleteMountPoints();
86 void slotGetThreadsFinished();
87 void slotSelectionChanged();
88 void slotWhatsThis();
89 void slotAddCmbRow();
90 void slotDelCmbRow();
91 void slotAddUploadRow();
92 void slotDelUploadRow();
93 void slotSetUploadTrafo();
94 void slotReqcEditOption();
95 void slotFinishedPostProcessingReqc();
96 void slotPostProgress(int);
97 void slotFinishedRnxPPP();
98
99 protected:
100 virtual void closeEvent(QCloseEvent *);
101
102 private:
103 void saveOptions();
104 void populateMountPointsTable();
105 void populateCmbTable();
106 void populateUploadTable();
107 void enableWidget(bool enable, QWidget* widget);
108 void startRealTime();
109 void startPostProcessingReqc();
110 void enableStartStop();
111
112 QMenu* _menuHlp;
113 QMenu* _menuFile;
114
115 QAction* _actHelp;
116 QAction* _actAbout;
117 QAction* _actFlowchart;
118 QAction* _actFontSel;
119 QAction* _actSaveOpt;
120 QAction* _actQuit;
121 QAction* _actMapMountPoints;
122 QAction* _actStart;
123 QAction* _actStop;
124 QAction* _actAddMountPoints;
125 QAction* _actDeleteMountPoints;
126 QAction* _actwhatsthis;
127 QAction* _actwhatsthismenu;
128
129 QLineEdit* _proxyHostLineEdit;
130 QLineEdit* _proxyPortLineEdit;
131 QLineEdit* _sslCaCertPathLineEdit;
132 QCheckBox* _ignoreSslErrorsCheckBox;
133 QLineEdit* _outFileLineEdit;
134 QLineEdit* _outPortLineEdit;
135 QLineEdit* _outUPortLineEdit;
136 QLineEdit* _outEphPortLineEdit;
137 QLineEdit* _corrPortLineEdit;
138 QLineEdit* _rnxPathLineEdit;
139 QLineEdit* _ephPathLineEdit;
140 QLineEdit* _corrPathLineEdit;
141 QLineEdit* _miscMountLineEdit;
142 QLineEdit* _miscPortLineEdit;
143
144 QComboBox* _reqcActionComboBox;
145 QPushButton* _reqcEditOptionButton;
146 qtFileChooser* _reqcObsFileChooser;
147 qtFileChooser* _reqcNavFileChooser;
148 QLineEdit* _reqcOutObsLineEdit;
149 QLineEdit* _reqcOutNavLineEdit;
150 QLineEdit* _reqcOutLogLineEdit;
151 QLineEdit* _reqcPlotDirLineEdit;
152 QComboBox* _reqcSkyPlotSystems;
153
154 QCheckBox* _rnxV3CheckBox;
155 QCheckBox* _ephV3CheckBox;
156 QLineEdit* _rnxSkelLineEdit;
157 QLineEdit* _rnxScrpLineEdit;
158 QLineEdit* _logFileLineEdit;
159 QLineEdit* _rawOutFileLineEdit;
160 QComboBox* _rnxIntrComboBox;
161 QComboBox* _ephIntrComboBox;
162 QComboBox* _corrIntrComboBox;
163 QSpinBox* _rnxSamplSpinBox;
164 QSpinBox* _binSamplSpinBox;
165 QCheckBox* _rnxAppendCheckBox;
166 QCheckBox* _autoStartCheckBox;
167 QCheckBox* _scanRTCMCheckBox;
168 QSpinBox* _waitTimeSpinBox;
169 QSpinBox* _corrTimeSpinBox;
170 QComboBox* _obsRateComboBox;
171 QSpinBox* _adviseFailSpinBox;
172 QSpinBox* _adviseRecoSpinBox;
173 QLineEdit* _adviseScriptLineEdit;
174 QComboBox* _perfIntrComboBox;
175 QTableWidget* _mountPointsTable;
176
177 QLineEdit* _serialPortNameLineEdit;
178 QLineEdit* _serialMountPointLineEdit;
179 QComboBox* _serialBaudRateComboBox;
180 QComboBox* _serialParityComboBox;
181 QComboBox* _serialDataBitsComboBox;
182 QComboBox* _serialStopBitsComboBox;
183 QComboBox* _serialFlowControlComboBox;
184 QLineEdit* _serialHeightNMEALineEdit;
185 QLineEdit* _serialFileNMEALineEdit;
186 QComboBox* _serialAutoNMEAComboBox;
187
188 QLineEdit* _LatLineEdit;
189 QLineEdit* _LonLineEdit;
190
191 QComboBox* _onTheFlyComboBox;
192
193 QTextEdit* _log;
194
195 QWidget* _canvas;
196 QTabWidget* _aogroup;
197
198 QTabWidget* _loggroup;
199 bncFigure* _bncFigure;
200 bncFigureLate* _bncFigureLate;
201 bncFigurePPP* _bncFigurePPP;
202
203 QTableWidget* _cmbTable;
204 QLineEdit* _cmbMaxresLineEdit;
205 QComboBox* _cmbMethodComboBox;
206 QSpinBox* _cmbSamplSpinBox;
207
208 QTableWidget* _uploadTable;
209 QComboBox* _uploadIntrComboBox;
210 QSpinBox* _uploadSamplRtcmEphCorrSpinBox;
211 QSpinBox* _uploadSamplSp3SpinBox;
212 QSpinBox* _uploadSamplClkRnxSpinBox;
213
214 QLineEdit* _uploadEphHostLineEdit;
215 QLineEdit* _uploadEphPortLineEdit;
216 QLineEdit* _uploadEphPasswordLineEdit;
217 QLineEdit* _uploadEphMountpointLineEdit;
218 QSpinBox* _uploadEphSampleSpinBox;
219 bncBytesCounter* _uploadEphBytesCounter;
220
221 bncCaster* _caster;
222 bncEphUploadCaster* _casterEph;
223
224 bool _runningRealTime;
225 bool _runningPostProcessingReqc;
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.