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