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"
|
---|
[5415] | 7 | #include "thriftclient.h"
|
---|
[4836] | 8 |
|
---|
| 9 | class QwtPlot;
|
---|
| 10 | class QwtPlotZoomer;
|
---|
[5407] | 11 | class t_thriftClient;
|
---|
[4836] | 12 |
|
---|
[5001] | 13 | namespace GnssCenter {
|
---|
[4858] | 14 |
|
---|
[5406] | 15 | class t_map_stations : public QDialog {
|
---|
[4836] | 16 | Q_OBJECT
|
---|
| 17 | public:
|
---|
[5406] | 18 | t_map_stations();
|
---|
| 19 | ~t_map_stations();
|
---|
[5012] | 20 |
|
---|
[4836] | 21 | public slots:
|
---|
| 22 | void slotNewPoint(const QString& name, double latDeg, double lonDeg);
|
---|
[5415] | 23 | void slotNewThriftResult(t_thriftResult);
|
---|
[4836] | 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:
|
---|
[5407] | 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;
|
---|
[4836] | 44 |
|
---|
[5410] | 45 | t_thriftClient* _thriftClient;
|
---|
[4836] | 46 | };
|
---|
| 47 |
|
---|
[5406] | 48 | class t_map_stationsFactory : public QObject, public t_pluginFactoryInterface {
|
---|
[5053] | 49 | Q_OBJECT
|
---|
| 50 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
|
---|
| 51 | public:
|
---|
[5406] | 52 | virtual QWidget* create() {return new t_map_stations();}
|
---|
[5407] | 53 | virtual QString getName() const {return QString("Map of Stations");}
|
---|
[5053] | 54 | };
|
---|
| 55 |
|
---|
[5001] | 56 | } // namespace GnssCenter
|
---|
[4858] | 57 |
|
---|
[4836] | 58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.