Back to index

kdeartwork  4.3.2
Public Member Functions
OpenLook::DecorationFactory Class Reference

#include <OpenLook.h>

List of all members.

Public Member Functions

 DecorationFactory ()
virtual ~DecorationFactory ()
virtual KDecoration * createDecoration (KDecorationBridge *)
virtual bool reset (unsigned long changed)
virtual bool supports (Ability ability)
virtual QList
< DecorationFactory::BorderSize > 
borderSizes () const

Detailed Description

Definition at line 108 of file OpenLook.h.


Constructor & Destructor Documentation

Definition at line 66 of file OpenLook.cpp.

{
}

Definition at line 70 of file OpenLook.cpp.

{
}

Member Function Documentation

QList< DecorationFactory::BorderSize > OpenLook::DecorationFactory::borderSizes ( ) const [virtual]

Definition at line 99 of file OpenLook.cpp.

{
    // the list must be sorted
    return QList< BorderSize >() << BorderNormal <<
       BorderLarge << BorderVeryLarge <<  BorderHuge <<
       BorderVeryHuge << BorderOversized;
}
KDecoration * OpenLook::DecorationFactory::createDecoration ( KDecorationBridge *  b) [virtual]

Definition at line 74 of file OpenLook.cpp.

{
    return new OpenLook(b, this);
}
bool OpenLook::DecorationFactory::reset ( unsigned long  changed) [virtual]

Definition at line 79 of file OpenLook.cpp.

{
    // TODO Do not recreate decorations if it is not needed. Look at
    // ModernSystem for how to do that
    // For now just return true.
    return true;
}
bool OpenLook::DecorationFactory::supports ( Ability  ability) [virtual]

Definition at line 87 of file OpenLook.cpp.

{
    switch( ability )
    {
        case AbilityAnnounceButtons:
        case AbilityButtonMinimize:
            return true;
        default:
            return false;
    };
}

The documentation for this class was generated from the following files: