Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/declarative/MarbleQuickItem.h
Context not available. | |||||
15 | #include <QSharedPointer> | 15 | #include <QSharedPointer> | ||
---|---|---|---|---|---|
16 | #include <QQuickPaintedItem> | 16 | #include <QQuickPaintedItem> | ||
17 | #include "GeoDataAccuracy.h" | 17 | #include "GeoDataAccuracy.h" | ||
18 | #include "GeoDataLineString.h" | ||||
18 | #include "MarbleGlobal.h" | 19 | #include "MarbleGlobal.h" | ||
19 | #include "PositionProviderPluginInterface.h" | 20 | #include "PositionProviderPluginInterface.h" | ||
20 | #include "MarbleMap.h" | 21 | #include "MarbleMap.h" | ||
Context not available. | |||||
64 | Q_PROPERTY(qreal angle READ angle NOTIFY angleChanged) | 65 | Q_PROPERTY(qreal angle READ angle NOTIFY angleChanged) | ||
65 | Q_PROPERTY(bool inertialGlobeRotation READ inertialGlobeRotation WRITE setInertialGlobeRotation NOTIFY inertialGlobeRotationChanged) | 66 | Q_PROPERTY(bool inertialGlobeRotation READ inertialGlobeRotation WRITE setInertialGlobeRotation NOTIFY inertialGlobeRotationChanged) | ||
66 | Q_PROPERTY(bool animationViewContext READ animationViewContext WRITE setAnimationViewContext NOTIFY animationViewContextChanged) | 67 | Q_PROPERTY(bool animationViewContext READ animationViewContext WRITE setAnimationViewContext NOTIFY animationViewContextChanged) | ||
68 | Q_PROPERTY(bool animationsEnabled READ animationsEnabled WRITE setAnimationsEnabled NOTIFY animationsEnabledChanged) | ||||
67 | Q_PROPERTY(QQmlComponent* placemarkDelegate READ placemarkDelegate WRITE setPlacemarkDelegate NOTIFY placemarkDelegateChanged) | 69 | Q_PROPERTY(QQmlComponent* placemarkDelegate READ placemarkDelegate WRITE setPlacemarkDelegate NOTIFY placemarkDelegateChanged) | ||
68 | 70 | | |||
69 | public: | 71 | public: | ||
Context not available. | |||||
126 | 128 | | |||
127 | void setInertialGlobeRotation(bool inertialGlobeRotation); | 129 | void setInertialGlobeRotation(bool inertialGlobeRotation); | ||
128 | void setAnimationViewContext(bool animationViewContext); | 130 | void setAnimationViewContext(bool animationViewContext); | ||
131 | void setAnimationsEnabled(bool animationsEnabled); | ||||
129 | 132 | | |||
130 | void setPluginSetting(const QString &plugin, const QString &key, const QString &value); | 133 | void setPluginSetting(const QString &plugin, const QString &key, const QString &value); | ||
131 | 134 | | |||
Context not available. | |||||
147 | Q_INVOKABLE void setRelationTypeVisible(const QString &relationType, bool visible); | 150 | Q_INVOKABLE void setRelationTypeVisible(const QString &relationType, bool visible); | ||
148 | Q_INVOKABLE bool isRelationTypeVisible(const QString &relationType) const; | 151 | Q_INVOKABLE bool isRelationTypeVisible(const QString &relationType) const; | ||
149 | 152 | | |||
153 | | ||||
150 | public: | 154 | public: | ||
151 | void paint(QPainter *painter) override; | 155 | void paint(QPainter *painter) override; | ||
152 | 156 | | |||
Context not available. | |||||
182 | Q_INVOKABLE qreal angleFromPointToCurrentLocation(const QPoint & position) const; | 186 | Q_INVOKABLE qreal angleFromPointToCurrentLocation(const QPoint & position) const; | ||
183 | Placemark* currentPosition() const; | 187 | Placemark* currentPosition() const; | ||
184 | Q_INVOKABLE QPointF screenCoordinatesFromCoordinate(Coordinate * coordinate) const; | 188 | Q_INVOKABLE QPointF screenCoordinatesFromCoordinate(Coordinate * coordinate) const; | ||
189 | Q_INVOKABLE QPointF screenCoordinatesFromGeoDataCoordinates(const GeoDataCoordinates & coordinates) const; | ||||
190 | Q_INVOKABLE bool screenCoordinatesFromGeoDataLineString(const GeoDataLineString &lineString, QVector<QPolygonF*> &polygons ) const; | ||||
191 | | ||||
185 | qreal speed() const; | 192 | qreal speed() const; | ||
186 | qreal angle() const; | 193 | qreal angle() const; | ||
187 | 194 | | |||
Context not available. | |||||
193 | 200 | | |||
194 | bool inertialGlobeRotation() const; | 201 | bool inertialGlobeRotation() const; | ||
195 | bool animationViewContext() const; | 202 | bool animationViewContext() const; | ||
203 | bool animationsEnabled() const; | ||||
204 | | ||||
196 | QQmlComponent* placemarkDelegate() const; | 205 | QQmlComponent* placemarkDelegate() const; | ||
197 | void reverseGeocoding(const QPoint &point); | 206 | void reverseGeocoding(const QPoint &point); | ||
198 | 207 | | |||
Context not available. | |||||
228 | void animationViewContextChanged(bool animationViewContext); | 237 | void animationViewContextChanged(bool animationViewContext); | ||
229 | void placemarkDelegateChanged(QQmlComponent* placemarkDelegate); | 238 | void placemarkDelegateChanged(QQmlComponent* placemarkDelegate); | ||
230 | 239 | | |||
240 | void animationsEnabledChanged(bool animationsEnabled); | ||||
241 | | ||||
231 | protected: | 242 | protected: | ||
232 | QObject *getEventFilter() const; | 243 | QObject *getEventFilter() const; | ||
233 | void pinch(const QPointF& center, qreal scale, Qt::GestureState state); | 244 | void pinch(const QPointF& center, qreal scale, Qt::GestureState state); | ||
Context not available. |