marble
#include <RenderPluginModel.h>
Inherits QStandardItemModel.
Public Types | |
enum | ItemDataRole { Name = Qt::DisplayRole, Icon = Qt::DecorationRole, Description = Qt::ToolTipRole, NameId = Qt::UserRole + 2, ConfigurationDialogAvailable, BackendTypes, Version, AboutDataText, CopyrightYears } |
Public Slots | |
void | applyPluginState () |
void | retrievePluginState () |
Public Member Functions | |
RenderPluginModel (QObject *parent=0) | |
~RenderPluginModel () | |
QList< PluginAuthor > | pluginAuthors (const QModelIndex &index) const |
DialogConfigurationInterface * | pluginDialogConfigurationInterface (const QModelIndex &index) |
void | setRenderPlugins (const QList< RenderPlugin * > &renderPlugins) |
Detailed Description
Provides common access to various kinds of plugins without having to know about their details.
Definition at line 30 of file RenderPluginModel.h.
Member Enumeration Documentation
This enum contains the data roles for the QStandardItems.
Enumerator | |
---|---|
Name | |
Icon | |
Description | |
NameId | |
ConfigurationDialogAvailable | |
BackendTypes | |
Version | |
AboutDataText | |
CopyrightYears |
Definition at line 38 of file RenderPluginModel.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 38 of file RenderPluginModel.cpp.
Marble::RenderPluginModel::~RenderPluginModel | ( | ) |
Definition at line 44 of file RenderPluginModel.cpp.
Member Function Documentation
|
slot |
Apply the plugin state from the user interface.
Definition at line 100 of file RenderPluginModel.cpp.
QList< PluginAuthor > Marble::RenderPluginModel::pluginAuthors | ( | const QModelIndex & | index | ) | const |
Definition at line 70 of file RenderPluginModel.cpp.
DialogConfigurationInterface * Marble::RenderPluginModel::pluginDialogConfigurationInterface | ( | const QModelIndex & | index | ) |
Definition at line 81 of file RenderPluginModel.cpp.
|
slot |
Retrieve the current plugin state for the user interface.
Definition at line 93 of file RenderPluginModel.cpp.
void Marble::RenderPluginModel::setRenderPlugins | ( | const QList< RenderPlugin * > & | renderPlugins | ) |
Set the RenderPlugins the model should manage.
The given plugins must not be deleted as long as the model has a hold on them, i.e. until the model is deleted or a different set of plugins is assigned.
- Parameters
-
renderPlugins the RenderPlugins to be managed
Definition at line 54 of file RenderPluginModel.cpp.
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:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.