Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 1648 Lines • ▼ Show 20 Line(s) | 1648 | { | |||
---|---|---|---|---|---|
1649 | return kwinApp()->config(); | 1649 | return kwinApp()->config(); | ||
1650 | } | 1650 | } | ||
1651 | 1651 | | |||
1652 | KSharedConfigPtr EffectsHandlerImpl::inputConfig() const | 1652 | KSharedConfigPtr EffectsHandlerImpl::inputConfig() const | ||
1653 | { | 1653 | { | ||
1654 | return kwinApp()->inputConfig(); | 1654 | return kwinApp()->inputConfig(); | ||
1655 | } | 1655 | } | ||
1656 | 1656 | | |||
1657 | Effect *EffectsHandlerImpl::findEffect(const QString &name) const | ||||
1658 | { | ||||
1659 | auto it = std::find_if(loaded_effects.constBegin(), loaded_effects.constEnd(), | ||||
1660 | [name] (const EffectPair &pair) { | ||||
1661 | return pair.first == name; | ||||
1662 | } | ||||
1663 | ); | ||||
1664 | if (it == loaded_effects.constEnd()) { | ||||
1665 | return nullptr; | ||||
1666 | } | ||||
1667 | return (*it).second; | ||||
1668 | } | ||||
1669 | | ||||
1657 | //**************************************** | 1670 | //**************************************** | ||
1658 | // EffectWindowImpl | 1671 | // EffectWindowImpl | ||
1659 | //**************************************** | 1672 | //**************************************** | ||
1660 | 1673 | | |||
1661 | EffectWindowImpl::EffectWindowImpl(Toplevel *toplevel) | 1674 | EffectWindowImpl::EffectWindowImpl(Toplevel *toplevel) | ||
1662 | : EffectWindow(toplevel) | 1675 | : EffectWindow(toplevel) | ||
1663 | , toplevel(toplevel) | 1676 | , toplevel(toplevel) | ||
1664 | , sw(nullptr) | 1677 | , sw(nullptr) | ||
▲ Show 20 Lines • Show All 608 Lines • Show Last 20 Lines |