• 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
  • lib
  • marble
QtMarbleConfigDialog.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2009 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef MARBLE_QTMARBLECONFIGDIALOG_H
12 #define MARBLE_QTMARBLECONFIGDIALOG_H
13 
14 #include <QDialog>
15 #include <QLocale>
16 
17 #include "marble_export.h"
18 #include "MarbleGlobal.h"
19 #include "MarbleLocale.h"
20 
21 namespace Marble
22 {
23 
24 class MarbleWidget;
25 class CloudSyncManager;
26 
27 class QtMarbleConfigDialogPrivate;
28 
29 class MARBLE_EXPORT QtMarbleConfigDialog : public QDialog
30 {
31  Q_OBJECT
32 
33  public:
34  explicit QtMarbleConfigDialog(MarbleWidget *marbleWidget, CloudSyncManager *syncManager = 0,
35  QWidget *parent = 0 );
36  ~QtMarbleConfigDialog();
37 
38  // View Settings
39 
40  MarbleLocale::MeasurementSystem measurementSystem() const;
41  Marble::AngleUnit angleUnit() const;
42  Marble::MapQuality stillQuality() const;
43  Marble::MapQuality animationQuality() const;
44  QFont mapFont() const;
45 
46  // View
47  Marble::GraphicsSystem graphicsSystem() const;
48 
49 
50  // Navigation Settings
51  int onStartup() const;
52  bool animateTargetVoyage() const;
53  QString externalMapEditor() const;
54  bool inertialEarthRotation() const;
55 
56  // Cache Settings
57  int volatileTileCacheLimit() const;
58  int persistentTileCacheLimit() const;
59  QString proxyUrl() const;
60  int proxyPort() const;
61 
62  QString proxyUser() const;
63  QString proxyPass() const;
64  bool proxyType() const;
65  bool proxyAuth() const;
66 
67  // Time Settings
71  bool systemTime() const;
72 
76  bool lastSessionTime() const;
77 
81  bool systemTimezone() const;
82 
86  bool UTC() const;
87 
91  bool customTimezone() const;
92 
96  int chosenTimezone() const;
97 
98  void initializeCustomTimezone();
99 
100  // CloudSync settings
101  bool syncEnabled() const;
102  QString syncBackend() const;
103  bool syncBookmarks() const;
104  bool syncRoutes() const;
105  QString owncloudServer() const;
106  QString owncloudUsername() const;
107  QString owncloudPassword() const;
108 
109  Q_SIGNALS:
114  void settingsChanged();
115 
119  void clearVolatileCacheClicked();
120 
124  void clearPersistentCacheClicked();
125 
129  void syncNowClicked();
130 
131  public Q_SLOTS:
135  void disableSyncNow();
136  void enableSyncNow();
137 
141  void updateLastSync();
142 
146  void readSettings();
147 
151  void updateCloudSyncStatus( const QString &status );
152 
156  void writeSettings();
157 
158  private Q_SLOTS:
162  void syncSettings();
163 
164  void updateCloudSyncCredentials();
165 
166  private:
167  Q_DISABLE_COPY( QtMarbleConfigDialog )
168 
169  QtMarbleConfigDialogPrivate * const d;
170 };
171 
172 } // Marble namespace
173 
174 #endif
QWidget
QFont
Marble::QtMarbleConfigDialog
Definition: QtMarbleConfigDialog.h:29
Marble::MapQuality
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
Marble::MarbleLocale::MeasurementSystem
MeasurementSystem
Definition: MarbleLocale.h:37
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
MarbleLocale.h
MarbleGlobal.h
marble_export.h
Marble::AngleUnit
AngleUnit
This enum is used to choose the unit chosen to measure angles.
Definition: MarbleGlobal.h:65
QDialog
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Marble::GraphicsSystem
GraphicsSystem
This enum is used to choose which graphics system Qt is using.
Definition: MarbleGlobal.h:93
Marble::CloudSyncManager
Definition: CloudSyncManager.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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