kmdi/kmdi Library API Documentation

KMDI::DockContainer Class Reference

Inheritance diagram for KMDI::DockContainer:

Inheritance graph
[legend]
Collaboration diagram for KMDI::DockContainer:

Collaboration graph
[legend]
List of all members.

Public Slots

void init ()
void collapseOverlapped ()
void toggle ()
void nextToolView ()
void prevToolView ()

Signals

void activated (DockContainer *)
void deactivated (DockContainer *)

Public Member Functions

 DockContainer (QWidget *parent, QWidget *win, int position, int flags)
virtual ~DockContainer ()
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)
void setStyle (int)

Protected Slots

void tabClicked (int)
void delayedRaise ()
void changeOverlapMode ()

Protected Member Functions

bool eventFilter (QObject *, QEvent *)

Detailed Description

Definition at line 39 of file dockcontainer.h.


Member Function Documentation

KDockWidget * KMDI::DockContainer::parentDockWidget  ) 
 

Get the KDockWidget that is our parent.

Definition at line 158 of file dockcontainer.cpp.

Referenced by eventFilter(), init(), load(), save(), and tabClicked().

void KMDI::DockContainer::insertWidget KDockWidget *  w,
QPixmap  ,
const QString ,
int & 
[virtual]
 

Add a widget to this container.

Parameters:
w the KDockWidget object to add Remove the extra parameters that we don't use?

Definition at line 163 of file dockcontainer.cpp.

References QToolTip::add(), QWidgetStack::addWidget(), changeOverlapMode(), QMap::contains(), QMap::insert(), QPixmap::isNull(), QWidget::parentWidget(), and tabClicked().

void KMDI::DockContainer::showWidget KDockWidget *  w  )  [virtual]
 

Show a KDockWidget in our DockContainer.

Parameters:
w the KDockWidget to show

Definition at line 300 of file dockcontainer.cpp.

References QMap::contains(), and tabClicked().

void KMDI::DockContainer::setToolTip KDockWidget *  ,
QString
[virtual]
 

Set a tooltip for a widget.

Actually implement it? Right now, it looks just it does exactly nothing

Definition at line 452 of file dockcontainer.cpp.

void KMDI::DockContainer::setPixmap KDockWidget *  widget,
const QPixmap pixmap
[virtual]
 

Set a pixmap for one of our dock widgets.

Parameters:
widget the KDockWidget to set the pixmap for
pixmap the pixmap you want to give the widget

Definition at line 457 of file dockcontainer.cpp.

References QWidgetStack::id(), and QPixmap::isNull().

void KMDI::DockContainer::undockWidget KDockWidget *  dwdg  )  [virtual]
 

Undock a widget from the container.

This function is called when you've dragged a tab off the dock it's attached to.

Parameters:
dwdg the KDockWidget to undock

Definition at line 370 of file dockcontainer.cpp.

References QMap::contains(), and tabClicked().

void KMDI::DockContainer::removeWidget KDockWidget *   )  [virtual]
 

Remove a widget from the container.

The caller of this function is responsible for deleting the widget after calling this function.

Definition at line 343 of file dockcontainer.cpp.

References QMap::contains(), QWidget::parentWidget(), QMap::remove(), QWidgetStack::removeWidget(), and tabClicked().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kmdi/kmdi Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 15 11:08:34 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003