3 #ifndef MARBLESETTINGS_H
4 #define MARBLESETTINGS_H
6 #include <kconfigskeleton.h>
9 #include <kglobalsettings.h>
10 #include "../../lib/marble/MarbleGlobal.h"
11 #include <QtCore/QDir>
12 #include <QtCore/QLocale>
26 if (!
self()->isImmutable( QString::fromLatin1(
"homeLongitude" ) ))
45 if (!
self()->isImmutable( QString::fromLatin1(
"homeLatitude" ) ))
64 if (!
self()->isImmutable( QString::fromLatin1(
"homeZoom" ) ))
83 if (!
self()->isImmutable( QString::fromLatin1(
"quitLongitude" ) ))
102 if (!
self()->isImmutable( QString::fromLatin1(
"quitLatitude" ) ))
121 if (!
self()->isImmutable( QString::fromLatin1(
"quitRange" ) ))
140 if (!
self()->isImmutable( QString::fromLatin1(
"mapTheme" ) ))
159 if (!
self()->isImmutable( QString::fromLatin1(
"showClouds" ) ))
178 if (!
self()->isImmutable( QString::fromLatin1(
"workOffline" ) ))
197 if (!
self()->isImmutable( QString::fromLatin1(
"showCurrentLocation" ) ))
216 if (!
self()->isImmutable( QString::fromLatin1(
"lockFloatItemPositions" ) ))
235 if (!
self()->isImmutable( QString::fromLatin1(
"projection" ) ))
254 if (!
self()->isImmutable( QString::fromLatin1(
"marbleDataPath" ) ))
273 if (!
self()->isImmutable( QString::fromLatin1(
"showBookmarks" ) ))
292 if (!
self()->isImmutable( QString::fromLatin1(
"dateTime" ) ))
313 kDebug() <<
"setSpeedSlider: value " << v <<
" is less than the minimum value of -100";
319 kDebug() <<
"setSpeedSlider: value " << v <<
" is greater than the maximum value of 100";
323 if (!
self()->isImmutable( QString::fromLatin1(
"speedSlider" ) ))
342 if (!
self()->isImmutable( QString::fromLatin1(
"systemTime" ) ))
361 if (!
self()->isImmutable( QString::fromLatin1(
"lastSessionTime" ) ))
380 if (!
self()->isImmutable( QString::fromLatin1(
"systemTimezone" ) ))
399 if (!
self()->isImmutable( QString::fromLatin1(
"utc" ) ))
418 if (!
self()->isImmutable( QString::fromLatin1(
"customTimezone" ) ))
437 if (!
self()->isImmutable( QString::fromLatin1(
"chosenTimezone" ) ))
456 if (!
self()->isImmutable( QString::fromLatin1(
"distanceUnit" ) ))
475 if (!
self()->isImmutable( QString::fromLatin1(
"angleUnit" ) ))
494 if (!
self()->isImmutable( QString::fromLatin1(
"stillQuality" ) ))
513 if (!
self()->isImmutable( QString::fromLatin1(
"animationQuality" ) ))
532 if (!
self()->isImmutable( QString::fromLatin1(
"graphicsSystem" ) ))
551 if (!
self()->isImmutable( QString::fromLatin1(
"labelLocalization" ) ))
570 if (!
self()->isImmutable( QString::fromLatin1(
"mapFont" ) ))
589 if (!
self()->isImmutable( QString::fromLatin1(
"lastFileOpenDir" ) ))
608 if (!
self()->isImmutable( QString::fromLatin1(
"showSun" ) ))
627 if (!
self()->isImmutable( QString::fromLatin1(
"showCitylights" ) ))
646 if (!
self()->isImmutable( QString::fromLatin1(
"subSolarPointIconVisible" ) ))
665 if (!
self()->isImmutable( QString::fromLatin1(
"lockToSubSolarPoint" ) ))
684 if (!
self()->isImmutable( QString::fromLatin1(
"dragLocation" ) ))
703 if (!
self()->isImmutable( QString::fromLatin1(
"onStartup" ) ))
722 if (!
self()->isImmutable( QString::fromLatin1(
"inertialEarthRotation" ) ))
741 if (!
self()->isImmutable( QString::fromLatin1(
"animateTargetVoyage" ) ))
760 if (!
self()->isImmutable( QString::fromLatin1(
"externalMapEditor" ) ))
781 kDebug() <<
"setVolatileTileCacheLimit: value " << v <<
" is less than the minimum value of 0";
787 kDebug() <<
"setVolatileTileCacheLimit: value " << v <<
" is greater than the maximum value of 999999";
791 if (!
self()->isImmutable( QString::fromLatin1(
"volatileTileCacheLimit" ) ))
812 kDebug() <<
"setPersistentTileCacheLimit: value " << v <<
" is less than the minimum value of 0";
818 kDebug() <<
"setPersistentTileCacheLimit: value " << v <<
" is greater than the maximum value of 999999";
822 if (!
self()->isImmutable( QString::fromLatin1(
"persistentTileCacheLimit" ) ))
841 if (!
self()->isImmutable( QString::fromLatin1(
"proxyUrl" ) ))
862 kDebug() <<
"setProxyPort: value " << v <<
" is less than the minimum value of 0";
868 kDebug() <<
"setProxyPort: value " << v <<
" is greater than the maximum value of 65535";
872 if (!
self()->isImmutable( QString::fromLatin1(
"proxyPort" ) ))
891 if (!
self()->isImmutable( QString::fromLatin1(
"proxyUser" ) ))
910 if (!
self()->isImmutable( QString::fromLatin1(
"proxyPass" ) ))
929 if (!
self()->isImmutable( QString::fromLatin1(
"proxyHttp" ) ))
948 if (!
self()->isImmutable( QString::fromLatin1(
"proxyType" ) ))
967 if (!
self()->isImmutable( QString::fromLatin1(
"proxySocks5" ) ))
986 if (!
self()->isImmutable( QString::fromLatin1(
"proxyAuth" ) ))
1005 if (!
self()->isImmutable( QString::fromLatin1(
"activePositionTrackingPlugin" ) ))
1024 if (!
self()->isImmutable( QString::fromLatin1(
"showPositionLabel" ) ))
1043 if (!
self()->isImmutable( QString::fromLatin1(
"showAltitudeLabel" ) ))
1062 if (!
self()->isImmutable( QString::fromLatin1(
"showTileZoomLevelLabel" ) ))
1081 if (!
self()->isImmutable( QString::fromLatin1(
"showDownloadProgressBar" ) ))
1100 if (!
self()->isImmutable( QString::fromLatin1(
"showDateTimeLabel" ) ))
1119 if (!
self()->isImmutable( QString::fromLatin1(
"wmsServers" ) ))
1138 if (!
self()->isImmutable( QString::fromLatin1(
"staticUrlServers" ) ))
1157 if (!
self()->isImmutable( QString::fromLatin1(
"showGuidanceModeStartupWarning" ) ))
1176 if (!
self()->isImmutable( QString::fromLatin1(
"currentRoutingProfile" ) ))
1195 if (!
self()->isImmutable( QString::fromLatin1(
"routeColorStandard" ) ))
1214 if (!
self()->isImmutable( QString::fromLatin1(
"routeAlphaStandard" ) ))
1233 if (!
self()->isImmutable( QString::fromLatin1(
"routeColorHighlighted" ) ))
1252 if (!
self()->isImmutable( QString::fromLatin1(
"routeAlphaHighlighted" ) ))
1271 if (!
self()->isImmutable( QString::fromLatin1(
"routeColorAlternative" ) ))
1290 if (!
self()->isImmutable( QString::fromLatin1(
"routeAlphaAlternative" ) ))
1309 if (!
self()->isImmutable( QString::fromLatin1(
"showCloudSyncSettings" ) ))
1328 if (!
self()->isImmutable( QString::fromLatin1(
"enableSync" ) ))
1347 if (!
self()->isImmutable( QString::fromLatin1(
"syncBackend" ) ))
1366 if (!
self()->isImmutable( QString::fromLatin1(
"syncBookmarks" ) ))
1385 if (!
self()->isImmutable( QString::fromLatin1(
"syncRoutes" ) ))
1404 if (!
self()->isImmutable( QString::fromLatin1(
"owncloudServer" ) ))
1423 if (!
self()->isImmutable( QString::fromLatin1(
"owncloudUsername" ) ))
1442 if (!
self()->isImmutable( QString::fromLatin1(
"owncloudPassword" ) ))
static void setDateTime(const QDateTime &v)
Set The date and time of marble clock.
static void setQuitLatitude(double v)
Set quitLatitude.
static QColor routeColorHighlighted()
Get routeColorHighlighted.
static void setUtc(bool v)
Set utc.
int mPersistentTileCacheLimit
QString mOwncloudPassword
static int volatileTileCacheLimit()
Get Cache for tiles reserved in the physical memory.
static void setOnStartup(int v)
Set The location shown on application startup.
static bool showDownloadProgressBar()
Get showDownloadProgressBar.
static QString syncBackend()
Get syncBackend.
static QStringList staticUrlServers()
Get staticUrlServers.
static bool showPositionLabel()
Get showPositionLabel.
static bool systemTimezone()
Get systemTimezone.
static bool syncRoutes()
Get syncRoutes.
static void setShowSun(bool v)
Set showSun.
static bool workOffline()
Get workOffline.
static void setRouteColorAlternative(const QColor &v)
Set routeColorAlternative.
static QString proxyUser()
Get Username for authorization.
static void setDragLocation(int v)
Set The behaviour of the planet's axis on mouse dragging.
static void setShowCitylights(bool v)
Set showCitylights.
static bool showDateTimeLabel()
Get showDateTimeLabel.
bool mInertialEarthRotation
static void setAngleUnit(int v)
Set The unit chosen to measure angles.
static void setDistanceUnit(int v)
Set The unit chosen to measure distances.
static QColor routeColorAlternative()
Get routeColorAlternative.
static QStringList wmsServers()
Get wmsServers.
static bool inertialEarthRotation()
Get inertialEarthRotation.
static int proxyType()
Get proxyType.
static void setWorkOffline(bool v)
Set workOffline.
static void setProxyType(int v)
Set proxyType.
static void setPersistentTileCacheLimit(int v)
Set Maximum space on the hard disk that can be used to store tiles.
static int onStartup()
Get The location shown on application startup.
static double quitRange()
Get quitRange.
int mVolatileTileCacheLimit
static int stillQuality()
Get The quality at which a still map gets painted.
static void setInertialEarthRotation(bool v)
Set inertialEarthRotation.
static void setEnableSync(bool v)
Set enableSync.
static void setChosenTimezone(int v)
Set chosenTimezone.
static bool systemTime()
Get systemTime.
static void setProxyPort(int v)
Set Port for the proxy server.
static void setSubSolarPointIconVisible(bool v)
Set subSolarPointIconVisible.
static void setMapFont(const QFont &v)
Set The general font used on the map.
static bool lockFloatItemPositions()
Get lockFloatItemPositions.
static void setMapTheme(const QString &v)
Set mapTheme.
static int proxyPort()
Get Port for the proxy server.
static bool proxyHttp()
Get Proxy type is HTTP.
static QString lastFileOpenDir()
Get The last directory that was opened by File->Open.
static bool showGuidanceModeStartupWarning()
Get showGuidanceModeStartupWarning.
static int routeAlphaStandard()
Get routeAlphaStandard.
bool mShowCurrentLocation
static bool utc()
Get utc.
static int dragLocation()
Get The behaviour of the planet's axis on mouse dragging.
static void setHomeZoom(int v)
Set homeZoom.
static void setShowClouds(bool v)
Set showClouds.
static void setQuitLongitude(double v)
Set quitLongitude.
static bool showBookmarks()
Get showBookmarks.
static bool showClouds()
Get showClouds.
QColor mRouteColorHighlighted
static double quitLongitude()
Get quitLongitude.
static void setOwncloudPassword(const QString &v)
Set owncloudPassword.
static void setShowTileZoomLevelLabel(bool v)
Set showTileZoomLevelLabel.
static void setRouteAlphaAlternative(int v)
Set routeAlphaAlternative.
static void setShowCloudSyncSettings(bool v)
Set showCloudSyncSettings.
static bool animateTargetVoyage()
Get Display animation on voyage to target.
static void setProxySocks5(bool v)
Set Proxy type is Socks5.
static void setLastSessionTime(bool v)
Set lastSessionTime.
bool mSubSolarPointIconVisible
static void setProxyPass(const QString &v)
Set Password for authorization.
int mRouteAlphaHighlighted
QColor mRouteColorStandard
bool mShowTileZoomLevelLabel
static void setShowDateTimeLabel(bool v)
Set showDateTimeLabel.
QString mActivePositionTrackingPlugin
static void setShowDownloadProgressBar(bool v)
Set showDownloadProgressBar.
static bool customTimezone()
Get customTimezone.
static void setProxyAuth(bool v)
Set Proxy requires Authentication.
static void setRouteAlphaHighlighted(int v)
Set routeAlphaHighlighted.
int mRouteAlphaAlternative
static QFont mapFont()
Get The general font used on the map.
static void setCustomTimezone(bool v)
Set customTimezone.
static void setSpeedSlider(int v)
Set The speed of marble clock.
static void setMarbleDataPath(const QString &v)
Set marbleDataPath.
static void setExternalMapEditor(int v)
Set The external OpenStreetMap editor application.
static bool showSun()
Get showSun.
static QString proxyUrl()
Get URL for the proxy server.
QStringList mStaticUrlServers
static void setLabelLocalization(int v)
Set The localization of the labels.
static QString owncloudUsername()
Get owncloudUsername.
static void setLastFileOpenDir(const QString &v)
Set The last directory that was opened by File->Open.
static QString owncloudPassword()
Get owncloudPassword.
static void setHomeLatitude(double v)
Set homeLatitude.
static double quitLatitude()
Get quitLatitude.
static bool showAltitudeLabel()
Get showAltitudeLabel.
static void setGraphicsSystem(int v)
Set The graphics system that is used by Qt to render the graphics.
static QString mapTheme()
Get mapTheme.
static void setProxyUrl(const QString &v)
Set URL for the proxy server.
static void setRouteColorHighlighted(const QColor &v)
Set routeColorHighlighted.
bool mLockToSubSolarPoint
static bool lastSessionTime()
Get lastSessionTime.
static void setShowPositionLabel(bool v)
Set showPositionLabel.
static void setLockFloatItemPositions(bool v)
Set lockFloatItemPositions.
int mCurrentRoutingProfile
static int routeAlphaHighlighted()
Get routeAlphaHighlighted.
static bool proxyAuth()
Get Proxy requires Authentication.
static void setRouteAlphaStandard(int v)
Set routeAlphaStandard.
static int animationQuality()
Get The quality at which an animated map gets painted.
static void setActivePositionTrackingPlugin(const QString &v)
Set The position tracking plugin used to determine the current location.
static void setOwncloudServer(const QString &v)
Set owncloudServer.
static bool showCitylights()
Get showCitylights.
static double homeLongitude()
Get homeLongitude.
static void setSystemTimezone(bool v)
Set systemTimezone.
static int speedSlider()
Get The speed of marble clock.
static void setQuitRange(double v)
Set quitRange.
static void setLockToSubSolarPoint(bool v)
Set lockToSubSolarPoint.
static void setAnimationQuality(int v)
Set The quality at which an animated map gets painted.
bool mLockFloatItemPositions
static void setVolatileTileCacheLimit(int v)
Set Cache for tiles reserved in the physical memory.
static bool enableSync()
Get enableSync.
static bool proxySocks5()
Get Proxy type is Socks5.
static bool showCurrentLocation()
Get showCurrentLocation.
static void setSyncBookmarks(bool v)
Set syncBookmarks.
static void setSystemTime(bool v)
Set systemTime.
static void setProjection(int v)
Set projection.
static int currentRoutingProfile()
Get currentRoutingProfile.
static void setSyncBackend(const QString &v)
Set syncBackend.
static void setRouteColorStandard(const QColor &v)
Set routeColorStandard.
static void setOwncloudUsername(const QString &v)
Set owncloudUsername.
static bool showTileZoomLevelLabel()
Get showTileZoomLevelLabel.
static double homeLatitude()
Get homeLatitude.
static int angleUnit()
Get The unit chosen to measure angles.
static QColor routeColorStandard()
Get routeColorStandard.
static void setProxyHttp(bool v)
Set Proxy type is HTTP.
static int labelLocalization()
Get The localization of the labels.
static QString proxyPass()
Get Password for authorization.
static void setSyncRoutes(bool v)
Set syncRoutes.
friend class MarbleSettingsHelper
bool mAnimateTargetVoyage
static bool lockToSubSolarPoint()
Get lockToSubSolarPoint.
static bool showCloudSyncSettings()
Get showCloudSyncSettings.
bool mShowGuidanceModeStartupWarning
static int externalMapEditor()
Get The external OpenStreetMap editor application.
static QString owncloudServer()
Get owncloudServer.
static int graphicsSystem()
Get The graphics system that is used by Qt to render the graphics.
static void setAnimateTargetVoyage(bool v)
Set Display animation on voyage to target.
static int homeZoom()
Get homeZoom.
static int distanceUnit()
Get The unit chosen to measure distances.
static void setCurrentRoutingProfile(int v)
Set currentRoutingProfile.
bool mShowCloudSyncSettings
static void setShowBookmarks(bool v)
Set showBookmarks.
static void setStillQuality(int v)
Set The quality at which a still map gets painted.
static void setShowGuidanceModeStartupWarning(bool v)
Set showGuidanceModeStartupWarning.
QString mOwncloudUsername
static QString activePositionTrackingPlugin()
Get The position tracking plugin used to determine the current location.
static void setHomeLongitude(double v)
Set homeLongitude.
bool mShowDownloadProgressBar
static void setShowAltitudeLabel(bool v)
Set showAltitudeLabel.
static void setProxyUser(const QString &v)
Set Username for authorization.
static QDateTime dateTime()
Get The date and time of marble clock.
static void setShowCurrentLocation(bool v)
Set showCurrentLocation.
static int routeAlphaAlternative()
Get routeAlphaAlternative.
static QString marbleDataPath()
Get marbleDataPath.
static bool syncBookmarks()
Get syncBookmarks.
static void setWmsServers(const QStringList &v)
Set wmsServers.
static bool subSolarPointIconVisible()
Get subSolarPointIconVisible.
static void setStaticUrlServers(const QStringList &v)
Set staticUrlServers.
static int chosenTimezone()
Get chosenTimezone.
static int persistentTileCacheLimit()
Get Maximum space on the hard disk that can be used to store tiles.
QColor mRouteColorAlternative
static int projection()
Get projection.