Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/render/graticule/GraticulePlugin.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 62 | { | |||
---|---|---|---|---|---|
63 | return QStringList( "graticule" ); | 63 | return QStringList( "graticule" ); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | QString GraticulePlugin::renderPolicy() const | 66 | QString GraticulePlugin::renderPolicy() const | ||
67 | { | 67 | { | ||
68 | return QString( "ALWAYS" ); | 68 | return QString( "ALWAYS" ); | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | QStringList GraticulePlugin::renderPosition() const | 71 | RenderPositions GraticulePlugin::renderPositions() const | ||
72 | { | 72 | { | ||
73 | return QStringList( "SURFACE" ); | 73 | return SurfaceRenderPosition; | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | QString GraticulePlugin::name() const | 76 | QString GraticulePlugin::name() const | ||
77 | { | 77 | { | ||
78 | return tr( "Coordinate Grid" ); | 78 | return tr( "Coordinate Grid" ); | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | QString GraticulePlugin::guiString() const | 81 | QString GraticulePlugin::guiString() const | ||
▲ Show 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | 250 | { | |||
252 | m_tropicsCirclePen.setColor( ui_configWidget->tropicsPushButton->palette().color( QPalette::Button ) ); | 252 | m_tropicsCirclePen.setColor( ui_configWidget->tropicsPushButton->palette().color( QPalette::Button ) ); | ||
253 | m_gridCirclePen.setColor( ui_configWidget->gridPushButton->palette().color( QPalette::Button) ); | 253 | m_gridCirclePen.setColor( ui_configWidget->gridPushButton->palette().color( QPalette::Button) ); | ||
254 | m_showPrimaryLabels = ui_configWidget->primaryCheckBox->isChecked(); | 254 | m_showPrimaryLabels = ui_configWidget->primaryCheckBox->isChecked(); | ||
255 | m_showSecondaryLabels = ui_configWidget->secondaryCheckBox->isChecked(); | 255 | m_showSecondaryLabels = ui_configWidget->secondaryCheckBox->isChecked(); | ||
256 | 256 | | |||
257 | emit settingsChanged( nameId() ); | 257 | emit settingsChanged( nameId() ); | ||
258 | } | 258 | } | ||
259 | 259 | | |||
260 | bool GraticulePlugin::render( GeoPainter *painter, ViewportParams *viewport, | 260 | bool GraticulePlugin::render(GeoPainter *painter, ViewportParams *viewport, | ||
261 | const QString& renderPos, | 261 | RenderPosition renderPos, GeoSceneLayer *layer) | ||
262 | GeoSceneLayer * layer ) | | |||
263 | { | 262 | { | ||
264 | Q_UNUSED( layer ) | 263 | Q_UNUSED( layer ) | ||
265 | Q_UNUSED( renderPos ) | 264 | Q_UNUSED( renderPos ) | ||
266 | 265 | | |||
267 | if ( m_currentNotation != GeoDataCoordinates::defaultNotation() ) { | 266 | if ( m_currentNotation != GeoDataCoordinates::defaultNotation() ) { | ||
268 | initLineMaps( GeoDataCoordinates::defaultNotation() ); | 267 | initLineMaps( GeoDataCoordinates::defaultNotation() ); | ||
269 | } | 268 | } | ||
270 | 269 | | |||
▲ Show 20 Lines • Show All 522 Lines • Show Last 20 Lines |