.TH "KMdiChildFrm" kde3 "11 Jun 2005" "Version Version 3.4.1" "kmdi Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMdiChildFrm \- Internal class. It's an MDI child frame widget. It contains a view widget and a frame caption. Usually you derive from its view.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmdichildfrm.h>\fP
.PP
Inherits \fBQFrame\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBMdiWindowState\fP { \fBNormal\fP, \fBMaximized\fP, \fBMinimized\fP }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBslot_resizeViaSystemMenu\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKMdiChildFrm\fP (\fBKMdiChildArea\fP *parent)"
.br
.ti -1c
.RI "\fB~KMdiChildFrm\fP ()"
.br
.ti -1c
.RI "void \fBsetClient\fP (\fBKMdiChildView\fP *w, bool bAutomaticResize=false)"
.br
.ti -1c
.RI "void \fBunsetClient\fP (\fBQPoint\fP positionOffset=\fBQPoint\fP(0, 0))"
.br
.ti -1c
.RI "void \fBsetIcon\fP (const \fBQPixmap\fP &pxm)"
.br
.ti -1c
.RI "\fBQPixmap\fP * \fBicon\fP () const "
.br
.ti -1c
.RI "void \fBenableClose\fP (bool bEnable)"
.br
.ti -1c
.RI "void \fBsetCaption\fP (const \fBQString\fP &text)"
.br
.ti -1c
.RI "const \fBQString\fP & \fBcaption\fP ()"
.br
.ti -1c
.RI "void \fBsetState\fP (MdiWindowState state, bool bAnimate=true)"
.br
.ti -1c
.RI "MdiWindowState \fBstate\fP () const "
.br
.ti -1c
.RI "\fBQRect\fP \fBmdiAreaContentsRect\fP () const "
.br
.ti -1c
.RI "\fBQRect\fP \fBrestoreGeometry\fP () const "
.br
.ti -1c
.RI "void \fBsetRestoreGeometry\fP (const \fBQRect\fP &newRestGeo)"
.br
.ti -1c
.RI "void \fBupdateRects\fP ()"
.br
.ti -1c
.RI "\fBQPopupMenu\fP * \fBsystemMenu\fP () const "
.br
.ti -1c
.RI "int \fBcaptionHeight\fP () const "
.br
.ti -1c
.RI "void \fBredecorateButtons\fP ()"
.br
.ti -1c
.RI "bool \fBisInDrag\fP () const "
.br
.ti -1c
.RI "bool \fBisInResize\fP () const "
.br
.ti -1c
.RI "void \fBraiseAndActivate\fP ()"
.br
.ti -1c
.RI "virtual void \fBsetMinimumSize\fP (int minw, int minh)"
.br
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "\fBKMdiChildView\fP * \fBm_pClient\fP"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBmaximizePressed\fP ()"
.br
.ti -1c
.RI "void \fBrestorePressed\fP ()"
.br
.ti -1c
.RI "void \fBminimizePressed\fP ()"
.br
.ti -1c
.RI "void \fBclosePressed\fP ()"
.br
.ti -1c
.RI "void \fBundockPressed\fP ()"
.br
.ti -1c
.RI "void \fBshowSystemMenu\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBresizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBmouseMoveEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBmousePressEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBmouseReleaseEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBmoveEvent\fP (\fBQMoveEvent\fP *me)"
.br
.ti -1c
.RI "virtual void \fBleaveEvent\fP (\fBQEvent\fP *)"
.br
.ti -1c
.RI "virtual bool \fBeventFilter\fP (\fBQObject\fP *, \fBQEvent\fP *)"
.br
.ti -1c
.RI "void \fBresizeWindow\fP (int resizeCorner, int x, int y)"
.br
.ti -1c
.RI "void \fBsetResizeCursor\fP (int resizeCorner)"
.br
.ti -1c
.RI "void \fBunsetResizeCursor\fP ()"
.br
.ti -1c
.RI "virtual void \fBswitchToMinimizeLayout\fP ()"
.br
.ti -1c
.RI "void \fBdoResize\fP ()"
.br
.ti -1c
.RI "void \fBdoResize\fP (bool captionOnly)"
.br
.ti -1c
.RI "void \fBlinkChildren\fP (\fBQDict\fP< FocusPolicy > *pFocPolDict)"
.br
.ti -1c
.RI "\fBQDict\fP< QWidget::FocusPolicy > * \fBunlinkChildren\fP ()"
.br
.ti -1c
.RI "int \fBgetResizeCorner\fP (int ax, int ay)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKMdiChildArea\fP * \fBm_pManager\fP"
.br
.ti -1c
.RI "\fBKMdiChildFrmCaption\fP * \fBm_pCaption\fP"
.br
.ti -1c
.RI "\fBKMdiWin32IconButton\fP * \fBm_pWinIcon\fP"
.br
.ti -1c
.RI "\fBQToolButton\fP * \fBm_pUnixIcon\fP"
.br
.ti -1c
.RI "\fBQToolButton\fP * \fBm_pMinimize\fP"
.br
.ti -1c
.RI "\fBQToolButton\fP * \fBm_pMaximize\fP"
.br
.ti -1c
.RI "\fBQToolButton\fP * \fBm_pClose\fP"
.br
.ti -1c
.RI "\fBQToolButton\fP * \fBm_pUndock\fP"
.br
.ti -1c
.RI "MdiWindowState \fBm_state\fP"
.br
.ti -1c
.RI "\fBQRect\fP \fBm_restoredRect\fP"
.br
.ti -1c
.RI "int \fBm_iResizeCorner\fP"
.br
.ti -1c
.RI "int \fBm_iLastCursorCorner\fP"
.br
.ti -1c
.RI "bool \fBm_bResizing\fP"
.br
.ti -1c
.RI "bool \fBm_bDragging\fP"
.br
.ti -1c
.RI "\fBQPixmap\fP * \fBm_pIconButtonPixmap\fP"
.br
.ti -1c
.RI "\fBQPixmap\fP * \fBm_pMinButtonPixmap\fP"
.br
.ti -1c
.RI "\fBQPixmap\fP * \fBm_pMaxButtonPixmap\fP"
.br
.ti -1c
.RI "\fBQPixmap\fP * \fBm_pRestoreButtonPixmap\fP"
.br
.ti -1c
.RI "\fBQPixmap\fP * \fBm_pCloseButtonPixmap\fP"
.br
.ti -1c
.RI "\fBQPixmap\fP * \fBm_pUndockButtonPixmap\fP"
.br
.ti -1c
.RI "int \fBm_windowMenuID\fP"
.br
.ti -1c
.RI "\fBQPopupMenu\fP * \fBm_pSystemMenu\fP"
.br
.ti -1c
.RI "\fBQSize\fP \fBm_oldClientMinSize\fP"
.br
.ti -1c
.RI "\fBQSize\fP \fBm_oldClientMaxSize\fP"
.br
.ti -1c
.RI "QLayout::ResizeMode \fBm_oldLayoutResizeMode\fP"
.br
.ti -1c
.RI "\fBQTime\fP \fBm_timeMeasure\fP"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKMdiChildArea\fP"
.br
.ti -1c
.RI "class \fBKMdiChildFrmCaption\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Internal class. It's an MDI child frame widget. It contains a view widget and a frame caption. Usually you derive from its view. 
.PP
Definition at line 130 of file kmdichildfrm.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KMdiChildFrm::KMdiChildFrm (\fBKMdiChildArea\fP * parent)"
.PP
Creates a new KMdiChildFrm class. 
.PP

