Add AbilityAnnounceColors and AbilityColor* abilities to kwin decorations; this way clients can say what colors they support for the benifit of the color kcm (and anyone else that might need to know?)

svn path=/trunk/KDE/kdebase/workspace/; revision=743015
This commit is contained in:
Matthew Woehlke 2007-11-29 17:13:15 +00:00
parent 21433fbb26
commit 529611c662
2 changed files with 13 additions and 0 deletions

View file

@ -23,3 +23,4 @@ This document lists changed needed for porting KWin decoration clients from KDE3
use code similar to example in the documentation for KDecoration::drawbound() use code similar to example in the documentation for KDecoration::drawbound()
- KDecoration::animateMinimize() and KDecoration::helperShowHide() have been removed, - KDecoration::animateMinimize() and KDecoration::helperShowHide() have been removed,
animations are now implemented only by KWin's compositing code animations are now implemented only by KWin's compositing code
- there are new AbilityColor* abilities you should add to supports()

View file

@ -152,7 +152,10 @@ public:
*/ */
enum Ability enum Ability
{ {
// announce
AbilityAnnounceButtons = 0, ///< decoration supports AbilityButton* values (always use) AbilityAnnounceButtons = 0, ///< decoration supports AbilityButton* values (always use)
AbilityAnnounceColors = 1, ///< decoration supports AbilityColor* values (always use)
// buttons
AbilityButtonMenu = 1000, ///< decoration supports the menu button AbilityButtonMenu = 1000, ///< decoration supports the menu button
AbilityButtonOnAllDesktops = 1001, ///< decoration supports the on all desktops button AbilityButtonOnAllDesktops = 1001, ///< decoration supports the on all desktops button
AbilityButtonSpacer = 1002, ///< decoration supports inserting spacers between buttons AbilityButtonSpacer = 1002, ///< decoration supports inserting spacers between buttons
@ -164,6 +167,15 @@ public:
AbilityButtonBelowOthers = 1008, ///< decoration supports a below button AbilityButtonBelowOthers = 1008, ///< decoration supports a below button
AbilityButtonShade = 1009, ///< decoration supports a shade button AbilityButtonShade = 1009, ///< decoration supports a shade button
AbilityButtonResize = 1010, ///< decoration supports a resize button AbilityButtonResize = 1010, ///< decoration supports a resize button
// colors
AbilityColorTitleBack = 2000, ///< decoration supports titlebar background color
AbilityColorTitleFore = 2001, ///< decoration supports titlebar foreground color
AbilityColorTitleBlend = 2002, ///< decoration supports second titlebar background color
AbilityColorFrame = 2010, ///< decoration supports frame color
AbilityColorHandle = 2011, ///< decoration supports resize handle color
AbilityColorButtonBack = 2020, ///< decoration supports button background color
AbilityColorButtonFore = 2021, ///< decoration supports button foreground color
// TODO colors for individual button types
ABILITY_DUMMY = 10000000 ABILITY_DUMMY = 10000000
}; };