Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/QtMarbleConfigDialog.cpp
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Line(s) | 287 | { | |||
---|---|---|---|---|---|
295 | d->ui_viewSettings.kcfg_animationQuality->setCurrentIndex( animationQuality() ); | 295 | d->ui_viewSettings.kcfg_animationQuality->setCurrentIndex( animationQuality() ); | ||
296 | d->ui_viewSettings.kcfg_labelLocalization->setCurrentIndex( Marble::Native ); | 296 | d->ui_viewSettings.kcfg_labelLocalization->setCurrentIndex( Marble::Native ); | ||
297 | d->ui_viewSettings.kcfg_mapFont->setCurrentFont( mapFont() ); | 297 | d->ui_viewSettings.kcfg_mapFont->setCurrentFont( mapFont() ); | ||
298 | 298 | | |||
299 | // Navigation | 299 | // Navigation | ||
300 | d->ui_navigationSettings.kcfg_dragLocation->setCurrentIndex( Marble::KeepAxisVertically ); | 300 | d->ui_navigationSettings.kcfg_dragLocation->setCurrentIndex( Marble::KeepAxisVertically ); | ||
301 | d->ui_navigationSettings.kcfg_onStartup->setCurrentIndex( onStartup() ); | 301 | d->ui_navigationSettings.kcfg_onStartup->setCurrentIndex( onStartup() ); | ||
302 | d->ui_navigationSettings.kcfg_inertialEarthRotation->setChecked( inertialEarthRotation() ); | 302 | d->ui_navigationSettings.kcfg_inertialEarthRotation->setChecked( inertialEarthRotation() ); | ||
303 | d->ui_navigationSettings.kcfg_mouseViewRotation->setChecked( mouseViewRotation() ); | ||||
303 | d->ui_navigationSettings.kcfg_animateTargetVoyage->setChecked( animateTargetVoyage() ); | 304 | d->ui_navigationSettings.kcfg_animateTargetVoyage->setChecked( animateTargetVoyage() ); | ||
304 | int editorIndex = 0; | 305 | int editorIndex = 0; | ||
305 | if (externalMapEditor() == QLatin1String("potlatch")) { | 306 | if (externalMapEditor() == QLatin1String("potlatch")) { | ||
306 | editorIndex = 1; | 307 | editorIndex = 1; | ||
307 | } else if (externalMapEditor() == QLatin1String("josm")) { | 308 | } else if (externalMapEditor() == QLatin1String("josm")) { | ||
308 | editorIndex = 2; | 309 | editorIndex = 2; | ||
309 | } else if (externalMapEditor() == QLatin1String("merkaartor")) { | 310 | } else if (externalMapEditor() == QLatin1String("merkaartor")) { | ||
310 | editorIndex = 3; | 311 | editorIndex = 3; | ||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 383 | { | |||
388 | d->m_settings.setValue( "stillQuality", d->ui_viewSettings.kcfg_stillQuality->currentIndex() ); | 389 | d->m_settings.setValue( "stillQuality", d->ui_viewSettings.kcfg_stillQuality->currentIndex() ); | ||
389 | d->m_settings.setValue( "animationQuality", d->ui_viewSettings.kcfg_animationQuality->currentIndex() ); | 390 | d->m_settings.setValue( "animationQuality", d->ui_viewSettings.kcfg_animationQuality->currentIndex() ); | ||
390 | d->m_settings.setValue( "mapFont", d->ui_viewSettings.kcfg_mapFont->currentFont() ); | 391 | d->m_settings.setValue( "mapFont", d->ui_viewSettings.kcfg_mapFont->currentFont() ); | ||
391 | d->m_settings.endGroup(); | 392 | d->m_settings.endGroup(); | ||
392 | 393 | | |||
393 | d->m_settings.beginGroup( "Navigation" ); | 394 | d->m_settings.beginGroup( "Navigation" ); | ||
394 | d->m_settings.setValue( "onStartup", d->ui_navigationSettings.kcfg_onStartup->currentIndex() ); | 395 | d->m_settings.setValue( "onStartup", d->ui_navigationSettings.kcfg_onStartup->currentIndex() ); | ||
395 | d->m_settings.setValue( "inertialEarthRotation", d->ui_navigationSettings.kcfg_inertialEarthRotation->isChecked() ); | 396 | d->m_settings.setValue( "inertialEarthRotation", d->ui_navigationSettings.kcfg_inertialEarthRotation->isChecked() ); | ||
397 | d->m_settings.setValue( "mouseViewRotation", d->ui_navigationSettings.kcfg_mouseViewRotation->isChecked() ); | ||||
396 | d->m_settings.setValue( "animateTargetVoyage", d->ui_navigationSettings.kcfg_animateTargetVoyage->isChecked() ); | 398 | d->m_settings.setValue( "animateTargetVoyage", d->ui_navigationSettings.kcfg_animateTargetVoyage->isChecked() ); | ||
397 | if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 0 ) { | 399 | if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 0 ) { | ||
398 | d->m_settings.setValue( "externalMapEditor", "" ); | 400 | d->m_settings.setValue( "externalMapEditor", "" ); | ||
399 | } else if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 1 ) { | 401 | } else if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 1 ) { | ||
400 | d->m_settings.setValue( "externalMapEditor", "potlatch" ); | 402 | d->m_settings.setValue( "externalMapEditor", "potlatch" ); | ||
401 | } else if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 2 ) { | 403 | } else if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 2 ) { | ||
402 | d->m_settings.setValue( "externalMapEditor", "josm" ); | 404 | d->m_settings.setValue( "externalMapEditor", "josm" ); | ||
403 | } else if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 3 ) { | 405 | } else if( d->ui_navigationSettings.kcfg_externalMapEditor->currentIndex() == 3 ) { | ||
▲ Show 20 Lines • Show All 100 Lines • ▼ Show 20 Line(s) | 504 | { | |||
504 | return d->m_settings.value( "Navigation/animateTargetVoyage", smallScreen ).toBool(); | 506 | return d->m_settings.value( "Navigation/animateTargetVoyage", smallScreen ).toBool(); | ||
505 | } | 507 | } | ||
506 | 508 | | |||
507 | bool QtMarbleConfigDialog::inertialEarthRotation() const | 509 | bool QtMarbleConfigDialog::inertialEarthRotation() const | ||
508 | { | 510 | { | ||
509 | return d->m_settings.value( "Navigation/inertialEarthRotation", true ).toBool(); | 511 | return d->m_settings.value( "Navigation/inertialEarthRotation", true ).toBool(); | ||
510 | } | 512 | } | ||
511 | 513 | | |||
514 | bool QtMarbleConfigDialog::mouseViewRotation() const | ||||
515 | { | ||||
516 | return d->m_settings.value( "Navigation/mouseViewRotation", true ).toBool(); | ||||
517 | } | ||||
518 | | ||||
512 | int QtMarbleConfigDialog::volatileTileCacheLimit() const | 519 | int QtMarbleConfigDialog::volatileTileCacheLimit() const | ||
513 | { | 520 | { | ||
514 | int defaultValue = (MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen) ? 6 : 100; | 521 | int defaultValue = (MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen) ? 6 : 100; | ||
515 | return d->m_settings.value( "Cache/volatileTileCacheLimit", defaultValue ).toInt(); | 522 | return d->m_settings.value( "Cache/volatileTileCacheLimit", defaultValue ).toInt(); | ||
516 | } | 523 | } | ||
517 | 524 | | |||
518 | int QtMarbleConfigDialog::persistentTileCacheLimit() const | 525 | int QtMarbleConfigDialog::persistentTileCacheLimit() const | ||
519 | { | 526 | { | ||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |