• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • apps
  • marble-kde
settings.cpp
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from marble.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "settings.h"
5 
6 #include <kglobal.h>
7 #include <QtCore/QFile>
8 
9 class MarbleSettingsHelper
10 {
11  public:
12  MarbleSettingsHelper() : q(0) {}
13  ~MarbleSettingsHelper() { delete q; }
14  MarbleSettings *q;
15 };
16 K_GLOBAL_STATIC(MarbleSettingsHelper, s_globalMarbleSettings)
17 MarbleSettings *MarbleSettings::self()
18 {
19  if (!s_globalMarbleSettings->q) {
20  new MarbleSettings;
21  s_globalMarbleSettings->q->readConfig();
22  }
23 
24  return s_globalMarbleSettings->q;
25 }
26 
27 MarbleSettings::MarbleSettings( )
28  : KConfigSkeleton( QLatin1String( "marblerc" ) )
29 {
30  Q_ASSERT(!s_globalMarbleSettings->q);
31  s_globalMarbleSettings->q = this;
32  setCurrentGroup( QLatin1String( "MarbleWidget" ) );
33 
34  KConfigSkeleton::ItemDouble *itemHomeLongitude;
35  itemHomeLongitude = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "homeLongitude" ), mHomeLongitude, 9.4 );
36  addItem( itemHomeLongitude, QLatin1String( "homeLongitude" ) );
37  KConfigSkeleton::ItemDouble *itemHomeLatitude;
38  itemHomeLatitude = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "homeLatitude" ), mHomeLatitude, 54.8 );
39  addItem( itemHomeLatitude, QLatin1String( "homeLatitude" ) );
40  KConfigSkeleton::ItemInt *itemHomeZoom;
41  itemHomeZoom = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "homeZoom" ), mHomeZoom, 1050 );
42  addItem( itemHomeZoom, QLatin1String( "homeZoom" ) );
43  KConfigSkeleton::ItemDouble *itemQuitLongitude;
44  itemQuitLongitude = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "quitLongitude" ), mQuitLongitude, 0.0 );
45  addItem( itemQuitLongitude, QLatin1String( "quitLongitude" ) );
46  KConfigSkeleton::ItemDouble *itemQuitLatitude;
47  itemQuitLatitude = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "quitLatitude" ), mQuitLatitude, 0.0 );
48  addItem( itemQuitLatitude, QLatin1String( "quitLatitude" ) );
49  KConfigSkeleton::ItemDouble *itemQuitRange;
50  itemQuitRange = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "quitRange" ), mQuitRange, 11564500 );
51  addItem( itemQuitRange, QLatin1String( "quitRange" ) );
52  KConfigSkeleton::ItemString *itemMapTheme;
53  itemMapTheme = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapTheme" ), mMapTheme );
54  addItem( itemMapTheme, QLatin1String( "mapTheme" ) );
55  KConfigSkeleton::ItemBool *itemShowClouds;
56  itemShowClouds = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showClouds" ), mShowClouds, true );
57  addItem( itemShowClouds, QLatin1String( "showClouds" ) );
58  KConfigSkeleton::ItemBool *itemWorkOffline;
59  itemWorkOffline = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "workOffline" ), mWorkOffline, false );
60  addItem( itemWorkOffline, QLatin1String( "workOffline" ) );
61  KConfigSkeleton::ItemBool *itemShowCurrentLocation;
62  itemShowCurrentLocation = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showCurrentLocation" ), mShowCurrentLocation, false );
63  addItem( itemShowCurrentLocation, QLatin1String( "showCurrentLocation" ) );
64  KConfigSkeleton::ItemBool *itemLockFloatItemPositions;
65  itemLockFloatItemPositions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "lockFloatItemPositions" ), mLockFloatItemPositions, false );
66  addItem( itemLockFloatItemPositions, QLatin1String( "lockFloatItemPositions" ) );
67  KConfigSkeleton::ItemInt *itemProjection;
68  itemProjection = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "projection" ), mProjection, 0 );
69  addItem( itemProjection, QLatin1String( "projection" ) );
70  KConfigSkeleton::ItemPath *itemMarbleDataPath;
71  itemMarbleDataPath = new KConfigSkeleton::ItemPath( currentGroup(), QLatin1String( "marbleDataPath" ), mMarbleDataPath );
72  addItem( itemMarbleDataPath, QLatin1String( "marbleDataPath" ) );
73  KConfigSkeleton::ItemBool *itemShowBookmarks;
74  itemShowBookmarks = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showBookmarks" ), mShowBookmarks, true );
75  addItem( itemShowBookmarks, QLatin1String( "showBookmarks" ) );
76 
77  setCurrentGroup( QLatin1String( "Time" ) );
78 
79  KConfigSkeleton::ItemDateTime *itemDateTime;
80  itemDateTime = new KConfigSkeleton::ItemDateTime( currentGroup(), QLatin1String( "dateTime" ), mDateTime );
81  addItem( itemDateTime, QLatin1String( "dateTime" ) );
82  KConfigSkeleton::ItemInt *itemSpeedSlider;
83  itemSpeedSlider = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "speedSlider" ), mSpeedSlider, 1 );
84  itemSpeedSlider->setMinValue(-100);
85  itemSpeedSlider->setMaxValue(100);
86  addItem( itemSpeedSlider, QLatin1String( "speedSlider" ) );
87  KConfigSkeleton::ItemBool *itemSystemTime;
88  itemSystemTime = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "systemTime" ), mSystemTime, true );
89  addItem( itemSystemTime, QLatin1String( "systemTime" ) );
90  KConfigSkeleton::ItemBool *itemLastSessionTime;
91  itemLastSessionTime = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "lastSessionTime" ), mLastSessionTime, false );
92  addItem( itemLastSessionTime, QLatin1String( "lastSessionTime" ) );
93  KConfigSkeleton::ItemBool *itemSystemTimezone;
94  itemSystemTimezone = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "systemTimezone" ), mSystemTimezone, true );
95  addItem( itemSystemTimezone, QLatin1String( "systemTimezone" ) );
96  KConfigSkeleton::ItemBool *itemUtc;
97  itemUtc = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "utc" ), mUtc, false );
98  addItem( itemUtc, QLatin1String( "utc" ) );
99  KConfigSkeleton::ItemBool *itemCustomTimezone;
100  itemCustomTimezone = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "customTimezone" ), mCustomTimezone, false );
101  addItem( itemCustomTimezone, QLatin1String( "customTimezone" ) );
102  KConfigSkeleton::ItemInt *itemChosenTimezone;
103  itemChosenTimezone = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "chosenTimezone" ), mChosenTimezone, 0 );
104  addItem( itemChosenTimezone, QLatin1String( "chosenTimezone" ) );
105 
106  setCurrentGroup( QLatin1String( "Tracking" ) );
107 
108  KConfigSkeleton::ItemBool *itemAutoCenter;
109  itemAutoCenter = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoCenter" ), mAutoCenter, false );
110  addItem( itemAutoCenter, QLatin1String( "autoCenter" ) );
111  KConfigSkeleton::ItemBool *itemTrackVisible;
112  itemTrackVisible = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "trackVisible" ), mTrackVisible, true );
113  addItem( itemTrackVisible, QLatin1String( "trackVisible" ) );
114  KConfigSkeleton::ItemString *itemLastTrackOpenPath;
115  itemLastTrackOpenPath = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "lastTrackOpenPath" ), mLastTrackOpenPath, QDir::homePath() );
116  addItem( itemLastTrackOpenPath, QLatin1String( "lastTrackOpenPath" ) );
117  KConfigSkeleton::ItemString *itemLastTrackSavePath;
118  itemLastTrackSavePath = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "lastTrackSavePath" ), mLastTrackSavePath, QDir::homePath() );
119  addItem( itemLastTrackSavePath, QLatin1String( "lastTrackSavePath" ) );
120  KConfigSkeleton::ItemBool *itemAutoZoom;
121  itemAutoZoom = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoZoom" ), mAutoZoom, false );
122  addItem( itemAutoZoom, QLatin1String( "autoZoom" ) );
123  KConfigSkeleton::ItemInt *itemRecenterMode;
124  itemRecenterMode = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "recenterMode" ), mRecenterMode, 0 );
125  addItem( itemRecenterMode, QLatin1String( "recenterMode" ) );
126 
127  setCurrentGroup( QLatin1String( "View" ) );
128 
129  QList<KConfigSkeleton::ItemEnum::Choice2> valuesdistanceUnit;
130  {
131  KConfigSkeleton::ItemEnum::Choice2 choice;
132  choice.name = QLatin1String("MeasurementSystem::MetricSystem");
133  valuesdistanceUnit.append( choice );
134  }
135  {
136  KConfigSkeleton::ItemEnum::Choice2 choice;
137  choice.name = QLatin1String("MeasurementSystem::ImperialSystem");
138  valuesdistanceUnit.append( choice );
139  }
140  KConfigSkeleton::ItemEnum *itemDistanceUnit;
141  itemDistanceUnit = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "distanceUnit" ), mDistanceUnit, valuesdistanceUnit, QLocale::MetricSystem );
142  addItem( itemDistanceUnit, QLatin1String( "distanceUnit" ) );
143  QList<KConfigSkeleton::ItemEnum::Choice2> valuesangleUnit;
144  {
145  KConfigSkeleton::ItemEnum::Choice2 choice;
146  choice.name = QLatin1String("AngleUnit::DMSDegree");
147  valuesangleUnit.append( choice );
148  }
149  {
150  KConfigSkeleton::ItemEnum::Choice2 choice;
151  choice.name = QLatin1String("AngleUnit::DecimalDegree");
152  valuesangleUnit.append( choice );
153  }
154  {
155  KConfigSkeleton::ItemEnum::Choice2 choice;
156  choice.name = QLatin1String("AngleUnit::UTM");
157  valuesangleUnit.append( choice );
158  }
159  KConfigSkeleton::ItemEnum *itemAngleUnit;
160  itemAngleUnit = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "angleUnit" ), mAngleUnit, valuesangleUnit, Marble::DMSDegree );
161  addItem( itemAngleUnit, QLatin1String( "angleUnit" ) );
162  QList<KConfigSkeleton::ItemEnum::Choice2> valuesstillQuality;
163  {
164  KConfigSkeleton::ItemEnum::Choice2 choice;
165  choice.name = QLatin1String("MapQuality::OutlineQuality");
166  valuesstillQuality.append( choice );
167  }
168  {
169  KConfigSkeleton::ItemEnum::Choice2 choice;
170  choice.name = QLatin1String("MapQuality::LowQuality");
171  valuesstillQuality.append( choice );
172  }
173  {
174  KConfigSkeleton::ItemEnum::Choice2 choice;
175  choice.name = QLatin1String("MapQuality::NormalQuality");
176  valuesstillQuality.append( choice );
177  }
178  {
179  KConfigSkeleton::ItemEnum::Choice2 choice;
180  choice.name = QLatin1String("MapQuality::HighQuality");
181  valuesstillQuality.append( choice );
182  }
183  {
184  KConfigSkeleton::ItemEnum::Choice2 choice;
185  choice.name = QLatin1String("MapQuality::PrintQuality");
186  valuesstillQuality.append( choice );
187  }
188  KConfigSkeleton::ItemEnum *itemStillQuality;
189  itemStillQuality = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "stillQuality" ), mStillQuality, valuesstillQuality, Marble::HighQuality );
190  addItem( itemStillQuality, QLatin1String( "stillQuality" ) );
191  QList<KConfigSkeleton::ItemEnum::Choice2> valuesanimationQuality;
192  {
193  KConfigSkeleton::ItemEnum::Choice2 choice;
194  choice.name = QLatin1String("MapQuality::OutlineQuality");
195  valuesanimationQuality.append( choice );
196  }
197  {
198  KConfigSkeleton::ItemEnum::Choice2 choice;
199  choice.name = QLatin1String("MapQuality::LowQuality");
200  valuesanimationQuality.append( choice );
201  }
202  {
203  KConfigSkeleton::ItemEnum::Choice2 choice;
204  choice.name = QLatin1String("MapQuality::NormalQuality");
205  valuesanimationQuality.append( choice );
206  }
207  {
208  KConfigSkeleton::ItemEnum::Choice2 choice;
209  choice.name = QLatin1String("MapQuality::HighQuality");
210  valuesanimationQuality.append( choice );
211  }
212  {
213  KConfigSkeleton::ItemEnum::Choice2 choice;
214  choice.name = QLatin1String("MapQuality::PrintQuality");
215  valuesanimationQuality.append( choice );
216  }
217  KConfigSkeleton::ItemEnum *itemAnimationQuality;
218  itemAnimationQuality = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "animationQuality" ), mAnimationQuality, valuesanimationQuality, Marble::LowQuality );
219  addItem( itemAnimationQuality, QLatin1String( "animationQuality" ) );
220  QList<KConfigSkeleton::ItemEnum::Choice2> valuesgraphicsSystem;
221  {
222  KConfigSkeleton::ItemEnum::Choice2 choice;
223  choice.name = QLatin1String("NativeGraphics");
224  valuesgraphicsSystem.append( choice );
225  }
226  {
227  KConfigSkeleton::ItemEnum::Choice2 choice;
228  choice.name = QLatin1String("RasterGraphics");
229  valuesgraphicsSystem.append( choice );
230  }
231  {
232  KConfigSkeleton::ItemEnum::Choice2 choice;
233  choice.name = QLatin1String("OpenGLGraphics");
234  valuesgraphicsSystem.append( choice );
235  }
236  KConfigSkeleton::ItemEnum *itemGraphicsSystem;
237  itemGraphicsSystem = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "graphicsSystem" ), mGraphicsSystem, valuesgraphicsSystem, Marble::RasterGraphics );
238  addItem( itemGraphicsSystem, QLatin1String( "graphicsSystem" ) );
239  QList<KConfigSkeleton::ItemEnum::Choice2> valueslabelLocalization;
240  {
241  KConfigSkeleton::ItemEnum::Choice2 choice;
242  choice.name = QLatin1String("LabelLocalization::CustomAndNative");
243  valueslabelLocalization.append( choice );
244  }
245  {
246  KConfigSkeleton::ItemEnum::Choice2 choice;
247  choice.name = QLatin1String("LabelLocalization::Custom");
248  valueslabelLocalization.append( choice );
249  }
250  {
251  KConfigSkeleton::ItemEnum::Choice2 choice;
252  choice.name = QLatin1String("LabelLocalization::Native");
253  valueslabelLocalization.append( choice );
254  }
255  KConfigSkeleton::ItemEnum *itemLabelLocalization;
256  itemLabelLocalization = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "labelLocalization" ), mLabelLocalization, valueslabelLocalization, Marble::Native );
257  addItem( itemLabelLocalization, QLatin1String( "labelLocalization" ) );
258  KConfigSkeleton::ItemFont *itemMapFont;
259  itemMapFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "mapFont" ), mMapFont, KGlobalSettings::generalFont() );
260  addItem( itemMapFont, QLatin1String( "mapFont" ) );
261  KConfigSkeleton::ItemString *itemLastFileOpenDir;
262  itemLastFileOpenDir = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "lastFileOpenDir" ), mLastFileOpenDir, QDir::homePath() );
263  addItem( itemLastFileOpenDir, QLatin1String( "lastFileOpenDir" ) );
264 
265  setCurrentGroup( QLatin1String( "Sun" ) );
266 
267  KConfigSkeleton::ItemBool *itemShowSun;
268  itemShowSun = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showSun" ), mShowSun, false );
269  addItem( itemShowSun, QLatin1String( "showSun" ) );
270  KConfigSkeleton::ItemBool *itemShowCitylights;
271  itemShowCitylights = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showCitylights" ), mShowCitylights, false );
272  addItem( itemShowCitylights, QLatin1String( "showCitylights" ) );
273  KConfigSkeleton::ItemBool *itemSubSolarPointIconVisible;
274  itemSubSolarPointIconVisible = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "subSolarPointIconVisible" ), mSubSolarPointIconVisible, false );
275  addItem( itemSubSolarPointIconVisible, QLatin1String( "subSolarPointIconVisible" ) );
276  KConfigSkeleton::ItemBool *itemLockToSubSolarPoint;
277  itemLockToSubSolarPoint = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "lockToSubSolarPoint" ), mLockToSubSolarPoint, false );
278  addItem( itemLockToSubSolarPoint, QLatin1String( "lockToSubSolarPoint" ) );
279 
280  setCurrentGroup( QLatin1String( "Navigation" ) );
281 
282  QList<KConfigSkeleton::ItemEnum::Choice2> valuesdragLocation;
283  {
284  KConfigSkeleton::ItemEnum::Choice2 choice;
285  choice.name = QLatin1String("DragLocation::KeepAxisVertically");
286  valuesdragLocation.append( choice );
287  }
288  {
289  KConfigSkeleton::ItemEnum::Choice2 choice;
290  choice.name = QLatin1String("DragLocation::FollowMousePointer");
291  valuesdragLocation.append( choice );
292  }
293  KConfigSkeleton::ItemEnum *itemDragLocation;
294  itemDragLocation = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "dragLocation" ), mDragLocation, valuesdragLocation, Marble::KeepAxisVertically );
295  addItem( itemDragLocation, QLatin1String( "dragLocation" ) );
296  QList<KConfigSkeleton::ItemEnum::Choice2> valuesonStartup;
297  {
298  KConfigSkeleton::ItemEnum::Choice2 choice;
299  choice.name = QLatin1String("onStartup::ShowHomeLocation");
300  valuesonStartup.append( choice );
301  }
302  {
303  KConfigSkeleton::ItemEnum::Choice2 choice;
304  choice.name = QLatin1String("onStartup::LastLocationVisited");
305  valuesonStartup.append( choice );
306  }
307  KConfigSkeleton::ItemEnum *itemOnStartup;
308  itemOnStartup = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "onStartup" ), mOnStartup, valuesonStartup, Marble::ShowHomeLocation );
309  addItem( itemOnStartup, QLatin1String( "onStartup" ) );
310  KConfigSkeleton::ItemBool *itemInertialEarthRotation;
311  itemInertialEarthRotation = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "inertialEarthRotation" ), mInertialEarthRotation, true );
312  addItem( itemInertialEarthRotation, QLatin1String( "inertialEarthRotation" ) );
313  KConfigSkeleton::ItemBool *itemAnimateTargetVoyage;
314  itemAnimateTargetVoyage = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "animateTargetVoyage" ), mAnimateTargetVoyage, false );
315  addItem( itemAnimateTargetVoyage, QLatin1String( "animateTargetVoyage" ) );
316  KConfigSkeleton::ItemInt *itemExternalMapEditor;
317  itemExternalMapEditor = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "externalMapEditor" ), mExternalMapEditor, 0 );
318  addItem( itemExternalMapEditor, QLatin1String( "externalMapEditor" ) );
319 
320  setCurrentGroup( QLatin1String( "Cache" ) );
321 
322  KConfigSkeleton::ItemInt *itemVolatileTileCacheLimit;
323  itemVolatileTileCacheLimit = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "volatileTileCacheLimit" ), mVolatileTileCacheLimit, 100 );
324  itemVolatileTileCacheLimit->setMinValue(0);
325  itemVolatileTileCacheLimit->setMaxValue(999999);
326  addItem( itemVolatileTileCacheLimit, QLatin1String( "volatileTileCacheLimit" ) );
327  KConfigSkeleton::ItemInt *itemPersistentTileCacheLimit;
328  itemPersistentTileCacheLimit = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "persistentTileCacheLimit" ), mPersistentTileCacheLimit, 0 );
329  itemPersistentTileCacheLimit->setMinValue(0);
330  itemPersistentTileCacheLimit->setMaxValue(999999);
331  addItem( itemPersistentTileCacheLimit, QLatin1String( "persistentTileCacheLimit" ) );
332  KConfigSkeleton::ItemString *itemProxyUrl;
333  itemProxyUrl = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "proxyUrl" ), mProxyUrl );
334  addItem( itemProxyUrl, QLatin1String( "proxyUrl" ) );
335  KConfigSkeleton::ItemInt *itemProxyPort;
336  itemProxyPort = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "proxyPort" ), mProxyPort, 8080 );
337  itemProxyPort->setMinValue(0);
338  itemProxyPort->setMaxValue(65535);
339  addItem( itemProxyPort, QLatin1String( "proxyPort" ) );
340  KConfigSkeleton::ItemString *itemProxyUser;
341  itemProxyUser = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "proxyUser" ), mProxyUser );
342  addItem( itemProxyUser, QLatin1String( "proxyUser" ) );
343  KConfigSkeleton::ItemString *itemProxyPass;
344  itemProxyPass = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "proxyPass" ), mProxyPass );
345  addItem( itemProxyPass, QLatin1String( "proxyPass" ) );
346  KConfigSkeleton::ItemBool *itemProxyHttp;
347  itemProxyHttp = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "proxyHttp" ), mProxyHttp, true );
348  addItem( itemProxyHttp, QLatin1String( "proxyHttp" ) );
349  QList<KConfigSkeleton::ItemEnum::Choice2> valuesproxyType;
350  {
351  KConfigSkeleton::ItemEnum::Choice2 choice;
352  choice.name = QLatin1String("HttpProxy");
353  valuesproxyType.append( choice );
354  }
355  {
356  KConfigSkeleton::ItemEnum::Choice2 choice;
357  choice.name = QLatin1String("Socks5Proxy");
358  valuesproxyType.append( choice );
359  }
360  KConfigSkeleton::ItemEnum *itemProxyType;
361  itemProxyType = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "proxyType" ), mProxyType, valuesproxyType, Marble::HttpProxy );
362  addItem( itemProxyType, QLatin1String( "proxyType" ) );
363  KConfigSkeleton::ItemBool *itemProxySocks5;
364  itemProxySocks5 = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "proxySocks5" ), mProxySocks5, false );
365  addItem( itemProxySocks5, QLatin1String( "proxySocks5" ) );
366  KConfigSkeleton::ItemBool *itemProxyAuth;
367  itemProxyAuth = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "proxyAuth" ), mProxyAuth, false );
368  addItem( itemProxyAuth, QLatin1String( "proxyAuth" ) );
369 
370  setCurrentGroup( QLatin1String( "Plugins" ) );
371 
372  KConfigSkeleton::ItemString *itemActivePositionTrackingPlugin;
373  itemActivePositionTrackingPlugin = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "activePositionTrackingPlugin" ), mActivePositionTrackingPlugin );
374  addItem( itemActivePositionTrackingPlugin, QLatin1String( "activePositionTrackingPlugin" ) );
375 
376  setCurrentGroup( QLatin1String( "StatusBar" ) );
377 
378  KConfigSkeleton::ItemBool *itemShowPositionLabel;
379  itemShowPositionLabel = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showPositionLabel" ), mShowPositionLabel, true );
380  addItem( itemShowPositionLabel, QLatin1String( "showPositionLabel" ) );
381  KConfigSkeleton::ItemBool *itemShowAltitudeLabel;
382  itemShowAltitudeLabel = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showAltitudeLabel" ), mShowAltitudeLabel, true );
383  addItem( itemShowAltitudeLabel, QLatin1String( "showAltitudeLabel" ) );
384  KConfigSkeleton::ItemBool *itemShowTileZoomLevelLabel;
385  itemShowTileZoomLevelLabel = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showTileZoomLevelLabel" ), mShowTileZoomLevelLabel, false );
386  addItem( itemShowTileZoomLevelLabel, QLatin1String( "showTileZoomLevelLabel" ) );
387  KConfigSkeleton::ItemBool *itemShowDownloadProgressBar;
388  itemShowDownloadProgressBar = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showDownloadProgressBar" ), mShowDownloadProgressBar, true );
389  addItem( itemShowDownloadProgressBar, QLatin1String( "showDownloadProgressBar" ) );
390  KConfigSkeleton::ItemBool *itemShowDateTimeLabel;
391  itemShowDateTimeLabel = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showDateTimeLabel" ), mShowDateTimeLabel, true );
392  addItem( itemShowDateTimeLabel, QLatin1String( "showDateTimeLabel" ) );
393 
394  setCurrentGroup( QLatin1String( "MapWizard" ) );
395 
396  KConfigSkeleton::ItemStringList *itemWmsServers;
397  itemWmsServers = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "wmsServers" ), mWmsServers );
398  addItem( itemWmsServers, QLatin1String( "wmsServers" ) );
399  KConfigSkeleton::ItemStringList *itemStaticUrlServers;
400  itemStaticUrlServers = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "staticUrlServers" ), mStaticUrlServers );
401  addItem( itemStaticUrlServers, QLatin1String( "staticUrlServers" ) );
402 
403  setCurrentGroup( QLatin1String( "Routing" ) );
404 
405  KConfigSkeleton::ItemBool *itemShowGuidanceModeStartupWarning;
406  itemShowGuidanceModeStartupWarning = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showGuidanceModeStartupWarning" ), mShowGuidanceModeStartupWarning, true );
407  addItem( itemShowGuidanceModeStartupWarning, QLatin1String( "showGuidanceModeStartupWarning" ) );
408  KConfigSkeleton::ItemInt *itemCurrentRoutingProfile;
409  itemCurrentRoutingProfile = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "currentRoutingProfile" ), mCurrentRoutingProfile, 0 );
410  addItem( itemCurrentRoutingProfile, QLatin1String( "currentRoutingProfile" ) );
411  KConfigSkeleton::ItemColor *itemRouteColorStandard;
412  itemRouteColorStandard = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "routeColorStandard" ), mRouteColorStandard, Marble::Oxygen::skyBlue4 );
413  addItem( itemRouteColorStandard, QLatin1String( "routeColorStandard" ) );
414  KConfigSkeleton::ItemInt *itemRouteAlphaStandard;
415  itemRouteAlphaStandard = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "routeAlphaStandard" ), mRouteAlphaStandard, 200 );
416  addItem( itemRouteAlphaStandard, QLatin1String( "routeAlphaStandard" ) );
417  KConfigSkeleton::ItemColor *itemRouteColorHighlighted;
418  itemRouteColorHighlighted = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "routeColorHighlighted" ), mRouteColorHighlighted, Marble::Oxygen::seaBlue2 );
419  addItem( itemRouteColorHighlighted, QLatin1String( "routeColorHighlighted" ) );
420  KConfigSkeleton::ItemInt *itemRouteAlphaHighlighted;
421  itemRouteAlphaHighlighted = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "routeAlphaHighlighted" ), mRouteAlphaHighlighted, 200 );
422  addItem( itemRouteAlphaHighlighted, QLatin1String( "routeAlphaHighlighted" ) );
423  KConfigSkeleton::ItemColor *itemRouteColorAlternative;
424  itemRouteColorAlternative = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "routeColorAlternative" ), mRouteColorAlternative, Marble::Oxygen::aluminumGray4 );
425  addItem( itemRouteColorAlternative, QLatin1String( "routeColorAlternative" ) );
426  KConfigSkeleton::ItemInt *itemRouteAlphaAlternative;
427  itemRouteAlphaAlternative = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "routeAlphaAlternative" ), mRouteAlphaAlternative, 200 );
428  addItem( itemRouteAlphaAlternative, QLatin1String( "routeAlphaAlternative" ) );
429 
430  setCurrentGroup( QLatin1String( "CloudSync" ) );
431 
432  KConfigSkeleton::ItemBool *itemEnableSync;
433  itemEnableSync = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "enableSync" ), mEnableSync, false );
434  addItem( itemEnableSync, QLatin1String( "enableSync" ) );
435  KConfigSkeleton::ItemString *itemSyncBackend;
436  itemSyncBackend = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "syncBackend" ), mSyncBackend, QLatin1String( "owncloud" ) );
437  addItem( itemSyncBackend, QLatin1String( "syncBackend" ) );
438  KConfigSkeleton::ItemBool *itemSyncBookmarks;
439  itemSyncBookmarks = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "syncBookmarks" ), mSyncBookmarks, true );
440  addItem( itemSyncBookmarks, QLatin1String( "syncBookmarks" ) );
441  KConfigSkeleton::ItemBool *itemSyncRoutes;
442  itemSyncRoutes = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "syncRoutes" ), mSyncRoutes, true );
443  addItem( itemSyncRoutes, QLatin1String( "syncRoutes" ) );
444  KConfigSkeleton::ItemString *itemOwncloudServer;
445  itemOwncloudServer = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "owncloudServer" ), mOwncloudServer );
446  addItem( itemOwncloudServer, QLatin1String( "owncloudServer" ) );
447  KConfigSkeleton::ItemString *itemOwncloudUsername;
448  itemOwncloudUsername = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "owncloudUsername" ), mOwncloudUsername );
449  addItem( itemOwncloudUsername, QLatin1String( "owncloudUsername" ) );
450  KConfigSkeleton::ItemString *itemOwncloudPassword;
451  itemOwncloudPassword = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "owncloudPassword" ), mOwncloudPassword );
452  addItem( itemOwncloudPassword, QLatin1String( "owncloudPassword" ) );
453  KConfigSkeleton::ItemBool *itemAccessKWallet;
454  itemAccessKWallet = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "accessKWallet" ), mAccessKWallet, true );
455  addItem( itemAccessKWallet, QLatin1String( "accessKWallet" ) );
456 }
457 
458 MarbleSettings::~MarbleSettings()
459 {
460  if (!s_globalMarbleSettings.isDestroyed()) {
461  s_globalMarbleSettings->q = 0;
462  }
463 }
464 
MarbleSettings::mWorkOffline
bool mWorkOffline
Definition: settings.h:1583
MarbleSettings::mCustomTimezone
bool mCustomTimezone
Definition: settings.h:1597
Marble::RasterGraphics
Renders everything onto a pixmap.
Definition: MarbleGlobal.h:95
MarbleSettings::mShowDateTimeLabel
bool mShowDateTimeLabel
Definition: settings.h:1651
Marble::ShowHomeLocation
Show home location on startup.
Definition: MarbleGlobal.h:143
MarbleSettings::mPersistentTileCacheLimit
int mPersistentTileCacheLimit
Definition: settings.h:1633
MarbleSettings::mProxyPort
int mProxyPort
Definition: settings.h:1635
MarbleSettings::mMarbleDataPath
QString mMarbleDataPath
Definition: settings.h:1587
MarbleSettings::mOwncloudPassword
QString mOwncloudPassword
Definition: settings.h:1674
MarbleSettings::mSpeedSlider
int mSpeedSlider
Definition: settings.h:1592
MarbleSettings::~MarbleSettings
~MarbleSettings()
Definition: settings.cpp:458
MarbleSettings::mInertialEarthRotation
bool mInertialEarthRotation
Definition: settings.h:1627
Marble::KeepAxisVertically
Keep planet axis vertically.
Definition: MarbleGlobal.h:135
MarbleSettings::mAngleUnit
int mAngleUnit
Definition: settings.h:1610
MarbleSettings::mHomeLatitude
double mHomeLatitude
Definition: settings.h:1576
MarbleSettings::mVolatileTileCacheLimit
int mVolatileTileCacheLimit
Definition: settings.h:1632
MarbleSettings::mOnStartup
int mOnStartup
Definition: settings.h:1626
MarbleSettings::mQuitLongitude
double mQuitLongitude
Definition: settings.h:1578
MarbleSettings::mQuitRange
double mQuitRange
Definition: settings.h:1580
MarbleSettings::mProxyHttp
bool mProxyHttp
Definition: settings.h:1638
MarbleSettings::mProxySocks5
bool mProxySocks5
Definition: settings.h:1640
MarbleSettings::mLabelLocalization
int mLabelLocalization
Definition: settings.h:1614
KConfigSkeleton
MarbleSettings::mShowCurrentLocation
bool mShowCurrentLocation
Definition: settings.h:1584
MarbleSettings::mMapFont
QFont mMapFont
Definition: settings.h:1615
MarbleSettings::mExternalMapEditor
int mExternalMapEditor
Definition: settings.h:1629
MarbleSettings::mDragLocation
int mDragLocation
Definition: settings.h:1625
MarbleSettings::mTrackVisible
bool mTrackVisible
Definition: settings.h:1602
MarbleSettings::mLastFileOpenDir
QString mLastFileOpenDir
Definition: settings.h:1616
QDir::homePath
QString homePath()
MarbleSettings::mRouteColorHighlighted
QColor mRouteColorHighlighted
Definition: settings.h:1662
Marble::LowQuality
Low resolution (e.g. interlaced)
Definition: MarbleGlobal.h:84
MarbleSettings::mStillQuality
int mStillQuality
Definition: settings.h:1611
MarbleSettings::MarbleSettings
MarbleSettings()
Definition: settings.cpp:27
MarbleSettings::mSubSolarPointIconVisible
bool mSubSolarPointIconVisible
Definition: settings.h:1621
MarbleSettings::mRecenterMode
int mRecenterMode
Definition: settings.h:1606
MarbleSettings::mSyncBackend
QString mSyncBackend
Definition: settings.h:1669
MarbleSettings::mShowClouds
bool mShowClouds
Definition: settings.h:1582
QList::append
void append(const T &value)
MarbleSettings::mSyncRoutes
bool mSyncRoutes
Definition: settings.h:1671
MarbleSettings::mRouteAlphaHighlighted
int mRouteAlphaHighlighted
Definition: settings.h:1663
MarbleSettings::mRouteColorStandard
QColor mRouteColorStandard
Definition: settings.h:1660
Marble::Oxygen::aluminumGray4
QColor const aluminumGray4
Definition: MarbleColors.h:92
MarbleSettings::mUtc
bool mUtc
Definition: settings.h:1596
MarbleSettings::mDistanceUnit
int mDistanceUnit
Definition: settings.h:1609
MarbleSettings::mShowTileZoomLevelLabel
bool mShowTileZoomLevelLabel
Definition: settings.h:1649
MarbleSettings::mActivePositionTrackingPlugin
QString mActivePositionTrackingPlugin
Definition: settings.h:1644
MarbleSettings::mRouteAlphaAlternative
int mRouteAlphaAlternative
Definition: settings.h:1665
Marble::Native
Display the name in the official language and glyphs of the labeled place.
Definition: MarbleGlobal.h:127
MarbleSettings::mStaticUrlServers
QStringList mStaticUrlServers
Definition: settings.h:1655
MarbleSettings
Definition: settings.h:13
MarbleSettings::mChosenTimezone
int mChosenTimezone
Definition: settings.h:1598
Marble::Oxygen::seaBlue2
QColor const seaBlue2
Definition: MarbleColors.h:64
MarbleSettings::mSystemTimezone
bool mSystemTimezone
Definition: settings.h:1595
MarbleSettings::mLockToSubSolarPoint
bool mLockToSubSolarPoint
Definition: settings.h:1622
MarbleSettings::mProjection
int mProjection
Definition: settings.h:1586
Marble::Oxygen::skyBlue4
QColor const skyBlue4
Definition: MarbleColors.h:56
MarbleSettings::mCurrentRoutingProfile
int mCurrentRoutingProfile
Definition: settings.h:1659
QList
MarbleSettings::mLastTrackOpenPath
QString mLastTrackOpenPath
Definition: settings.h:1603
MarbleSettings::mShowPositionLabel
bool mShowPositionLabel
Definition: settings.h:1647
MarbleSettings::mHomeZoom
int mHomeZoom
Definition: settings.h:1577
MarbleSettings::mAutoCenter
bool mAutoCenter
Definition: settings.h:1601
MarbleSettings::mHomeLongitude
double mHomeLongitude
Definition: settings.h:1575
MarbleSettings::mProxyUrl
QString mProxyUrl
Definition: settings.h:1634
MarbleSettings::mLockFloatItemPositions
bool mLockFloatItemPositions
Definition: settings.h:1585
MarbleSettings::mProxyUser
QString mProxyUser
Definition: settings.h:1636
Marble::HttpProxy
Uses an Http proxy.
Definition: MarbleGlobal.h:103
settings.h
MarbleSettings::mLastSessionTime
bool mLastSessionTime
Definition: settings.h:1594
Marble::DMSDegree
Degrees in DMS notation.
Definition: MarbleGlobal.h:66
MarbleSettings::mQuitLatitude
double mQuitLatitude
Definition: settings.h:1579
QLatin1String
Marble::HighQuality
High quality (e.g. antialiasing for lines)
Definition: MarbleGlobal.h:86
MarbleSettings::mProxyPass
QString mProxyPass
Definition: settings.h:1637
MarbleSettings::mProxyAuth
bool mProxyAuth
Definition: settings.h:1641
MarbleSettings::mDateTime
QDateTime mDateTime
Definition: settings.h:1591
MarbleSettings::mOwncloudServer
QString mOwncloudServer
Definition: settings.h:1672
MarbleSettings::mShowCitylights
bool mShowCitylights
Definition: settings.h:1620
MarbleSettings::mEnableSync
bool mEnableSync
Definition: settings.h:1668
MarbleSettings::mShowSun
bool mShowSun
Definition: settings.h:1619
MarbleSettings::mAnimateTargetVoyage
bool mAnimateTargetVoyage
Definition: settings.h:1628
MarbleSettings::mShowGuidanceModeStartupWarning
bool mShowGuidanceModeStartupWarning
Definition: settings.h:1658
MarbleSettings::mShowBookmarks
bool mShowBookmarks
Definition: settings.h:1588
MarbleSettings::mAutoZoom
bool mAutoZoom
Definition: settings.h:1605
MarbleSettings::mProxyType
int mProxyType
Definition: settings.h:1639
MarbleSettings::mGraphicsSystem
int mGraphicsSystem
Definition: settings.h:1613
MarbleSettings::mOwncloudUsername
QString mOwncloudUsername
Definition: settings.h:1673
MarbleSettings::mRouteAlphaStandard
int mRouteAlphaStandard
Definition: settings.h:1661
MarbleSettings::mShowDownloadProgressBar
bool mShowDownloadProgressBar
Definition: settings.h:1650
MarbleSettings::mSystemTime
bool mSystemTime
Definition: settings.h:1593
MarbleSettings::mLastTrackSavePath
QString mLastTrackSavePath
Definition: settings.h:1604
MarbleSettings::mAnimationQuality
int mAnimationQuality
Definition: settings.h:1612
MarbleSettings::mAccessKWallet
bool mAccessKWallet
Definition: settings.h:1675
MarbleSettings::mWmsServers
QStringList mWmsServers
Definition: settings.h:1654
MarbleSettings::mMapTheme
QString mMapTheme
Definition: settings.h:1581
MarbleSettings::mShowAltitudeLabel
bool mShowAltitudeLabel
Definition: settings.h:1648
MarbleSettings::mRouteColorAlternative
QColor mRouteColorAlternative
Definition: settings.h:1664
MarbleSettings::mSyncBookmarks
bool mSyncBookmarks
Definition: settings.h:1670
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal