Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/render/positionmarker/PositionMarker.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | PositionMarker::~PositionMarker () | 61 | PositionMarker::~PositionMarker () | ||
62 | { | 62 | { | ||
63 | delete ui_configWidget; | 63 | delete ui_configWidget; | ||
64 | delete m_configDialog; | 64 | delete m_configDialog; | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | QStringList PositionMarker::renderPosition() const | 67 | RenderPositions PositionMarker::renderPositions() const | ||
68 | { | 68 | { | ||
69 | return QStringList( "HOVERS_ABOVE_SURFACE" ); | 69 | return HoversAboveSurfaceRenderPosition; | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | QString PositionMarker::renderPolicy() const | 72 | QString PositionMarker::renderPolicy() const | ||
73 | { | 73 | { | ||
74 | return "ALWAYS"; | 74 | return "ALWAYS"; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | QStringList PositionMarker::backendTypes() const | 77 | QStringList PositionMarker::backendTypes() const | ||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 157 | { | |||
165 | loadDefaultCursor(); | 165 | loadDefaultCursor(); | ||
166 | } | 166 | } | ||
167 | 167 | | |||
168 | bool PositionMarker::isInitialized() const | 168 | bool PositionMarker::isInitialized() const | ||
169 | { | 169 | { | ||
170 | return m_isInitialized; | 170 | return m_isInitialized; | ||
171 | } | 171 | } | ||
172 | 172 | | |||
173 | bool PositionMarker::render( GeoPainter *painter, | 173 | bool PositionMarker::render(GeoPainter *painter, | ||
174 | ViewportParams *viewport, | 174 | ViewportParams *viewport, | ||
175 | const QString& renderPos, | 175 | RenderPosition renderPos, | ||
176 | GeoSceneLayer * layer ) | 176 | GeoSceneLayer *layer) | ||
177 | { | 177 | { | ||
178 | Q_UNUSED( renderPos ) | 178 | Q_UNUSED( renderPos ) | ||
179 | Q_UNUSED( layer ) | 179 | Q_UNUSED( layer ) | ||
180 | 180 | | |||
181 | bool const gpsActive = marbleModel()->positionTracking()->positionProviderPlugin() != 0; | 181 | bool const gpsActive = marbleModel()->positionTracking()->positionProviderPlugin() != 0; | ||
182 | bool const positionAvailable = marbleModel()->positionTracking()->status() == PositionProviderStatusAvailable; | 182 | bool const positionAvailable = marbleModel()->positionTracking()->status() == PositionProviderStatusAvailable; | ||
183 | bool const positionValid = m_currentPosition.isValid(); | 183 | bool const positionValid = m_currentPosition.isValid(); | ||
184 | if ( gpsActive && positionAvailable && positionValid ) { | 184 | if ( gpsActive && positionAvailable && positionValid ) { | ||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |