source: ntrip/trunk/GnssCenter/map_stations/map_stations.h@ 5410

Last change on this file since 5410 was 5410, checked in by mervart, 11 years ago
File size: 1.2 KB
Line 
1#ifndef GnssCenter_MAP_STATIONS_H
2#define GnssCenter_MAP_STATIONS_H
3
4#include <QtGui>
5#include <QWhatsThis>
6#include "plugininterface.h"
7
8class QwtPlot;
9class QwtPlotZoomer;
10class t_thriftClient;
11
12namespace GnssCenter {
13
14class t_map_stations : public QDialog {
15 Q_OBJECT
16 public:
17 t_map_stations();
18 ~t_map_stations();
19
20 public slots:
21 void slotNewPoint(const QString& name, double latDeg, double lonDeg);
22
23 private slots:
24 void slotClose();
25 void slotPrint();
26 void slotWhatsThis();
27
28 protected:
29 virtual void closeEvent(QCloseEvent *);
30 virtual void showEvent(QShowEvent *);
31
32 private:
33 QwtPlot* _mapPlot;
34 QwtPlotZoomer* _mapPlotZoomer;
35 QPushButton* _buttonClose;
36 QPushButton* _buttonPrint;
37 QPushButton* _buttonWhatsThis;
38 double _minPointLat;
39 double _maxPointLat;
40 double _minPointLon;
41 double _maxPointLon;
42
43 t_thriftClient* _thriftClient;
44};
45
46class t_map_stationsFactory : public QObject, public t_pluginFactoryInterface {
47 Q_OBJECT
48 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
49 public:
50 virtual QWidget* create() {return new t_map_stations();}
51 virtual QString getName() const {return QString("Map of Stations");}
52};
53
54} // namespace GnssCenter
55
56#endif
Note: See TracBrowser for help on using the repository browser.