• 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
  • lib
  • marble
RenderPluginModel.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 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
9 //
10 
11 #ifndef MARBLE_RENDERPLUGINMODEL_H
12 #define MARBLE_RENDERPLUGINMODEL_H
13 
14 #include "marble_export.h"
15 #include <QStandardItemModel>
16 
17 #include <QList>
18 
19 #include "PluginInterface.h"
20 
21 namespace Marble
22 {
23 
24 class DialogConfigurationInterface;
25 class RenderPlugin;
26 
30 class MARBLE_EXPORT RenderPluginModel : public QStandardItemModel
31 {
32  Q_OBJECT
33 
34 public:
38  enum ItemDataRole {
39  Name = Qt::DisplayRole, // QString
40  Icon = Qt::DecorationRole, // QIcon
41  Description = Qt::ToolTipRole, // QString
42  NameId = Qt::UserRole + 2, // QString
43  ConfigurationDialogAvailable, // bool
44  BackendTypes, // QStringList
45  Version, // QString
46  AboutDataText, // QString
47  CopyrightYears // QString
48  };
49 
50  explicit RenderPluginModel( QObject *parent = 0 );
51 
52  ~RenderPluginModel();
53 
62  void setRenderPlugins( const QList<RenderPlugin *> &renderPlugins );
63 
64  QList<PluginAuthor> pluginAuthors( const QModelIndex &index ) const;
65 
66  DialogConfigurationInterface *pluginDialogConfigurationInterface( const QModelIndex &index );
67 
68 public Q_SLOTS:
72  void retrievePluginState();
73 
77  void applyPluginState();
78 
79 private:
80  class Private;
81  Private *const d;
82  friend class Private;
83 };
84 
85 }
86 
87 #endif // MARBLE_RENDERPLUGINMODEL_H
PluginInterface.h
Marble::RenderPluginModel
Provides common access to various kinds of plugins without having to know about their details...
Definition: RenderPluginModel.h:30
QModelIndex
QStandardItemModel
Marble::RenderPluginModel::AboutDataText
Definition: RenderPluginModel.h:46
Marble::DialogConfigurationInterface
This interface allows a plugin to provide a QWidget-based configuration dialog which is accessible wi...
Definition: DialogConfigurationInterface.h:31
Marble::RenderPluginModel::ItemDataRole
ItemDataRole
This enum contains the data roles for the QStandardItems.
Definition: RenderPluginModel.h:38
Marble::RenderPluginModel::Version
Definition: RenderPluginModel.h:45
Marble::RenderPluginModel::ConfigurationDialogAvailable
Definition: RenderPluginModel.h:43
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QList
marble_export.h
Marble::RenderPluginModel::BackendTypes
Definition: RenderPluginModel.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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