class KDockWidgetHeader

# class KDockWidgetHeader | The header (additional bar) for a KDockWidget s (and member of the dockwidget class set). More...
Definition | `#include <kdockwidget.h>`
Inherits | KDockWidgetAbstractHeader [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KDockWidgetHeader ( KDockWidget* parent, const char* name = 0L )
- virtual ~KDockWidgetHeader ()
- virtual void setTopLevel ( bool t)
- void setDragPanel ( KDockWidgetHeaderDrag* nd )
- bool dragEnabled () const
- void setDragEnabled (bool b)
- void showUndockButton (bool show)
- virtual void saveConfig ( KConfig* c)
- virtual void loadConfig ( KConfig* )

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

#### Protected Slots

- void slotStayClicked ()

#### Protected Members

- QHBoxLayout* layout
- KDockButton_Private* closeButton
- KDockButton_Private* stayButton
- KDockButton_Private* dockbackButton
- KDockWidgetHeaderDrag* drag

## 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:

parent | the parent widget (usually a dockwidget)
name | the 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:

t | toplevel or not

Reimplemented from KDockWidgetAbstractHeader.

void setDragPanel ( KDockWidgetHeaderDrag* nd ) | ### setDragPanel

Sets the drag panel of this header.

Parameters:

nd | A pointer to the new drag panel

bool dragEnabled () | ### dragEnabled

[const]

void setDragEnabled (bool b) | ### setDragEnabled

void showUndockButton (bool show) | ### showUndockButton

void saveConfig ( KConfig* c) | ### saveConfig

[virtual]

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

Parameters:

c | the configuration safe

Reimplemented from KDockWidgetAbstractHeader.

void loadConfig ( KConfig* ) | ### loadConfig

[virtual]

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

Parameters:

c | the configuration safe

Reimplemented from KDockWidgetAbstractHeader.

void slotStayClicked () | ### slotStayClicked

[protected slots slot]

Sets 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]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

the drag panel (double line)

Reimplemented from KDockWidgetAbstractHeader.

- Author: Max Judin (documentation: Falk Brettschneider).
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.