Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/common/effectsmodel.h
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
202 | /** | 202 | /** | ||
203 | * Shows a configuration dialog for a given effect. | 203 | * Shows a configuration dialog for a given effect. | ||
204 | * | 204 | * | ||
205 | * @param index An effect represented by the given index. | 205 | * @param index An effect represented by the given index. | ||
206 | * @param transientParent The transient parent of the configuration dialog. | 206 | * @param transientParent The transient parent of the configuration dialog. | ||
207 | **/ | 207 | **/ | ||
208 | void requestConfigure(const QModelIndex &index, QWindow *transientParent); | 208 | void requestConfigure(const QModelIndex &index, QWindow *transientParent); | ||
209 | 209 | | |||
210 | Q_SIGNALS: | ||||
211 | /** | ||||
212 | * This signal is emitted when the model is loaded or reloaded. | ||||
213 | * | ||||
214 | * @see load | ||||
215 | **/ | ||||
216 | void loaded(); | ||||
217 | | ||||
210 | protected: | 218 | protected: | ||
211 | enum class Kind { | 219 | enum class Kind { | ||
212 | BuiltIn, | 220 | BuiltIn, | ||
213 | Binary, | 221 | Binary, | ||
214 | Scripted | 222 | Scripted | ||
215 | }; | 223 | }; | ||
216 | 224 | | |||
217 | struct EffectData { | 225 | struct EffectData { | ||
Show All 30 Lines | |||||
248 | virtual bool shouldStore(const EffectData &data) const; | 256 | virtual bool shouldStore(const EffectData &data) const; | ||
249 | 257 | | |||
250 | private: | 258 | private: | ||
251 | void loadBuiltInEffects(const KConfigGroup &kwinConfig, const KPluginInfo::List &configs); | 259 | void loadBuiltInEffects(const KConfigGroup &kwinConfig, const KPluginInfo::List &configs); | ||
252 | void loadJavascriptEffects(const KConfigGroup &kwinConfig); | 260 | void loadJavascriptEffects(const KConfigGroup &kwinConfig); | ||
253 | void loadPluginEffects(const KConfigGroup &kwinConfig, const KPluginInfo::List &configs); | 261 | void loadPluginEffects(const KConfigGroup &kwinConfig, const KPluginInfo::List &configs); | ||
254 | 262 | | |||
255 | QVector<EffectData> m_effects; | 263 | QVector<EffectData> m_effects; | ||
264 | QVector<EffectData> m_pendingEffects; | ||||
265 | int m_lastSerial = -1; | ||||
256 | 266 | | |||
257 | Q_DISABLE_COPY(EffectsModel) | 267 | Q_DISABLE_COPY(EffectsModel) | ||
258 | }; | 268 | }; | ||
259 | 269 | | |||
260 | } | 270 | } |