|
|
The manager that knows all dockwidgets and handles the dock process (and member of the dockwidget class set). More or less a helper class for the KDockWidget class set but of interest for some functionality that can be called within a KDockMainWindow or a KDockWidget .
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.
Note: the docking itself is handled by another private class (KDockMoveManager).
|
Constructs a dockmanager. Some initialization happen: <UL><LI>It installs an event filter for the main window,</LI> <LI>a control list for dock objects</LI> <LI>a control list for menu items concerning to menus provided by the dockmanager</LI> <LI>Some state variables are set</LI></UL>
Parameters:
mainWindow | the main window controlled by this |
name | the internal QOject name |
~ |
[virtual]
Destructs a dockmanager.
void |
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.
Parameters:
c | the KDE configuration saver |
group | the name of the section in KConfig |
void |
Like writeConfig but reads the whole stuff in.
Parameters:
c | the KDE configuration saver |
group | the name of the section in KConfig |
void |
Shows all encapsulated widgets of all controlled dockwidgets and shows all dockwidgets which are parent of a dockwidget tab group.
bool |
[virtual]
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.
Parameters:
_ | the object that sends the event |
_ | the event |
Returns: the return value of the method call of the base class method
KDockWidget* |
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.
Parameters:
w | any widget that is supposed to be encapsulated by one of the controlled dockwidgets |
Returns: the dockwidget that encapsulates that widget, otherwise 0
void |
Works like makeDockVisible() but can be called for widgets that covered by a dockwidget.
Parameters:
w | the widget that is encapsulated by a dockwidget that turns to visible. |
QPopupMenu* |
Returns: the popupmenu for showing/hiding dockwidgets
KDockWidget* |
Parameters:
dockName | an internal QObject name |
Returns: the dockwidget that has got that internal QObject name
void |
[signal]
Signals changes of the docking state of a dockwidget. Usually the dock-toolbar will be updated then.
void |
[signal]
Signals a dockwidget is replaced with another one.
void |
[signal]
Signals a dockwidget without parent (toplevel) is shown.