KDE3Support
#include <k3dockwidget.h>
Public Member Functions | |
K3DockWidgetHeader (K3DockWidget *parent, const char *name=0L) | |
virtual | ~K3DockWidgetHeader () |
void | addButton (K3DockButton_Private *) |
bool | dragEnabled () const |
K3DockWidgetHeaderDrag * | dragPanel () |
void | forceCloseButtonHidden (bool enable=true) |
virtual void | loadConfig (KConfigGroup *c) |
void | removeButton (K3DockButton_Private *) |
virtual void | saveConfig (KConfigGroup *c) |
void | setDragEnabled (bool b) |
void | setDragPanel (K3DockWidgetHeaderDrag *nd) |
virtual void | setTopLevel (bool t) |
void | showUndockButton (bool show) |
Public Member Functions inherited from K3DockWidgetAbstractHeader | |
K3DockWidgetAbstractHeader (K3DockWidget *parent, const char *name=0L) | |
virtual | ~K3DockWidgetAbstractHeader () |
Protected Slots | |
void | slotStayClicked () |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
K3DockButton_Private * | closeButton |
K3DockButton_Private * | dockbackButton |
K3DockWidgetHeaderDrag * | drag |
QHBoxLayout * | layout |
K3DockButton_Private * | stayButton |
Detailed Description
The header (additional bar) for a K3DockWidget 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.
Definition at line 235 of file k3dockwidget.h.
Constructor & Destructor Documentation
K3DockWidgetHeader::K3DockWidgetHeader | ( | K3DockWidget * | parent, |
const char * | name = 0L |
||
) |
Constructs this.
- Parameters
-
parent the parent widget (usually a dockwidget) name the object instance name
Definition at line 255 of file k3dockwidget.cpp.
|
virtual |
Destructs this.
Definition at line 322 of file k3dockwidget.cpp.
Member Function Documentation
void K3DockWidgetHeader::addButton | ( | K3DockButton_Private * | btn | ) |
add an arbitrary button to the dockwidget header NOT PART OF THE PUBLIC API (you don't have access the class definition anyways, without special header file copying.
(don't do it))
Definition at line 406 of file k3dockwidget.cpp.
bool K3DockWidgetHeader::dragEnabled | ( | ) | const |
Definition at line 452 of file k3dockwidget.cpp.
K3DockWidgetHeaderDrag * K3DockWidgetHeader::dragPanel | ( | ) |
Get the drag panel of this header.
Definition at line 366 of file k3dockwidget.cpp.
void K3DockWidgetHeader::forceCloseButtonHidden | ( | bool | enable = true | ) |
Definition at line 360 of file k3dockwidget.cpp.
|
virtual |
Loads the current button state from a KDE config container object.
- Parameters
-
c the configuration safe
Reimplemented from K3DockWidgetAbstractHeader.
Definition at line 483 of file k3dockwidget.cpp.
void K3DockWidgetHeader::removeButton | ( | K3DockButton_Private * | btn | ) |
remove an arbtrary button from the dockwidget header NOT PART OF THE PUBLIC API (you don't have access the class definition anyways, without special header file copying.
(don't do it))
Definition at line 439 of file k3dockwidget.cpp.
|
virtual |
Saves the current button state to a KDE config container object.
- Parameters
-
c the configuration safe
Reimplemented from K3DockWidgetAbstractHeader.
Definition at line 478 of file k3dockwidget.cpp.
void K3DockWidgetHeader::setDragEnabled | ( | bool | b | ) |
Definition at line 470 of file k3dockwidget.cpp.
void K3DockWidgetHeader::setDragPanel | ( | K3DockWidgetHeaderDrag * | nd | ) |
Sets the drag panel of this header.
- Parameters
-
nd A pointer to the new drag panel
Definition at line 370 of file k3dockwidget.cpp.
|
virtual |
Hides the close button and stay button when switching to toplevel or vice versa shows them.
- Parameters
-
t toplevel or not
Reimplemented from K3DockWidgetAbstractHeader.
Definition at line 326 of file k3dockwidget.cpp.
void K3DockWidgetHeader::showUndockButton | ( | bool | show | ) |
Definition at line 457 of file k3dockwidget.cpp.
|
protectedslot |
Sets dragging the dockwidget off when the stay button is pressed down and vice versa.
Definition at line 447 of file k3dockwidget.cpp.
|
protectedvirtual |
Reimplemented from K3DockWidgetAbstractHeader.
Definition at line 3451 of file k3dockwidget.cpp.
Member Data Documentation
|
protected |
a little button for closing (undocking and hiding) the dockwidget
Definition at line 325 of file k3dockwidget.h.
|
protected |
a little button for dock back the dockwidget to its previous dockwidget
Definition at line 335 of file k3dockwidget.h.
|
protected |
the drag panel (double line)
Definition at line 340 of file k3dockwidget.h.
|
protected |
A layout manager for placing the embedded buttons (close and stay)
Definition at line 320 of file k3dockwidget.h.
|
protected |
a little button for enabling/disabling dragging the dockwidget with the mouse
Definition at line 330 of file k3dockwidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.