Rev | Line | |
---|
[5406] | 1 | #ifndef GnssCenter_MAP_STATIONS_H
|
---|
| 2 | #define GnssCenter_MAP_STATIONS_H
|
---|
[4836] | 3 |
|
---|
| 4 | #include <QtGui>
|
---|
| 5 | #include <QWhatsThis>
|
---|
[5011] | 6 | #include "plugininterface.h"
|
---|
[4836] | 7 |
|
---|
| 8 | class QwtPlot;
|
---|
| 9 | class QwtPlotZoomer;
|
---|
| 10 |
|
---|
[5001] | 11 | namespace GnssCenter {
|
---|
[4858] | 12 |
|
---|
[5406] | 13 | class t_map_stations : public QDialog {
|
---|
[4836] | 14 | Q_OBJECT
|
---|
| 15 | public:
|
---|
[5406] | 16 | t_map_stations();
|
---|
| 17 | ~t_map_stations();
|
---|
[5012] | 18 |
|
---|
[4836] | 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 |
|
---|
[5406] | 44 | class t_map_stationsFactory : public QObject, public t_pluginFactoryInterface {
|
---|
[5053] | 45 | Q_OBJECT
|
---|
| 46 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
|
---|
| 47 | public:
|
---|
[5406] | 48 | virtual QWidget* create() {return new t_map_stations();}
|
---|
[5055] | 49 | virtual QString getName() const {return QString("Map");}
|
---|
[5053] | 50 | };
|
---|
| 51 |
|
---|
[5001] | 52 | } // namespace GnssCenter
|
---|
[4858] | 53 |
|
---|
[4836] | 54 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.