.PP
Definition at line 101 of file kmdichildfrm.cpp.
.PP
References closePressed(), QObject::connect(), KMdiChildFrmCaption::heightHint(), QPixmap::isNull(), m_pSystemMenu, maximizePressed(), minimizePressed(), redecorateButtons(), QFrame::setFrameStyle(), setMinimumSize(), and undockPressed().
.SS "KMdiChildFrm::~\fBKMdiChildFrm\fP ()"
.PP
Destroys this KMdiChildFrm If a child is still here managed (no recreation was made) it is destroyed too. 
.PP

.PP
Definition at line 171 of file kmdichildfrm.cpp.
.PP
References m_pSystemMenu.
.SH "Member Function Documentation"
.PP 
.SS "void KMdiChildFrm::setClient (\fBKMdiChildView\fP * w, bool bAutomaticResize = \fCfalse\fP)"
.PP
Reparents the widget w to this KMdiChildFrm (if this is not already done) Installs an event filter to catch focus events. 
.PP
Resizes this mdi child in a way that the child fits perfectly in.
.PP
Definition at line 726 of file kmdichildfrm.cpp.
.PP
References QObject::connect(), QWidget::focusPolicy(), QWidget::height(), QSize::height(), KMdiChildFrmCaption::heightHint(), QDict::insert(), QString::latin1(), linkChildren(), KMdiChildArea::m_defaultChildFrmSize, QWidget::minimumHeight(), QWidget::minimumSize(), QWidget::minimumWidth(), QDict::setAutoDelete(), setIcon(), QString::setNum(), KMdiChildArea::topChild(), QWidget::width(), and QSize::width().
.PP
Referenced by KMdiMainFrm::attachWindow().
.SS "void KMdiChildFrm::unsetClient (\fBQPoint\fP positionOffset = \fC\fBQPoint\fP(0, 0)\fP)"
.PP
Reparents the client widget to 0 (desktop), moves with an offset from the original position Removes the event filter. 
.PP

