0170623a9c
greater possibilities in extending KDecoration. KCommonDecoration now does not inherit KDecoration, only wraps it (i.e. it's source compatible). Added comments on how to extend KDecoration in the future by subclassing to KDecoration2, added PORTING document with all API changes in KDE4. CCMAIL: kwin@kde.org svn path=/trunk/KDE/kdebase/workspace/; revision=742976
25 lines
1.2 KiB
Text
25 lines
1.2 KiB
Text
This document lists changed needed for porting KWin decoration clients from KDE3 to KDE4:
|
|
|
|
- the client needs to be ported to KDE4/Qt4 (obviously)
|
|
- KCommonDecoration no longer inherits KDecoration, it only has the same API (it is
|
|
source-compatible) - this means that generally there should not be any changes related
|
|
to this needed, with the exception of converting from KCommonDecoration* to KDecoration*
|
|
(most notably in createDecoration()) - call decoration() to do the conversion;
|
|
for example, change
|
|
"
|
|
KDecoration* YourClientHandler::createDecoration( KDecorationBridge* bridge )
|
|
{
|
|
return new YourClientClient( bridge, this );
|
|
}
|
|
"
|
|
to
|
|
"
|
|
KDecoration* YourClientHandler::createDecoration( KDecorationBridge* bridge )
|
|
{
|
|
return ( new YourClientClient( bridge, this ))->decoration();
|
|
}
|
|
"
|
|
- KDecoration::workspaceWidget() has been removed, for drawing outlines in drawbound(),
|
|
use code similar to example in the documentation for KDecoration::drawbound()
|
|
- KDecoration::animateMinimize() and KDecoration::helperShowHide() have been removed,
|
|
animations are now implemented only by KWin's compositing code
|