marble
#include <AbstractDataPlugin.h>

Public Slots | |
void | handleViewportChange (const ViewportParams *viewport) |
![]() | |
QAction * | action () const |
void | restoreDefaultSettings () |
void | setEnabled (bool enabled) |
bool | setSetting (const QString &key, const QVariant &value) |
QVariant | setting (const QString &key) |
QStringList | settingKeys () |
void | setUserCheckable (bool isUserCheckable) |
void | setVisible (bool visible) |
Signals | |
void | changedNumberOfItems (quint32 number) |
void | favoriteItemsOnlyChanged () |
void | favoritesModelChanged () |
![]() | |
void | actionGroupsChanged () |
void | enabledChanged (bool enable) |
void | repaintNeeded (QRegion dirtyRegion=QRegion()) |
void | settingsChanged (QString nameId) |
void | userCheckableChanged (bool isUserCheckable) |
void | visibilityChanged (bool visible, const QString &nameId) |
Public Member Functions | |
AbstractDataPlugin (const MarbleModel *marbleModel) | |
virtual | ~AbstractDataPlugin () |
QStringList | backendTypes () const |
QObject * | favoritesModel () |
bool | isFavoriteItemsOnly () const |
bool | isInitialized () const |
AbstractDataPluginModel * | model () const |
quint32 | numberOfItems () const |
bool | render (GeoPainter *painter, ViewportParams *viewport, const QString &renderPos="NONE", GeoSceneLayer *layer=0) |
QString | renderPolicy () const |
QStringList | renderPosition () const |
virtual RenderType | renderType () const |
void | setDelegate (QDeclarativeComponent *delegate, QGraphicsItem *parent) |
void | setFavoriteItemsOnly (bool favoriteOnly) |
void | setModel (AbstractDataPluginModel *model) |
void | setNumberOfItems (quint32 number) |
QList< AbstractDataPluginItem * > | whichItemAt (const QPoint &curpos) |
![]() | |
RenderPlugin (const MarbleModel *marbleModel) | |
virtual | ~RenderPlugin () |
virtual const QList < QActionGroup * > * | actionGroups () const |
bool | enabled () const |
virtual QString | guiString () const =0 |
bool | isUserCheckable () const |
const MarbleModel * | marbleModel () const |
virtual RenderPlugin * | newInstance (const MarbleModel *marbleModel) const =0 |
virtual QString | runtimeTrace () const |
virtual void | setSettings (const QHash< QString, QVariant > &settings) |
virtual QHash< QString, QVariant > | settings () const |
virtual const QList < QActionGroup * > * | toolbarActionGroups () const |
bool | visible () const |
![]() | |
virtual | ~RenderPluginInterface () |
virtual void | initialize ()=0 |
![]() | |
virtual | ~PluginInterface () |
virtual QString | aboutDataText () const |
virtual QString | copyrightYears () const =0 |
virtual QString | description () const =0 |
virtual QIcon | icon () const =0 |
virtual QString | name () const =0 |
virtual QString | nameId () const =0 |
virtual QList< PluginAuthor > | pluginAuthors () const =0 |
virtual QString | version () const =0 |
![]() | |
virtual | ~LayerInterface () |
virtual qreal | zValue () const |
Properties | |
bool | favoriteItemsOnly |
QObject | favoritesModel |
int | numberOfItems |
![]() | |
QString | description |
bool | enabled |
QString | name |
QString | nameId |
bool | userCheckable |
QString | version |
bool | visible |
Additional Inherited Members | |
![]() | |
enum | RenderType { UnknownRenderType, TopLevelRenderType, PanelRenderType, OnlineRenderType, ThemeRenderType } |
![]() | |
bool | eventFilter (QObject *, QEvent *) |
Detailed Description
An abstract class for plugins that show data that has a geo coordinate.
This is the abstract class for plugins that show data on Marble map. It takes care of painting all items it gets from the corresponding AbstractDataPluginModel that has to be set on initialisation.
The user has to set the nameId as well as the number of items to fetch. Additionally it should be useful to set standard values via setEnabled (often true) and setVisible (often false) in the constructor of a subclass.
Definition at line 45 of file AbstractDataPlugin.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 69 of file AbstractDataPlugin.cpp.
|
virtual |
Definition at line 76 of file AbstractDataPlugin.cpp.
Member Function Documentation
|
virtual |
Returns the name(s) of the backend that the plugin can render.
Implements Marble::RenderPluginInterface.
Reimplemented in Marble::OpenCachingComPlugin.
Definition at line 86 of file AbstractDataPlugin.cpp.
|
signal |
|
signal |
QObject* Marble::AbstractDataPlugin::favoritesModel | ( | ) |
|
signal |
|
slot |
Definition at line 201 of file AbstractDataPlugin.cpp.
bool Marble::AbstractDataPlugin::isFavoriteItemsOnly | ( | ) | const |
Definition at line 191 of file AbstractDataPlugin.cpp.
|
virtual |
Implements Marble::RenderPluginInterface.
Reimplemented in DeclarativeDataPlugin, Marble::OpenCachingComPlugin, and Marble::OpenCachingPlugin.
Definition at line 81 of file AbstractDataPlugin.cpp.
AbstractDataPluginModel * Marble::AbstractDataPlugin::model | ( | ) | const |
- Returns
- The model associated with the plugin.
Definition at line 124 of file AbstractDataPlugin.cpp.
quint32 Marble::AbstractDataPlugin::numberOfItems | ( | ) | const |
- Returns
- The number of items to be shown at the same time.
|
virtual |
Renders the content provided by the plugin on the viewport.
- Returns
true
Returns whether the rendering has been successful
Implements Marble::LayerInterface.
Definition at line 101 of file AbstractDataPlugin.cpp.
|
virtual |
Return how the plugin settings should be used.
Implements Marble::RenderPluginInterface.
Definition at line 91 of file AbstractDataPlugin.cpp.
|
virtual |
Preferred level in the layer stack for the rendering.
Implements Marble::LayerInterface.
Definition at line 96 of file AbstractDataPlugin.cpp.
|
virtual |
Function for returning the type of plugin this is for.
This affects where in the menu tree the action() is placed.
- Returns
- : The type of render plugin this is.
Reimplemented from Marble::RenderPlugin.
Definition at line 170 of file AbstractDataPlugin.cpp.
void Marble::AbstractDataPlugin::setDelegate | ( | QDeclarativeComponent * | delegate, |
QGraphicsItem * | parent | ||
) |
Definition at line 175 of file AbstractDataPlugin.cpp.
void Marble::AbstractDataPlugin::setFavoriteItemsOnly | ( | bool | favoriteOnly | ) |
Convenience method to set the favorite item state on the current model.
Definition at line 184 of file AbstractDataPlugin.cpp.
void Marble::AbstractDataPlugin::setModel | ( | AbstractDataPluginModel * | model | ) |
Set the model of the plugin.
Definition at line 129 of file AbstractDataPlugin.cpp.
void Marble::AbstractDataPlugin::setNumberOfItems | ( | quint32 | number | ) |
Set the number of items to be shown at the same time.
Definition at line 151 of file AbstractDataPlugin.cpp.
QList< AbstractDataPluginItem * > Marble::AbstractDataPlugin::whichItemAt | ( | const QPoint & | curpos | ) |
This function returns all items at the position curpos
.
Depending on where they have been painted the last time.
- Returns
- The items at the given position.
Definition at line 160 of file AbstractDataPlugin.cpp.
Property Documentation
|
readwrite |
Definition at line 49 of file AbstractDataPlugin.h.
|
read |
Definition at line 51 of file AbstractDataPlugin.h.
|
readwrite |
Definition at line 52 of file AbstractDataPlugin.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.