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

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