• 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
  • plugins
  • declarative
DeclarativeMapThemeManager.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 2010 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef DECLARATIVE_MAPTHEMEMANAGER_H
12 #define DECLARATIVE_MAPTHEMEMANAGER_H
13 
14 #include "MapThemeManager.h"
15 
16 #if QT_VERSION <= 0x050000
17  #include <QDeclarativeImageProvider>
18  typedef QDeclarativeImageProvider QQuickImageProvider;
19 #else
20  #include <QQuickImageProvider>
21 #endif
22 
23 class MapThemeImageProvider : public QQuickImageProvider
24 {
25 public:
26  MapThemeImageProvider();
27 
28  QPixmap requestPixmap( const QString &id, QSize *size, const QSize &requestedSize );
29 
30 private:
34  Marble::MapThemeManager m_mapThemeManager;
35 };
36 
40 class MapThemeManager : public QObject
41 {
42  Q_OBJECT
43 
44 public:
46  explicit MapThemeManager( QObject *parent = 0 );
47 
52  QStringList mapThemeIds() const;
53 
54 private:
56  Marble::MapThemeManager m_mapThemeManager;
57 };
58 
59 #endif // DECLARATIVE_MAPTHEMEMANAGER_H
MapThemeImageProvider::MapThemeImageProvider
MapThemeImageProvider()
Definition: DeclarativeMapThemeManager.cpp:20
MapThemeImageProvider
Definition: DeclarativeMapThemeManager.h:23
MapThemeManager
Provides access to all map themes installed locally.
Definition: DeclarativeMapThemeManager.h:40
MapThemeManager::MapThemeManager
MapThemeManager(QObject *parent=0)
Constructor.
Definition: DeclarativeMapThemeManager.cpp:47
QQuickImageProvider
QDeclarativeImageProvider QQuickImageProvider
Definition: DeclarativeMapThemeManager.h:18
QObject
QString
MapThemeManager::mapThemeIds
QStringList mapThemeIds() const
A list of all installed map theme ids, each entry has the form "planet/themeid/themeid.dgml", e.g.
Definition: DeclarativeMapThemeManager.cpp:52
QStringList
QPixmap
QSize
Marble::MapThemeManager
The class that handles map themes that are locally available .
Definition: MapThemeManager.h:48
MapThemeImageProvider::requestPixmap
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize)
Definition: DeclarativeMapThemeManager.cpp:26
QDeclarativeImageProvider
QObject::parent
QObject * parent() const
MapThemeManager.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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