.PP
Definition at line 812 of file kmdichildfrm.cpp.
.PP
References QObject::disconnect(), QDict::find(), KMdiChildView::focusedChildWidget(), QWidget::focusPolicy(), QSize::height(), QWidget::maximumSize(), QWidget::minimumSize(), QWidget::reparent(), KMdiChildView::setFirstFocusableChildWidget(), QWidget::setFocus(), QWidget::setFocusPolicy(), KMdiChildView::setLastFocusableChildWidget(), KMdiChildView::setMaximumSize(), KMdiChildView::setMinimumSize(), unlinkChildren(), and QSize::width().
.PP
Referenced by KMdiMainFrm::detachWindow().
.SS "void KMdiChildFrm::setIcon (const \fBQPixmap\fP & pxm)"
.PP
Sets the window icon pointer. 
.PP

.PP
Definition at line 702 of file kmdichildfrm.cpp.
.PP
References QPixmap::convertToImage(), doResize(), QPixmap::height(), QLabel::setPixmap(), QPixmap::size(), QImage::smoothScale(), and QPixmap::width().
.PP
Referenced by KMdiMainFrm::detachWindow(), and setClient().
.SS "\fBQPixmap\fP * KMdiChildFrm::icon () const"
.PP
Returns the child frame icon. 
.PP

.PP
Definition at line 720 of file kmdichildfrm.cpp.
.PP
Referenced by KMdiMainFrm::detachWindow(), KMdiChildFrmCaption::paintEvent(), redecorateButtons(), and KMdiMainFrm::setEnableMaximizedChildFrmMode().
.SS "void KMdiChildFrm::enableClose (bool bEnable)"
.PP
Enables or disables the close button. 
.PP
Definition at line 694 of file kmdichildfrm.cpp.
.SS "void KMdiChildFrm::setCaption (const \fBQString\fP & text)"
.PP
Sets the caption of this window. 
.PP
Definition at line 687 of file kmdichildfrm.cpp.
.PP
References KMdiChildFrmCaption::setCaption().
.PP
Referenced by KMdiChildView::setCaption(), and KMdiChildView::youAreAttached().
.SS "const \fBQString\fP& KMdiChildFrm::caption ()\fC [inline]\fP"
.PP
Gets the caption of this mdi child. 
.PP

.PP
Definition at line 230 of file kmdichildfrm.h.
.PP
Referenced by KMdiChildArea::destroyChild(), KMdiMainFrm::detachWindow(), and KMdiChildArea::focusTopChild().
.SS "void KMdiChildFrm::setState (MdiWindowState state, bool bAnimate = \fCtrue\fP)"
.PP
Minimizes, Maximizes, or restores the window. 
.PP

.PP
Definition at line 511 of file kmdichildfrm.cpp.
.PP
References KMdiChildArea::childMinimized(), QObject::connect(), QObject::disconnect(), QSize::height(), QWidget::height(), KMdiChildFrmCaption::heightHint(), KMdiChildView::isMaximized(), QWidget::layout(), m_pClient, KMdiChildView::m_stateChanged, QWidget::maximumSize(), minimizePressed(), QWidget::minimumHeight(), QWidget::minimumSize(), QWidget::minimumWidth(), restorePressed(), KMdiChildView::setMaximumSize(), KMdiChildView::setMinimumSize(), switchToMinimizeLayout(), KMdiChildArea::topChild(), QSize::width(), QWidget::width(), QWidget::x(), and QWidget::y().
.PP
Referenced by KMdiChildArea::childMinimized(), KMdiChildArea::destroyChild(), KMdiChildArea::destroyChildButNotItsView(), KMdiChildArea::manageChild(), KMdiChildView::maximize(), maximizePressed(), KMdiChildView::minimize(), minimizePressed(), KMdiChildView::restore(), restorePressed(), KMdiChildArea::setTopChild(), and undockPressed().
.SS "MdiWindowState KMdiChildFrm::state () const\fC [inline]\fP"
.PP
Returns the current state of the window. 
.PP
Definition at line 240 of file kmdichildfrm.h.
.PP
Referenced by KMdiChildArea::cascadeMaximized(), KMdiChildArea::cascadeWindows(), KMdiChildArea::expandHorizontal(), KMdiChildArea::expandVertical(), KMdiChildArea::layoutMinimizedChildren(), KMdiChildArea::manageChild(), KMdiChildArea::resizeEvent(), KMdiMainFrm::setEnableMaximizedChildFrmMode(), KMdiChildArea::setTopChild(), systemMenu(), KMdiChildArea::tileAllInternal(), KMdiChildArea::tileAnodine(), and KMdiChildArea::tileVertically().
.SS "\fBQRect\fP KMdiChildFrm::mdiAreaContentsRect () const"
.PP
Returns the inner client area of the parent of this (which is \fBKMdiChildArea\fP). 
.PP

.PP
Definition at line 1395 of file kmdichildfrm.cpp.
.PP
References QFrame::contentsRect().
.SS "\fBQRect\fP KMdiChildFrm::restoreGeometry () const"
.PP
Returns the geometry that will be restored by calling restore(). 
.PP

.PP
Definition at line 673 of file kmdichildfrm.cpp.
.PP
Referenced by KMdiChildView::restoreGeometry().
.SS "void KMdiChildFrm::setRestoreGeometry (const \fBQRect\fP & newRestGeo)"
.PP
Sets the geometry that will be restored by calling restore(). 
.PP

.PP
Definition at line 680 of file kmdichildfrm.cpp.
.PP
Referenced by KMdiMainFrm::attachWindow(), and KMdiChildView::setRestoreGeometry().
.SS "void KMdiChildFrm::updateRects ()\fC [inline]\fP"
.PP
Forces updating the rects of the caption and so... 
.PP
It may be useful when setting the mdiCaptionFont of the MdiManager
.PP
Definition at line 261 of file kmdichildfrm.h.
.PP
References QFrame::resizeEvent().
.SS "\fBQPopupMenu\fP * KMdiChildFrm::systemMenu () const"
.PP
Returns the system menu. 
.PP

