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

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

* empty log message *

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