25 #include "kdecorationfactory.h"
29 #include "kdecoration_p.h"
31 KDecorationFactory::KDecorationFactory()
35 KDecorationFactory::~KDecorationFactory()
37 assert( _decorations.count() == 0 );
40 bool KDecorationFactory::reset(
unsigned long )
45 bool KDecorationFactory::supports( Ability )
50 void KDecorationFactory::checkRequirements( KDecorationProvides* )
54 TQValueList< KDecorationDefines::BorderSize > KDecorationFactory::borderSizes()
const
56 return TQValueList< BorderSize >() << BorderNormal;
59 bool KDecorationFactory::exists(
const KDecoration* deco )
const
61 return _decorations.contains(
const_cast< KDecoration*
>( deco ));
64 void KDecorationFactory::addDecoration(
KDecoration* deco )
66 _decorations.append( deco );
69 void KDecorationFactory::removeDecoration(
KDecoration* deco )
71 _decorations.remove( deco );
74 void KDecorationFactory::resetDecorations(
unsigned long changed )
76 for( TQValueList< KDecoration* >::ConstIterator it = _decorations.begin();
77 it != _decorations.end();
79 (*it)->reset( changed );
82 NET::WindowType KDecorationFactory::windowType(
unsigned long supported_types, KDecorationBridge* bridge )
const
84 return bridge->windowType( supported_types );
This is the base class for a decoration object.