.PP
Definition at line 1228 of file kmdichildfrm.cpp.
.PP
References QPopupMenu::clear(), closePressed(), QPopupMenu::idAt(), QPopupMenu::insertItem(), QPopupMenu::insertSeparator(), m_pSystemMenu, maximizePressed(), minimizePressed(), restorePressed(), QPopupMenu::setItemEnabled(), state(), and undockPressed().
.PP
Referenced by KMdiChildFrmCaption::mousePressEvent(), KMdiMainFrm::setEnableMaximizedChildFrmMode(), and showSystemMenu().
.SS "int KMdiChildFrm::captionHeight () const\fC [inline]\fP"
.PP
Returns the caption bar height. 
.PP
Definition at line 271 of file kmdichildfrm.h.
.PP
Referenced by KMdiMainFrm::attachWindow(), doResize(), KMdiChildView::setMaximumSize(), and showSystemMenu().
.SS "void KMdiChildFrm::redecorateButtons ()"
.PP
sets new raise behavior and pixmaps of the buttons depending on the current decoration style 
.PP
Definition at line 1322 of file kmdichildfrm.cpp.
.PP
References icon(), QWidget::icon(), QToolButton::setAutoRaise(), and QLabel::setPixmap().
.PP
Referenced by KMdiChildFrm(), and KMdiMainFrm::setFrameDecorOfAttachedViews().
.SS "bool KMdiChildFrm::isInDrag () const\fC [inline]\fP"
.PP
returns the mouse state 'In Drag' 
.PP
Definition at line 281 of file kmdichildfrm.h.
.SS "bool KMdiChildFrm::isInResize () const\fC [inline]\fP"
.PP
returns the mouse state 'In Resize' 
.PP
Definition at line 286 of file kmdichildfrm.h.
.SS "void KMdiChildFrm::raiseAndActivate ()"
.PP
Internally called from the signal focusInEventOccurs. 
.PP
It raises the MDI childframe to the top of all other MDI child frames and sets the focus on it.
.PP
Definition at line 1209 of file kmdichildfrm.cpp.
.PP
References KMdiChildFrmCaption::setActive(), and KMdiChildArea::setTopChild().
.SS "void KMdiChildFrm::setMinimumSize (int minw, int minh)\fC [virtual]\fP"
.PP
Sets the minimum size of the widget to w by h pixels. 
.PP
It extends it's base clase method in a way that the minimum size of the child area will be set additionally if the view is maximized.
.PP
Definition at line 1217 of file kmdichildfrm.cpp.
.PP
References QWidget::setMinimumSize().
.PP
Referenced by KMdiChildFrm(), and KMdiChildView::setMinimumSize().
.SS "void KMdiChildFrm::resizeEvent (\fBQResizeEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented from the base class. 
.PP
Resizes the captionbar, relayouts the position of the system buttons, and calls resize for its embedded \fBKMdiChildView\fP with the proper size
.PP
Reimplemented from \fBQFrame\fP.
.PP
Definition at line 982 of file kmdichildfrm.cpp.
.PP
References doResize().
.SS "void KMdiChildFrm::mouseMoveEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Reimplemented from the base class. 
.PP
Detects if the mouse is on the edge of window and what resize cursor must be set. Calls \fBKMdiChildFrm::resizeWindow\fP if it is in m_bResizing.
.PP
Definition at line 273 of file kmdichildfrm.cpp.
.PP
References getResizeCorner(), QWidget::maximumSize(), QWidget::minimumSize(), resizeWindow(), setResizeCursor(), QPoint::x(), and QPoint::y().
.SS "void KMdiChildFrm::mousePressEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Reimplemented from the base class. 
.PP
Colours the caption, raises the childfrm widget and turns to resize mode if it is on the edge (resize-sensitive area)
.PP
Definition at line 183 of file kmdichildfrm.cpp.
.PP
References getResizeCorner(), QApplication::restoreOverrideCursor(), QApplication::sendEvent(), KMdiChildFrmCaption::setActive(), and KMdiChildArea::setTopChild().
.SS "void KMdiChildFrm::mouseReleaseEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented from the base class. 
.PP
Sets a normal cursor and leaves the resize mode.
.PP
Definition at line 210 of file kmdichildfrm.cpp.
.PP
References QApplication::restoreOverrideCursor(), and QApplication::sendEvent().
.SS "void KMdiChildFrm::moveEvent (\fBQMoveEvent\fP * me)\fC [protected, virtual]\fP"
.PP
Reimplemented from the base class. 
.PP
give its child view the chance to notify a childframe move... that's why it sends a KMdiChildMovedEvent to the embedded \fBKMdiChildView\fP .
.PP
Definition at line 304 of file kmdichildfrm.cpp.
.PP
References QApplication::sendEvent().
.SS "void KMdiChildFrm::leaveEvent (\fBQEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented from the base class. 
.PP
If not in resize mode, it sets the mouse cursor to normal appearance.
.PP
Definition at line 314 of file kmdichildfrm.cpp.
.PP
References unsetResizeCursor().
.SS "bool KMdiChildFrm::eventFilter (\fBQObject\fP *, \fBQEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented from the base class. 
.PP
In addition, the following are caught -the client's mousebutton press events which raises and activates the childframe -the client's resize event which resizes this widget as well
.PP
Definition at line 1077 of file kmdichildfrm.cpp.
.PP
References closePressed(), QApplication::doubleClickInterval(), QWidget::focusPolicy(), QObject::installEventFilter(), QObject::parent(), QObject::queryList(), QApplication::sendEvent(), QWidget::setFocus(), showSystemMenu(), QResizeEvent::size(), and unsetResizeCursor().
.SS "void KMdiChildFrm::resizeWindow (int resizeCorner, int x, int y)\fC [protected]\fP"
.PP
Calculates the new geometry from the new mouse position given as parameters and calls KMdiChildFrm::setGeometry. 
.PP
Definition at line 319 of file kmdichildfrm.cpp.
.PP
References QRect::bottom(), QRect::height(), QWidget::height(), KMdiChildFrmCaption::heightHint(), QRect::left(), QWidget::maximumSize(), QWidget::minimumSize(), QRect::right(), QRect::setBottom(), QRect::setLeft(), QRect::setRight(), QRect::setTop(), QRect::top(), QRect::width(), QWidget::width(), QPoint::x(), and QPoint::y().
.PP
Referenced by mouseMoveEvent().
.SS "void KMdiChildFrm::setResizeCursor (int resizeCorner)\fC [protected]\fP"
.PP
Override the cursor appearance depending on the widget corner given as parameter. 
.PP
Definition at line 227 of file kmdichildfrm.cpp.
.PP
References QApplication::restoreOverrideCursor(), and QApplication::setOverrideCursor().
.PP
Referenced by mouseMoveEvent().
.SS "void KMdiChildFrm::unsetResizeCursor ()\fC [protected]\fP"
.PP
Changes from the resize cursor to the normal (previous) cursor. 
.PP
Definition at line 260 of file kmdichildfrm.cpp.
.PP
References QApplication::restoreOverrideCursor().
.PP
Referenced by eventFilter(), and leaveEvent().
.SS "void KMdiChildFrm::switchToMinimizeLayout ()\fC [protected, virtual]\fP"
.PP
That means to show a mini window showing the childframe's caption bar, only. 
.PP
It cannot be resized.
.PP
Definition at line 1295 of file kmdichildfrm.cpp.
.PP
References QObject::connect(), QObject::disconnect(), QWidget::height(), KMdiChildArea::layoutMinimizedChildren(), minimizePressed(), and restorePressed().
.PP
Referenced by setState().
.SS "void KMdiChildFrm::doResize ()\fC [protected]\fP"
.PP
Does the actual resize. 
.PP
Called from various places but from resizeEvent in general.
.PP
Definition at line 987 of file kmdichildfrm.cpp.
.PP
Referenced by resizeEvent(), and setIcon().
.SS "void KMdiChildFrm::doResize (bool captionOnly)\fC [protected]\fP"
.PP
Does the actual resize, like \fBdoResize()\fP but skips resize of the client if \fIcaptionOnly\fP is true. 
.PP

