Line | |
---|
1 | #ifndef LANDMARK_H
|
---|
2 | #define LANDMARK_H
|
---|
3 |
|
---|
4 | #include <QGeoMapGroupObject>
|
---|
5 | #include <QGeoCoordinate>
|
---|
6 |
|
---|
7 | namespace QtMobility {
|
---|
8 | class QGraphicsGeoMap;
|
---|
9 | class QGeoMapTextObject;
|
---|
10 | class QGeoMapPixmapObject;
|
---|
11 | }
|
---|
12 |
|
---|
13 |
|
---|
14 | class Landmark : public QtMobility::QGeoMapGroupObject
|
---|
15 | {
|
---|
16 |
|
---|
17 | public:
|
---|
18 | Landmark(QtMobility::QGraphicsGeoMap *geoMap,const QtMobility::QGeoCoordinate &coordinate,QString name,QString type="landmark");
|
---|
19 | ~Landmark();
|
---|
20 |
|
---|
21 | QtMobility::QGeoCoordinate coordinate(void);
|
---|
22 | void setCoordinate(const QtMobility::QGeoCoordinate &coordinate);
|
---|
23 | void setText(QString string);
|
---|
24 | void setColor(Qt::GlobalColor color);
|
---|
25 | void RemoveLandmark(void);
|
---|
26 | void AddLandmark(QtMobility::QGraphicsGeoMap *geoMap);
|
---|
27 |
|
---|
28 | private:
|
---|
29 | QtMobility::QGeoMapTextObject* text;
|
---|
30 | QtMobility::QGeoMapPixmapObject* pixmap;
|
---|
31 | QtMobility::QGraphicsGeoMap *geoMap;
|
---|
32 | };
|
---|
33 |
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.