source: ntrip/trunk/BNC/bncwindow.h@ 1930

Last change on this file since 1930 was 1930, checked in by mervart, 14 years ago

* empty log message *

File size: 4.7 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
34class FWidget : public QWidget {
35 Q_OBJECT
36 public:
37 FWidget(QWidget *parent);
38 ~FWidget();
39 public slots:
40 void slotNewData(const QByteArray staID, double nbyte);
41 protected:
42 void paintEvent(QPaintEvent *event);
43 private slots:
44 void slotNextAnimationFrame();
45 private:
46 class sumAndMean {
47 public:
48 sumAndMean() {_mean = 0.0; _sum = 0.0;}
49 ~sumAndMean() {}
50 double _mean;
51 double _sum;
52 };
53 QMap<QByteArray, sumAndMean*> _bytes;
54};
55
56class bncAboutDlg : public QDialog {
57 Q_OBJECT
58 public:
59 bncAboutDlg(QWidget* parent);
60 ~bncAboutDlg();
61};
62
63 class bncFlowchartDlg : public QDialog {
64 Q_OBJECT
65
66 public:
67 bncFlowchartDlg(QWidget* parent);
68 ~bncFlowchartDlg();
69};
70
71 class bncWindow : public QMainWindow {
72 Q_OBJECT
73
74 public:
75 bncWindow();
76 ~bncWindow();
77 void CreateMenu();
78 void AddToolbar();
79
80 public slots:
81 void slotMountPointsRead(QList<bncGetThread*>);
82 void bncText(const QString &text);
83
84 private slots:
85 void slotWindowMessage(const QByteArray msg, bool showOnScreen);
86 void slotHelp();
87 void slotAbout();
88 void slotFlowchart();
89 void slotFontSel();
90 void slotSaveOptions();
91 void slotAddMountPoints();
92 void slotGetData();
93 void slotStop();
94 void slotNewMountPoints(QStringList* mountPoints);
95 void slotDeleteMountPoints();
96 void slotGetThreadsFinished();
97 void slotSelectionChanged();
98 void slotWhatsThis();
99
100 protected:
101 virtual void closeEvent(QCloseEvent *);
102
103 private:
104 void populateMountPointsTable();
105
106 QMenu* _menuHlp;
107 QMenu* _menuFile;
108
109 QAction* _actHelp;
110 QAction* _actAbout;
111 QAction* _actFlowchart;
112 QAction* _actFontSel;
113 QAction* _actSaveOpt;
114 QAction* _actQuit;
115 QAction* _actGetData;
116 QAction* _actStop;
117 QAction* _actAddMountPoints;
118 QAction* _actDeleteMountPoints;
119 QAction* _actwhatsthis;
120 QAction* _actwhatsthismenu;
121
122 QLineEdit* _proxyHostLineEdit;
123 QLineEdit* _proxyPortLineEdit;
124 QLineEdit* _outFileLineEdit;
125 QLineEdit* _outPortLineEdit;
126 QLineEdit* _outUPortLineEdit;
127 QLineEdit* _outEphPortLineEdit;
128 QLineEdit* _corrPortLineEdit;
129 QLineEdit* _rnxPathLineEdit;
130 QLineEdit* _ephPathLineEdit;
131 QLineEdit* _corrPathLineEdit;
132 QLineEdit* _miscMountLineEdit;
133 QCheckBox* _rnxV3CheckBox;
134 QCheckBox* _ephV3CheckBox;
135 QLineEdit* _rnxSkelLineEdit;
136 QLineEdit* _rnxScrpLineEdit;
137 QLineEdit* _logFileLineEdit;
138 QComboBox* _rnxIntrComboBox;
139 QComboBox* _ephIntrComboBox;
140 QComboBox* _corrIntrComboBox;
141 QSpinBox* _rnxSamplSpinBox;
142 QSpinBox* _binSamplSpinBox;
143 QCheckBox* _rnxAppendCheckBox;
144 QCheckBox* _autoStartCheckBox;
145 QCheckBox* _scanRTCMCheckBox;
146 QSpinBox* _waitTimeSpinBox;
147 QSpinBox* _corrTimeSpinBox;
148 QComboBox* _obsRateComboBox;
149 QSpinBox* _adviseFailSpinBox;
150 QSpinBox* _adviseRecoSpinBox;
151 QLineEdit* _adviseScriptLineEdit;
152 QComboBox* _perfIntrComboBox;
153 QTableWidget* _mountPointsTable;
154
155 QLineEdit* _serialPortNameLineEdit;
156 QLineEdit* _serialMountPointLineEdit;
157 QComboBox* _serialBaudRateComboBox;
158 QComboBox* _serialParityComboBox;
159 QComboBox* _serialDataBitsComboBox;
160 QComboBox* _serialStopBitsComboBox;
161 QComboBox* _serialFlowControlComboBox;
162 QLineEdit* _serialHeightNMEALineEdit;
163 QLineEdit* _serialFileNMEALineEdit;
164 QComboBox* _serialAutoNMEAComboBox;
165
166 QLineEdit* _LatLineEdit;
167 QLineEdit* _LonLineEdit;
168
169 QComboBox* _onTheFlyComboBox;
170
171 QTextEdit* _log;
172
173 QWidget* _canvas;
174 QTabWidget* _aogroup;
175
176 QTabWidget* _loggroup;
177 FWidget* _Figure1;
178
179 bncCaster* _caster;
180};
181#endif
Note: See TracBrowser for help on using the repository browser.