[kwin] Introduce a X-KWin-Exclusive-Category in kwineffects service

All effects with

X-KWin-Exclusive-Category=category

are considered as mutual exclusive for specified category. So far this is
just a hint for the GUI representation. Such effects should get a
radio button while effects in the same category without that property
or with it set to false should get a checkbox.

As a first step the desktop change animation effects use this property
and are put into a new category "Virtual Desktop Switching Animation".

REVIEW: 116710
This commit is contained in:
Martin Gräßlin 2014-03-11 13:02:01 +01:00
parent a51cbf7b9e
commit d85f9971e0
4 changed files with 9 additions and 3 deletions

View file

@ -141,7 +141,7 @@ X-KDE-PluginInfo-Author=Martin Gräßlin
X-KDE-PluginInfo-Email=mgraesslin@kde.org
X-KDE-PluginInfo-Name=kwin4_effect_cubeslide
X-KDE-PluginInfo-Version=0.1.0
X-KDE-PluginInfo-Category=Window Management
X-KDE-PluginInfo-Category=Virtual Desktop Switching Animation
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=false
@ -149,3 +149,4 @@ X-KDE-Library=kwin4_effect_builtins
X-KDE-Ordering=50
X-KWin-Requires-OpenGL=true
X-KWin-Video-Url=http://files.kde.org/plasma/kwin/effect-videos/desktop_cube_animation.ogv
X-KWin-Exclusive-Category=desktop-animations

View file

@ -141,9 +141,10 @@ X-KDE-PluginInfo-Author=Lucas Murray, Martin Gräßlin
X-KDE-PluginInfo-Email=lmurray@undefinedfire.com, mgraesslin@kde.org
X-KDE-PluginInfo-Name=kwin4_effect_fadedesktop
X-KDE-PluginInfo-Version=0.2.0
X-KDE-PluginInfo-Category=Appearance
X-KDE-PluginInfo-Category=Virtual Desktop Switching Animation
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=false
X-KDE-Ordering=50
X-KWin-Video-Url=http://files.kde.org/plasma/kwin/effect-videos/fade_desktop.ogv
X-KWin-Exclusive-Category=desktop-animations

View file

@ -100,3 +100,6 @@ Type=bool
[PropertyDef::X-KWin-Video-Url]
Type=Url
[PropertyDef::X-KWin-Exclusive-Category]
Type=QString

View file

@ -146,10 +146,11 @@ X-KDE-PluginInfo-Author=Luboš Luňák
X-KDE-PluginInfo-Email=l.lunak@kde.org
X-KDE-PluginInfo-Name=kwin4_effect_slide
X-KDE-PluginInfo-Version=0.1.0
X-KDE-PluginInfo-Category=Appearance
X-KDE-PluginInfo-Category=Virtual Desktop Switching Animation
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-Library=kwin4_effect_builtins
X-KDE-Ordering=50
X-KWin-Video-Url=http://files.kde.org/plasma/kwin/effect-videos/slide.ogv
X-KWin-Exclusive-Category=desktop-animations