KDE 4.9 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

MapThemeManager Class Reference

from PyKDE4.marble import *

Inherits: QObject
Namespace: Marble

Detailed Description

The class that handles map themes that are locally available .

This class which is able to check for maps that are locally available. After parsing the data it only stores the name, description and path into a QStandardItemModel.

The MapThemeManager is not owned by the MarbleWidget/Map itself. Instead it is owned by the widget or application that contains MarbleWidget/Map ( usually: the ControlView convenience class )

For convenience MarbleThemeManager provides a static helper class that loads the properties of a map theme into a GeoSceneDocument object.

See also:
GeoSceneDocument


Signals

 themesChanged ()

Methods

 __init__ (self, QObject parent=0)
QStringList mapThemeIds (self)
QStandardItemModel mapThemeModel (self)

Static Methods

 deleteMapTheme (QString mapThemeId)

Signal Documentation

themesChanged (   )

This signal will be emitted, when the themes change.

Signal syntax:
QObject.connect(source, SIGNAL("themesChanged()"), target_slot)

Method Documentation

__init__ (  self,
QObject  parent=0
)
QStringList mapThemeIds (   self )

Returns a list of all locally available map theme IDs

QStandardItemModel mapThemeModel (   self )

Provides a model of the locally existing themes.

This method provides a QStandardItemModel of all themes that are available via MarbleDirs.


Static Method Documentation

deleteMapTheme ( QString  mapThemeId
)

Deletes the map theme with the specified map theme ID.

Parameters:
mapThemeId  ID of the map theme to be deleted

Deletion will only succeed for local map themes, that is, if the map theme's directory structure resides in the user's home directory.

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal