Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/AbstractDataPlugin.h
Show All 9 Lines | |||||
10 | 10 | | |||
11 | #ifndef MARBLE_ABSTRACTDATAPLUGIN_H | 11 | #ifndef MARBLE_ABSTRACTDATAPLUGIN_H | ||
12 | #define MARBLE_ABSTRACTDATAPLUGIN_H | 12 | #define MARBLE_ABSTRACTDATAPLUGIN_H | ||
13 | 13 | | |||
14 | // Marble | 14 | // Marble | ||
15 | #include "marble_export.h" | 15 | #include "marble_export.h" | ||
16 | #include "RenderPlugin.h" | 16 | #include "RenderPlugin.h" | ||
17 | 17 | | |||
18 | class QQmlComponent; | | |||
19 | class QQuickItem; | | |||
20 | | ||||
21 | namespace Marble | 18 | namespace Marble | ||
22 | { | 19 | { | ||
23 | 20 | | |||
24 | class ViewportParams; | 21 | class ViewportParams; | ||
25 | class GeoSceneLayer; | 22 | class GeoSceneLayer; | ||
26 | class AbstractDataPluginItem; | 23 | class AbstractDataPluginItem; | ||
27 | class AbstractDataPluginModel; | 24 | class AbstractDataPluginModel; | ||
28 | class AbstractDataPluginPrivate; | 25 | class AbstractDataPluginPrivate; | ||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
108 | /** | 105 | /** | ||
109 | * Function for returning the type of plugin this is for. | 106 | * Function for returning the type of plugin this is for. | ||
110 | * This affects where in the menu tree the action() is placed. | 107 | * This affects where in the menu tree the action() is placed. | ||
111 | * | 108 | * | ||
112 | * @return: The type of render plugin this is. | 109 | * @return: The type of render plugin this is. | ||
113 | */ | 110 | */ | ||
114 | virtual RenderType renderType() const; | 111 | virtual RenderType renderType() const; | ||
115 | 112 | | |||
116 | void setDelegate(QQmlComponent* delegate, QQuickItem *parent ); | | |||
117 | | ||||
118 | /** Convenience method to set the favorite item state on the current model */ | 113 | /** Convenience method to set the favorite item state on the current model */ | ||
119 | void setFavoriteItemsOnly( bool favoriteOnly ); | 114 | void setFavoriteItemsOnly( bool favoriteOnly ); | ||
120 | 115 | | |||
121 | bool isFavoriteItemsOnly() const; | 116 | bool isFavoriteItemsOnly() const; | ||
122 | 117 | | |||
123 | QObject* favoritesModel(); | 118 | QObject* favoritesModel(); | ||
124 | 119 | | |||
125 | public Q_SLOTS: | | |||
126 | void handleViewportChange( const ViewportParams *viewport ); | | |||
127 | | ||||
128 | private Q_SLOTS: | 120 | private Q_SLOTS: | ||
129 | virtual void favoriteItemsChanged( const QStringList& favoriteItems ); | 121 | virtual void favoriteItemsChanged( const QStringList& favoriteItems ); | ||
130 | 122 | | |||
131 | void delayedUpdate(); | 123 | void delayedUpdate(); | ||
132 | 124 | | |||
133 | Q_SIGNALS: | 125 | Q_SIGNALS: | ||
134 | void changedNumberOfItems( quint32 number ); | 126 | void changedNumberOfItems( quint32 number ); | ||
135 | 127 | | |||
Show All 11 Lines |