#include <kdockwidget.h>
Signals | |
| void | change () |
| void | replaceDock (KDockWidget *oldDock, KDockWidget *newDock) |
| void | setDockDefaultPos (KDockWidget *) |
Public Methods | |
| KDockManager (QWidget *mainWindow, const char *name=0L) | |
| virtual | ~KDockManager () |
| void | writeConfig (KConfig *c=0L, QString group=QString::null) |
| void | readConfig (KConfig *c=0L, QString group=QString::null) |
| void | setMainDockWidget2 (KDockWidget *) |
| |
| void | writeConfig (QDomElement &base) |
| void | readConfig (QDomElement &base) |
| void | activate () |
| virtual bool | eventFilter (QObject *, QEvent *) |
| KDockWidget * | findWidgetParentDock (QWidget *w) const |
| void | makeWidgetDockVisible (QWidget *w) |
| QPopupMenu * | dockHideShowMenu () const |
| KDockWidget * | getDockWidgetFromName (const QString &dockName) |
| void | setSplitterOpaqueResize (bool b=true) |
| bool | splitterOpaqueResize () const |
| void | setSplitterKeepSize (bool b=true) |
| bool | splitterKeepSize () const |
| void | setSplitterHighResolution (bool b=true) |
| bool | splitterHighResolution () const |
An important feature is the ability to read or save the current state of all things concerning to dockwidgets to KConfig .
The dockmanager is also often used when a certain dockwidget or a child of such dockwidget must be found.
Definition at line 834 of file kdockwidget.h.
|
||||||||||||
|
Constructs a dockmanager. Some initialization happen:
|
|
|
Destructs a dockmanager. |
|
|
Shows all encapsulated widgets of all controlled dockwidgets and shows all dockwidgets which are parent of a dockwidget tab group. Referenced by KDockMainWindow::activateDock(). |
|
|
Signals changes of the docking state of a dockwidget. Usually the dock-toolbar will be updated then. |
|
|
Definition at line 936 of file kdockwidget.h. Referenced by KDockMainWindow::dockHideShowMenu(). |
|
||||||||||||
|
It's more or less a method that catches several events which are interesting for the dockmanager. Mainly mouse events during the drag process of a dockwidgets are of interest here.
|
|
|
This method finds out what a widgets' dockwidget is. That means the dockmanager has a look at all dockwidgets it knows and tells you when one of those dockwidgets covers the given widget.
|
|
|
|
|
|
Works like makeDockVisible() but can be called for widgets that covered by a dockwidget.
Definition at line 931 of file kdockwidget.h. References KDockWidget::makeDockVisible(). |
|
|
Reads the current dock window layout from a DOM tree below the given element. |
|
||||||||||||
|
Like writeConfig but reads the whole stuff in. In order to restore a window configuration from a config file, it looks up widgets by name (QObject::name) in the childDock variable of KDockManager. This list in turn contains all KDockWidgets (according to the KDockWidget constructor). So in principle, in order to restore a window layout, one must first construct all widgets, put each of them in a KDockWidget and then call readConfig(). And for all that to work, each widget must have a unique name. |
|
||||||||||||
|
Signals a dockwidget is replaced with another one. |
|
|
Signals a dockwidget without parent (toplevel) is shown. |
|
|
Operate the splitter with a higher resolution. Off by default. Call this method before you create any dock widgets! If high resolution is used all splitter position parameters are percent*100 instead of percent. |
|
|
Try to preserve the widget's size. Works like KeepSize resize mode of QSplitter. Off by default. Call this method before you create any dock widgets! |
|
|
Enables opaque resizing. Opaque resizing is initially turned off. Call this method before you create any dock widgets! |
|
|
Returns TRUE if the splitter uses the high resolution, FALSE otherwise. |
|
|
Returns TRUE if the KeepSize is enabled, FALSE otherwise. |
|
|
Returns TRUE if opaque resizing is enabled, FALSE otherwise. |
|
|
Saves the current dock window layout into a DOM tree below the given element. |
|
||||||||||||
|
Saves the current state of the dockmanager and of all controlled widgets. State means here to save the geometry, visibility, parents, internal object names, orientation, separator positions, dockwidget-group information, tab widget states (if it is a tab group) and last but not least some necessary things for recovering the dockmainwindow state. |
1.2.18