Default::KDEDefaultClient Class Reference

Inheritance diagram for Default::KDEDefaultClient:
KCommonDecoration KDecoration KDecorationDefines

List of all members.

Public Member Functions

 KDEDefaultClient (KDecorationBridge *b, KDecorationFactory *f)
virtual TQString visibleName () const
virtual TQString defaultButtonsLeft () const
virtual TQString defaultButtonsRight () const
virtual bool decorationBehaviour (DecorationBehaviour behaviour) const
virtual int layoutMetric (LayoutMetric lm, bool respectWindowState=true, const KCommonDecorationButton *=0) const
virtual KCommonDecorationButtoncreateButton (ButtonType type)
virtual TQRegion cornerShape (WindowCorner corner)
void init ()
void reset (unsigned long changed)

Protected Member Functions

void paintEvent (TQPaintEvent *)

Member Function Documentation

TQRegion Default::KDEDefaultClient::cornerShape ( WindowCorner  corner  )  [virtual]
Returns:
the mask for the specific window corner.

Reimplemented from KCommonDecoration.

KCommonDecorationButton * Default::KDEDefaultClient::createButton ( ButtonType  type  )  [virtual]

Create a new title bar button. KCommonDecoration takes care of memory management.

Returns:
a pointer to the button, or 0 if the button should not be created.

Implements KCommonDecoration.

bool Default::KDEDefaultClient::decorationBehaviour ( DecorationBehaviour  behaviour  )  const [virtual]

This controls whether some specific behaviour should be enabled or not.

See also:
DecorationBehaviour

Reimplemented from KCommonDecoration.

TQString Default::KDEDefaultClient::defaultButtonsLeft (  )  const [virtual]

The default title button order on the left.

See also:
KDecoration::titleButtonsLeft()
KDecoration::titleButtonsRight()

Implements KCommonDecoration.

TQString Default::KDEDefaultClient::defaultButtonsRight (  )  const [virtual]

The default title button order on the left.

See also:
KDecoration::titleButtonsLeft()
KDecoration::titleButtonsRight()

Implements KCommonDecoration.

void Default::KDEDefaultClient::init (  )  [virtual]

Handles widget and layout creation, call the base implementation when subclassing this member.

Reimplemented from KCommonDecoration.

int Default::KDEDefaultClient::layoutMetric ( LayoutMetric  lm,
bool  respectWindowState = true,
const KCommonDecorationButton button = 0 
) const [virtual]

This controls the layout of the decoration in various ways. It is possible to have a different layout for different window states.

Parameters:
lm The layout element.
respectWindowState Whether window states should be taken into account or a "default" state should be assumed.
button For LM_ButtonWidth and LM_ButtonHeight, the button.

Reimplemented from KCommonDecoration.

void Default::KDEDefaultClient::paintEvent ( TQPaintEvent *  e  )  [protected, virtual]

Draw the window decoration.

Implements KCommonDecoration.

void Default::KDEDefaultClient::reset ( unsigned long  changed  )  [virtual]

Handles SettingButtons, call the base implementation when subclassing this member.

Reimplemented from KCommonDecoration.

TQString Default::KDEDefaultClient::visibleName (  )  const [virtual]

The name of the decoration used in the decoration preview.

Implements KCommonDecoration.


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

Generated on Sat Oct 2 23:01:22 2010 by  doxygen 1.6.1