Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/common/effectmodel.h
Show All 23 Lines | |||||
24 | #include <kwin_export.h> | 24 | #include <kwin_export.h> | ||
25 | 25 | | |||
26 | #include <KPluginInfo> | 26 | #include <KPluginInfo> | ||
27 | #include <KSharedConfig> | 27 | #include <KSharedConfig> | ||
28 | 28 | | |||
29 | #include <QAbstractItemModel> | 29 | #include <QAbstractItemModel> | ||
30 | #include <QString> | 30 | #include <QString> | ||
31 | #include <QUrl> | 31 | #include <QUrl> | ||
32 | #include <QWindow> | ||||
32 | 33 | | |||
33 | namespace KWin | 34 | namespace KWin | ||
34 | { | 35 | { | ||
35 | 36 | | |||
36 | class KWIN_EXPORT EffectModel : public QAbstractItemModel | 37 | class KWIN_EXPORT EffectModel : public QAbstractItemModel | ||
37 | { | 38 | { | ||
38 | Q_OBJECT | 39 | Q_OBJECT | ||
39 | 40 | | |||
▲ Show 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
182 | **/ | 183 | **/ | ||
183 | bool needsSave() const; | 184 | bool needsSave() const; | ||
184 | 185 | | |||
185 | /** | 186 | /** | ||
186 | * Finds an effect with the given plugin id. | 187 | * Finds an effect with the given plugin id. | ||
187 | **/ | 188 | **/ | ||
188 | QModelIndex findByPluginId(const QString &pluginId) const; | 189 | QModelIndex findByPluginId(const QString &pluginId) const; | ||
189 | 190 | | |||
191 | /** | ||||
192 | * Shows a configuration dialog for a given effect. | ||||
193 | * | ||||
194 | * @param index An effect represented by the given index. | ||||
195 | * @param transientParent The transient parent of the configuration dialog. | ||||
196 | **/ | ||||
197 | void requestConfigure(const QModelIndex &index, QWindow *transientParent); | ||||
198 | | ||||
190 | protected: | 199 | protected: | ||
191 | enum class Kind { | 200 | enum class Kind { | ||
192 | BuiltIn, | 201 | BuiltIn, | ||
193 | Binary, | 202 | Binary, | ||
194 | Scripted | 203 | Scripted | ||
195 | }; | 204 | }; | ||
196 | 205 | | |||
197 | struct EffectData { | 206 | struct EffectData { | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |