class KDockWidgetHeader

The header (additional bar) for a KDockWidget s (and member of the dockwidget class set). More...

Definition#include <kdockwidget.h>
InheritsKDockWidgetAbstractHeader [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Slots

Protected Members


Detailed Description

The header (additional bar) for a KDockWidget s (and member of the dockwidget class set). It have got the buttons located there. And it is for recording and reading the button states. More or less a minor helper class for the dockwidget class set.

 KDockWidgetHeader ( KDockWidget* parent, const char* name = 0L )

KDockWidgetHeader

Constructs this.

Parameters:
parentthe parent widget (usually a dockwidget)
namethe object instance name

 ~KDockWidgetHeader ()

~KDockWidgetHeader

[virtual]

Destructs this.

void  setTopLevel ( bool t)

setTopLevel

[virtual]

Hides the close button and stay button when switching to toplevel or vice versa shows them.

Parameters:
ttoplevel or not

Reimplemented from KDockWidgetAbstractHeader.

void  setDragPanel ( KDockWidgetHeaderDrag* nd )

setDragPanel

Set the drag panel of this header.

Parameters:
ndA pointer to the new drag panel

bool  dragEnabled ()

dragEnabled

void  setDragEnabled (bool b)

setDragEnabled

void  saveConfig ( KConfig* c)

saveConfig

[virtual]

Saves the current button state to a KDE config container object.

Parameters:
cthe configuration safe

Reimplemented from KDockWidgetAbstractHeader.

void  loadConfig ( KConfig* )

loadConfig

[virtual]

Loads the current button state from a KDE config container object.

Parameters:
cthe configuration safe

Reimplemented from KDockWidgetAbstractHeader.

void  slotStayClicked ()

slotStayClicked

[protected slots slot]

Set dragging the dockwidget off when the stay button is pressed down and vice versa.

QHBoxLayout* layout

layout

[protected]

KDockButton_Private* closeButton

closeButton

[protected]

KDockButton_Private* stayButton

stayButton

[protected]

KDockButton_Private* dockbackButton

dockbackButton

[protected]

KDockWidgetHeaderDrag* drag

drag

[protected]