KMdiDockContainer Class Reference
Inheritance diagram for KMdiDockContainer:

Public Slots | |
void | init () |
void | collapseOverlapped () |
void | toggle () |
void | nextToolView () |
void | prevToolView () |
Signals | |
void | activated (KMdiDockContainer *) |
void | deactivated (KMdiDockContainer *) |
Public Member Functions | |
KMdiDockContainer (QWidget *parent, QWidget *win, int position, int flags) | |
virtual | ~KMdiDockContainer () |
KDockWidget * | parentDockWidget () |
virtual void | insertWidget (KDockWidget *w, QPixmap, const QString &, int &) |
virtual void | showWidget (KDockWidget *w) |
virtual void | setToolTip (KDockWidget *, QString &) |
virtual void | setPixmap (KDockWidget *widget, const QPixmap &pixmap) |
virtual void | undockWidget (KDockWidget *dwdg) |
virtual void | removeWidget (KDockWidget *) |
void | hideIfNeeded () |
virtual void | save (KConfig *, const QString &group_or_prefix) |
virtual void | load (KConfig *, const QString &group_or_prefix) |
virtual void | save (QDomElement &) |
virtual void | load (QDomElement &) |
void | setStyle (int) |
Protected Slots | |
void | tabClicked (int) |
void | delayedRaise () |
void | changeOverlapMode () |
Protected Member Functions | |
bool | eventFilter (QObject *, QEvent *) |
Detailed Description
Definition at line 37 of file kmdidockcontainer.h.
Member Function Documentation
|
Get the KDockWidget that is our parent.
Definition at line 181 of file kmdidockcontainer.cpp. Referenced by init(), load(), save(), and tabClicked(). |
|
Add a widget to this container.
Definition at line 186 of file kmdidockcontainer.cpp. References QToolTip::add(), QWidgetStack::addWidget(), changeOverlapMode(), QMap::contains(), QMap::insert(), QPixmap::isNull(), QWidget::parentWidget(), and tabClicked(). |
|
Show a widget. The widget has to belong to this container otherwise it will not be shown
Definition at line 323 of file kmdidockcontainer.cpp. References QMap::contains(), and tabClicked(). |
|
Set the tooltip for the widget. Currently, this method does nothing Definition at line 497 of file kmdidockcontainer.cpp. References QToolTip::add(), and QToolTip::remove(). |
|
Set the pixmap for the widget.
Definition at line 506 of file kmdidockcontainer.cpp. References QWidgetStack::id(), and QPixmap::isNull(). |
|
Undock the widget from the container.
Definition at line 400 of file kmdidockcontainer.cpp. References QMap::contains(), and tabClicked(). |
|
Remove a widget from the container. The caller of this function is responsible for deleting the widget Definition at line 369 of file kmdidockcontainer.cpp. References QMap::contains(), hideIfNeeded(), QMap::remove(), QWidgetStack::removeWidget(), and tabClicked(). |
|
Hide the the dock container if the number of items is 0.
Definition at line 360 of file kmdidockcontainer.cpp. References QWidget::parentWidget(). Referenced by removeWidget(). |
|
Save the config using a KConfig object. The combination of the group_or_prefix variable and the parent dockwidget's name will be the group the configuration is saved in
Definition at line 627 of file kmdidockcontainer.cpp. References QPtrListIterator::current(), QString::isEmpty(), parentDockWidget(), and QWidgetStack::widget(). |
|
Load the config using a KConfig object. The combination of the group_or_prefix variable and the parent dockwidget's name will be the group the configuration is loaded from
Definition at line 675 of file kmdidockcontainer.cpp. References QMap::begin(), QPtrListIterator::current(), delayedRaise(), QMap::end(), init(), QString::isEmpty(), parentDockWidget(), QWidget::raise(), and QTimer::singleShot(). |
|
Save the config to a QDomElement.
Definition at line 515 of file kmdidockcontainer.cpp. References QDomDocument::createElement(), QDomDocument::createTextNode(), QPtrListIterator::current(), QString::isEmpty(), QDomElement::setAttribute(), and QWidgetStack::widget(). |
|
Load the config from a QDomElement.
Definition at line 557 of file kmdidockcontainer.cpp. References QDomElement::attribute(), QMap::begin(), QPtrListIterator::current(), delayedRaise(), QMap::end(), QDomElement::hasAttribute(), init(), QString::isEmpty(), parentDockWidget(), QWidget::raise(), QTimer::singleShot(), QDomElement::tagName(), and QDomElement::text(). |
|
Set the style for the tabbar.
Definition at line 128 of file kmdidockcontainer.cpp. Referenced by KMdiMainFrm::setIDEAlModeStyle(). |
The documentation for this class was generated from the following files: