Changeset 15 in flair-src for trunk/tools/FlairGCS/src/Map.h
- Timestamp:
- Apr 8, 2016, 3:40:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/Map.h
r10 r15 18 18 19 19 namespace QtMobility { 20 21 22 20 class QGeoMappingManager; 21 class QGraphicsGeoMap; 22 class QGeoServiceProvider; 23 23 } 24 24 25 class Map: public DataRemote 26 { 27 Q_OBJECT 25 class Map : public DataRemote { 26 Q_OBJECT 28 27 29 public: 30 Map(Layout* parent,int row, int col,QString name,QList<QtMobility::QGeoCoordinate> coordinates,bool enabled,int period); 31 ~Map(); 32 void setCenteredPoint(int i); 33 int centeredPoint(void); 34 bool isCentered(void); 28 public: 29 Map(Layout *parent, int row, int col, QString name, 30 QList<QtMobility::QGeoCoordinate> coordinates, bool enabled, int period); 31 ~Map(); 32 void setCenteredPoint(int i); 33 int centeredPoint(void); 34 bool isCentered(void); 35 35 36 37 38 39 40 41 42 QComboBox *mapTypeCombo,*serviceCombo,*proxyCombo;43 44 QToolButton *zoomin,*zoomout;45 46 47 QList<Landmark*> points;48 36 private: 37 MapWidget *mapWidget; 38 QtMobility::QGeoMappingManager *manager; 39 QList<QtMobility::QGeoMappingManager *> managers; 40 QtMobility::QGraphicsGeoMap *geoMap; 41 QtMobility::QGeoServiceProvider *service; 42 QComboBox *mapTypeCombo, *serviceCombo, *proxyCombo; 43 QHash<QtMobility::QGraphicsGeoMap::MapType, QString> mapTypes; 44 QToolButton *zoomin, *zoomout; 45 QAction *zoomInAction; 46 QAction *zoomOutAction; 47 QList<Landmark *> points; 48 int centeredpoint; 49 49 50 51 52 53 54 55 56 57 void BufEvent(char** buf,int *buf_size,uint16_t period,bool big_endian);50 bool findServices(void); 51 void findproxy(void); 52 void populateMapTypeCombo(); 53 bool IsUptodate(void); 54 void SetUptodate(void); 55 void Reset(void); 56 void XmlEvent(QDomElement dom); 57 void BufEvent(char **buf, int *buf_size, uint16_t period, bool big_endian); 58 58 59 60 59 void RemovePoints(void); 60 void AddPoints(QtMobility::QGraphicsGeoMap *geoMap); 61 61 62 private slots: 63 void changeMapType(int index); 64 void selectService(int index); 65 void changeproxy(int index); 66 void updateZoom(qreal value); 67 void zoomIn(void); 68 void zoomOut(void); 69 62 private slots: 63 void changeMapType(int index); 64 void selectService(int index); 65 void changeproxy(int index); 66 void updateZoom(qreal value); 67 void zoomIn(void); 68 void zoomOut(void); 70 69 }; 71 70
Note:
See TracChangeset
for help on using the changeset viewer.