Marble.AbstractDataPluginItem

KDE 4.9 PyKDE API Reference

- KDE's Python API

# AbstractDataPluginItem Class Reference

`from PyKDE4.marble import *`

Inherits: QObject
Namespace: Marble

## Detailed Description

Abstract class:
  This class can be used as a base class for new classes, but can not be instantiated directly.

## Signals
| favoriteChanged (QString id, bool favorite)
| idChanged ()
| stickyChanged ()
| updated ()
## Methods
| __init__ (self, QObject parent=0)
QAction | action (self)
[QAction] | actions (self)
| addDownloadedFile (self, QString url, QString type)
float | addedAngularResolution (self)
QString | id (self)
bool | initialized (self)
bool | isFavorite (self)
bool | isSticky (self)
QString | itemType (self)
| setAddedAngularResolution (self, float resolution)
| setFavorite (self, bool favorite)
| setId (self, QString id)
| setSettings (self, {QString:QVariant} settings)
| setSticky (self, bool sticky)
| setTarget (self, QString target)
| setToolTip (self, QString toolTip)
QString | target (self)
| toggleFavorite (self)
QString | toolTip (self)

## Signal Documentation

favoriteChanged | ( | QString | id,
|  | bool | favorite
| ) |  |  |

Signal syntax:
  `QObject.connect(source, SIGNAL("favoriteChanged(const QString&, bool)"), target_slot)`

idChanged | ( |  | ) |

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

stickyChanged | ( |  | ) |

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

updated | ( |  | ) |

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

## Method Documentation

__init__ | ( | self, |
|  | QObject | parent=0
| ) |  |  |

QAction action | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

Returns the action of this specific item.

[QAction] actions | ( |  | self ) |

addDownloadedFile | ( | self, |
|  | QString | url,
|  | QString | type
| ) |  |  |

Abstract method:
  This method is abstract and can be overridden but not called directly.

float addedAngularResolution | ( |  | self ) |

Returning the angular resolution of the viewport when the item was added to it the last time.

QString id | ( |  | self ) |

bool initialized | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

bool isFavorite | ( |  | self ) |

bool isSticky | ( |  | self ) |

QString itemType | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

Returns the type of this specific item.

setAddedAngularResolution | ( | self, |
|  | float | resolution
| ) |  |  |

setFavorite | ( | self, |
|  | bool | favorite
| ) |  |  |

setId | ( | self, |
|  | QString | id
| ) |  |  |

setSettings | ( | self, |
|  | {QString:QVariant} | settings
| ) |  |  |

Set the settings of the item. This is usually called automatically before painting. If you reimplement this it would be useful to check for changes before copying.

setSticky | ( | self, |
|  | bool | sticky
| ) |  |  |

setTarget | ( | self, |
|  | QString | target
| ) |  |  |

setToolTip | ( | self, |
|  | QString | toolTip
| ) |  |  |

Set the tool tip for the item.

QString target | ( |  | self ) |

toggleFavorite | ( |  | self ) |

QString toolTip | ( |  | self ) |

Returns the item's tool tip.