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, public t_pluginInterface {
|
---|
14 | Q_OBJECT
|
---|
15 | public:
|
---|
16 | t_svgMap();
|
---|
17 | ~t_svgMap();
|
---|
18 | virtual bool expectInputFile() const {return false;}
|
---|
19 | virtual void setInputFile(const QString&) {}
|
---|
20 | virtual void show() {QDialog::show();}
|
---|
21 |
|
---|
22 | public slots:
|
---|
23 | void slotNewPoint(const QString& name, double latDeg, double lonDeg);
|
---|
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 | };
|
---|
46 |
|
---|
47 | class t_svgMapFactory : public QObject, public t_pluginFactoryInterface {
|
---|
48 | Q_OBJECT
|
---|
49 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
|
---|
50 | public:
|
---|
51 | t_pluginInterface* create() {return new t_svgMap();}
|
---|
52 | };
|
---|
53 |
|
---|
54 | } // namespace GnssCenter
|
---|
55 |
|
---|
56 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.