.PP
Definition at line 992 of file kmdichildfrm.cpp.
.PP
References captionHeight(), QSize::height(), KMdiChildFrmCaption::heightHint(), QLabel::pixmap(), QWidget::setGeometry(), QWidget::size(), and QSize::width().
.SS "void KMdiChildFrm::maximizePressed ()\fC [protected, slot]\fP"
.PP
Handles a click on the Maximize button. 
.PP
Definition at line 442 of file kmdichildfrm.cpp.
.PP
References KMdiChildArea::nowMaximized(), and setState().
.PP
Referenced by KMdiChildFrm(), KMdiChildFrmCaption::mouseDoubleClickEvent(), and systemMenu().
.SS "void KMdiChildFrm::restorePressed ()\fC [protected, slot]\fP"
.PP
Handles a click on the Restore (Normalize) button. 
.PP
Definition at line 458 of file kmdichildfrm.cpp.
.PP
References KMdiChildArea::nowMaximized(), and setState().
.PP
Referenced by KMdiChildArea::cascadeMaximized(), KMdiChildArea::cascadeWindows(), KMdiChildArea::expandHorizontal(), KMdiChildArea::expandVertical(), setState(), switchToMinimizeLayout(), systemMenu(), KMdiChildArea::tileAllInternal(), KMdiChildArea::tileAnodine(), and KMdiChildArea::tileVertically().
.SS "void KMdiChildFrm::minimizePressed ()\fC [protected, slot]\fP"
.PP
Handles a click on the Minimize button. 
.PP

.PP
Definition at line 471 of file kmdichildfrm.cpp.
.PP
References KMdiChildArea::nowMaximized(), and setState().
.PP
Referenced by KMdiChildFrm(), setState(), switchToMinimizeLayout(), and systemMenu().
.SS "void KMdiChildFrm::closePressed ()\fC [protected, slot]\fP"
.PP
Handles a click on the Close button. 
.PP

.PP
Definition at line 491 of file kmdichildfrm.cpp.
.PP
References QWidget::close().
.PP
Referenced by eventFilter(), KMdiChildFrm(), and systemMenu().
.SS "void KMdiChildFrm::undockPressed ()\fC [protected, slot]\fP"
.PP
Handles a click on the Undock (Detach) button. 
.PP
Definition at line 499 of file kmdichildfrm.cpp.
.PP
References KMdiChildView::detach(), and setState().
.PP
Referenced by KMdiChildFrm(), and systemMenu().
.SS "void KMdiChildFrm::showSystemMenu ()\fC [protected, slot]\fP"
.PP
Shows a system menu for child frame windows. 
.PP

.PP
Definition at line 1278 of file kmdichildfrm.cpp.
.PP
References captionHeight(), QPopupMenu::popup(), systemMenu(), QRect::x(), and QRect::y().
.PP
Referenced by eventFilter().
.SS "void KMdiChildFrm::linkChildren (\fBQDict\fP< FocusPolicy > * pFocPolDict)\fC [protected]\fP"
.PP
Restore the focus policies for _all_ widgets in the view using the list given as parameter. 
.PP
Install the event filter for all direct child widgets of this. (See \fBKMdiChildFrm::eventFilter\fP)
.PP
Definition at line 887 of file kmdichildfrm.cpp.
.PP
References QWidget::setFocusPolicy().
.PP
Referenced by setClient().
.SS "\fBQDict\fP< QWidget::FocusPolicy > * KMdiChildFrm::unlinkChildren ()\fC [protected]\fP"
.PP
Backups all focus policies of _all_ child widgets in the MDI childview since they get lost during a reparent. 
.PP
Remove all event filters for all direct child widgets of this. (See \fBKMdiChildFrm::eventFilter\fP)
.PP
Definition at line 933 of file kmdichildfrm.cpp.
.PP
References QWidget::focusPolicy(), QDict::insert(), QString::latin1(), QDict::setAutoDelete(), and QString::setNum().
.PP
Referenced by unsetClient().
.SS "int KMdiChildFrm::getResizeCorner (int ax, int ay)\fC [protected]\fP"
.PP
Calculates the corner id for the resize cursor. 
.PP
The return value can be tested for: KMDI_RESIZE_LEFT, KMDI_RESIZE_RIGHT, KMDI_RESIZE_TOP, KMDI_RESIZE_BOTTOM or an OR'd variant of them for the corners.
.PP
Definition at line 418 of file kmdichildfrm.cpp.
.PP
References QWidget::maximumHeight(), QWidget::maximumWidth(), QWidget::minimumHeight(), and QWidget::minimumWidth().
.PP
Referenced by mouseMoveEvent(), and mousePressEvent().
.SH "Member Data Documentation"
.PP 
.SS "int \fBKMdiChildFrm::m_windowMenuID\fP\fC [protected]\fP"
.PP
Every child frame window has an temporary ID in the Window menu of the child area. 
.PP

.PP
Definition at line 168 of file kmdichildfrm.h.
.SS "\fBQPopupMenu\fP* \fBKMdiChildFrm::m_pSystemMenu\fP\fC [protected]\fP"
.PP
Imitates a system menu for child frame windows. 
.PP
Definition at line 173 of file kmdichildfrm.h.
.PP
Referenced by KMdiChildFrm(), systemMenu(), and ~KMdiChildFrm().

.SH "Author"
.PP 
Generated automatically by Doxygen for kmdi Library from the source code.
