.TH "KMdiChildView" kde3 "11 Jun 2005" "Version Version 3.4.1" "kmdi Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMdiChildView \- Base class for all your special view windows.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmdichildview.h>\fP
.PP
Inherits \fBQWidget\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBattach\fP ()"
.br
.ti -1c
.RI "virtual void \fBdetach\fP ()"
.br
.ti -1c
.RI "virtual void \fBminimize\fP ()"
.br
.ti -1c
.RI "virtual void \fBmaximize\fP ()"
.br
.ti -1c
.RI "virtual void \fBrestore\fP ()"
.br
.ti -1c
.RI "virtual void \fByouAreAttached\fP (\fBKMdiChildFrm\fP *lpC)"
.br
.ti -1c
.RI "virtual void \fByouAreDetached\fP ()"
.br
.ti -1c
.RI "virtual void \fBslot_clickedInWindowMenu\fP ()"
.br
.ti -1c
.RI "virtual void \fBslot_clickedInDockMenu\fP ()"
.br
.ti -1c
.RI "virtual void \fBshow\fP ()"
.br
.ti -1c
.RI "virtual void \fBhide\fP ()"
.br
.ti -1c
.RI "virtual void \fBraise\fP ()"
.br
.ti -1c
.RI "virtual void \fBshowMinimized\fP ()"
.br
.ti -1c
.RI "virtual void \fBshowMaximized\fP ()"
.br
.ti -1c
.RI "virtual void \fBshowNormal\fP ()"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBattachWindow\fP (\fBKMdiChildView\fP *, bool)"
.br
.ti -1c
.RI "void \fBdetachWindow\fP (\fBKMdiChildView\fP *, bool)"
.br
.ti -1c
.RI "void \fBfocusInEventOccurs\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBgotFocus\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBactivated\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBlostFocus\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBdeactivated\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBchildWindowCloseRequest\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBwindowCaptionChanged\fP (const \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBtabCaptionChanged\fP (const \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBmdiParentNowMaximized\fP (bool)"
.br
.ti -1c
.RI "void \fBclickedInWindowMenu\fP (int)"
.br
.ti -1c
.RI "void \fBclickedInDockMenu\fP (int)"
.br
.ti -1c
.RI "void \fBisMaximizedNow\fP ()"
.br
.ti -1c
.RI "void \fBisMinimizedNow\fP ()"
.br
.ti -1c
.RI "void \fBisRestoredNow\fP ()"
.br
.ti -1c
.RI "void \fBisAttachedNow\fP ()"
.br
.ti -1c
.RI "void \fBisDetachedNow\fP ()"
.br
.ti -1c
.RI "void \fBiconUpdated\fP (\fBQWidget\fP *, \fBQPixmap\fP)"
.br
.ti -1c
.RI "void \fBcaptionUpdated\fP (\fBQWidget\fP *, const \fBQString\fP &)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKMdiChildView\fP (const \fBQString\fP &caption, \fBQWidget\fP *\fBparentWidget\fP=0L, const char *name=0L, WFlags f=0)"
.br
.ti -1c
.RI "\fBKMdiChildView\fP (\fBQWidget\fP *\fBparentWidget\fP=0L, const char *name=0L, WFlags f=0)"
.br
.ti -1c
.RI "\fB~KMdiChildView\fP ()"
.br
.ti -1c
.RI "void \fBactivate\fP ()"
.br
.ti -1c
.RI "void \fBsetFirstFocusableChildWidget\fP (\fBQWidget\fP *)"
.br
.ti -1c
.RI "void \fBsetLastFocusableChildWidget\fP (\fBQWidget\fP *)"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBfocusedChildWidget\fP ()"
.br
.ti -1c
.RI "bool \fBisAttached\fP () const "
.br
.ti -1c
.RI "const \fBQString\fP & \fBcaption\fP () const "
.br
.ti -1c
.RI "const \fBQString\fP & \fBtabCaption\fP () const "
.br
.ti -1c
.RI "virtual void \fBsetCaption\fP (const \fBQString\fP &szCaption)"
.br
.ti -1c
.RI "virtual void \fBsetTabCaption\fP (const \fBQString\fP &caption)"
.br
.ti -1c
.RI "virtual void \fBsetMDICaption\fP (const \fBQString\fP &caption)"
.br
.ti -1c
.RI "\fBKMdiChildFrm\fP * \fBmdiParent\fP () const "
.br
.ti -1c
.RI "bool \fBisMinimized\fP () const "
.br
.ti -1c
.RI "bool \fBisMaximized\fP () const "
.br
.ti -1c
.RI "\fBQRect\fP \fBinternalGeometry\fP () const "
.br
.ti -1c
.RI "void \fBsetInternalGeometry\fP (const \fBQRect\fP &newGeomety)"
.br
.ti -1c
.RI "\fBQRect\fP \fBexternalGeometry\fP () const "
.br
.ti -1c
.RI "void \fBsetExternalGeometry\fP (const \fBQRect\fP &newGeomety)"
.br
.ti -1c
.RI "virtual \fBQPixmap\fP * \fBmyIconPtr\fP ()"
.br
.ti -1c
.RI "virtual void \fBminimize\fP (bool bAnimate)"
.br
.ti -1c
.RI "virtual void \fBmaximize\fP (bool bAnimate)"
.br
.ti -1c
.RI "\fBQRect\fP \fBrestoreGeometry\fP ()"
.br
.ti -1c
.RI "void \fBsetRestoreGeometry\fP (const \fBQRect\fP &newRestGeo)"
.br
.ti -1c
.RI "void \fBremoveEventFilterForAllChildren\fP ()"
.br
.ti -1c
.RI "void \fBsetWindowMenuID\fP (int id)"
.br
.ti -1c
.RI "virtual void \fBsetMinimumSize\fP (int minw, int minh)"
.br
.ti -1c
.RI "virtual void \fBsetMaximumSize\fP (int maxw, int maxh)"
.br
.ti -1c
.RI "bool \fBisToolView\fP () const "
.br
.ti -1c
.RI "void \fBupdateTimeStamp\fP ()"
.br
.ti -1c
.RI "const \fBQDateTime\fP & \fBgetTimeStamp\fP () const "
.br
.in -1c
.SS "Protected Slots"

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

.in +1c
.ti -1c
.RI "virtual void \fBcloseEvent\fP (\fBQCloseEvent\fP *e)"
.br
.ti -1c
.RI "virtual bool \fBeventFilter\fP (\fBQObject\fP *obj, \fBQEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBfocusInEvent\fP (\fBQFocusEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBfocusOutEvent\fP (\fBQFocusEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBresizeEvent\fP (\fBQResizeEvent\fP *e)"
.br
.ti -1c
.RI "void \fBtrackIconAndCaptionChanges\fP (\fBQWidget\fP *view)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBm_szCaption\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBm_sTabCaption\fP"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBm_focusedChildWidget\fP"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBm_firstFocusableChildWidget\fP"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBm_lastFocusableChildWidget\fP"
.br
.ti -1c
.RI "int \fBm_windowMenuID\fP"
.br
.ti -1c
.RI "bool \fBm_stateChanged\fP"
.br
.ti -1c
.RI "\fBQDateTime\fP \fBm_time\fP"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKMdiMainFrm\fP"
.br
.ti -1c
.RI "class \fBKMdiChildFrm\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Base class for all your special view windows. 

Base class for all MDI view widgets. \fBKMdi\fP stores additional information in this class to handle the attach/detach mechanism and such things.
.PP
All such windows 'lives' attached to a \fBKMdiChildFrm\fP widget managed by \fBKMdiChildArea\fP, or detached (managed by the window manager.) So remember that the KMdiChildView::parent pointer may change, and may be 0L, too.
.PP
There are 2 possibilities for you to put your widgets under MDI control:
.PP
Either you inherit all the views from KMdiChildView: 
.PP
.nf
   class MyMdiWidget : public KMdiChildView
   { .... };
   ...
   MyMdiWidget w;
   mainframe->addWindow(w, flags);

.fi
.PP
.PP
or you wrap them by a KMdiChildView somehow like this:
.PP
.PP
.nf
 void DocViewMan::addKMdiFrame(QWidget* pNewView, bool bShow, const QPixmap& icon)
 {
   // cover it by a KMdi childview and add that MDI system
   KMdiChildView* pMDICover = new KMdiChildView( pNewView->caption());
   pMDICover->setIcon(icon);
   m_MDICoverList.append( pMDICover);
   QBoxLayout* pLayout = new QHBoxLayout( pMDICover, 0, -1, 'layout');
   pNewView->reparent( pMDICover, QPoint(0,0));
   pLayout->addWidget( pNewView);
   pMDICover->setName( pNewView->name());
   // captions
   QString shortName = pNewView->caption();
   int length = shortName.length();
   shortName = shortName.right(length - (shortName.findRev('/') +1));
   pMDICover->setTabCaption( shortName);
   pMDICover->setCaption(pNewView->caption());

   // fake a viewActivated to update the currentEditView/currentBrowserView pointers _before_ adding to MDI control
   slot_viewActivated( pMDICover);

   // take it under MDI mainframe control (note: this triggers also a setFocus())
   int flags;
   if (bShow) {
     flags = KMdi::StandardAdd;
   }
   else {
     flags = KMdi::Hide;
   }
   // set the accelerators for Toplevel MDI mode (each toplevel window needs its own accels
   connect( m_pParent, SIGNAL(childViewIsDetachedNow(QWidget*)), this, SLOT(initKeyAccel(QWidget*)) );

   m_pParent->addWindow( pMDICover, flags);
   // correct the default settings of KMdi ('cause we haven't a tab order for subwidget focuses)
   pMDICover->setFirstFocusableChildWidget(0L);
   pMDICover->setLastFocusableChildWidget(0L);
 }
.fi
.PP
 
.PP
Definition at line 108 of file kmdichildview.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KMdiChildView::KMdiChildView (const \fBQString\fP & caption, \fBQWidget\fP * parentWidget = \fC0L\fP, const char * name = \fC0L\fP, WFlags f = \fC0\fP)"
.PP
Constructor. 
.PP
Definition at line 47 of file kmdichildview.cpp.
.PP
References caption(), m_sTabCaption, m_szCaption, QWidget::setFocusPolicy(), QWidget::setGeometry(), and updateTimeStamp().
.SS "KMdiChildView::KMdiChildView (\fBQWidget\fP * parentWidget = \fC0L\fP, const char * name = \fC0L\fP, WFlags f = \fC0\fP)"
.PP
Constructor sets 'Unnamed' as default caption. 
.PP
Definition at line 76 of file kmdichildview.cpp.
.PP
References m_sTabCaption, m_szCaption, QWidget::setFocusPolicy(), QWidget::setGeometry(), and updateTimeStamp().
.SS "KMdiChildView::~\fBKMdiChildView\fP ()"
.PP
Destructor. 
.PP
Definition at line 100 of file kmdichildview.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KMdiChildView::activate ()"
.PP
This method does the same as \fBfocusInEvent()\fP. 
.PP
That's why it is a replacement for the \fBsetFocus()\fP call. It makes sense if you for instance want to focus (I mean raise and activate) this view although the real focus is in another toplevel widget. \fBfocusInEvent()\fP will never get called in that case and your \fBsetFocus()\fP call for this widget would fail without any effect. Use this method with caution, it always raises the view and pushes the taskbar button. Also when the focus is still on another MDI view in the same toplevel window where this is located!
.PP
Definition at line 420 of file kmdichildview.cpp.
.PP
References activated(), focusInEventOccurs(), m_firstFocusableChildWidget, m_focusedChildWidget, and QWidget::setFocus().
.PP
Referenced by KMdiMainFrm::activateView(), KMdiMainFrm::closeWindow(), eventFilter(), focusInEvent(), KMdiChildArea::focusTopChild(), KMdiMainFrm::removeWindowFromMdi(), KMdiChildArea::tileAllInternal(), KMdiChildArea::tileAnodine(), and KMdiChildArea::tileVertically().
.SS "void KMdiChildView::setFirstFocusableChildWidget (\fBQWidget\fP *)"
.PP
Memorizes the first focusable child widget of this widget. 
.PP
Definition at line 667 of file kmdichildview.cpp.
.PP
References m_firstFocusableChildWidget.
.PP
Referenced by KMdiChildFrm::unsetClient().
.SS "void KMdiChildView::setLastFocusableChildWidget (\fBQWidget\fP *)"
.PP
Memorizes the last focusable child widget of this widget. 
.PP
Definition at line 672 of file kmdichildview.cpp.
.PP
References m_lastFocusableChildWidget.
.PP
Referenced by KMdiChildFrm::unsetClient().
.SS "\fBQWidget\fP * KMdiChildView::focusedChildWidget ()"
.PP
Returns the current focused child widget of this widget. 
.PP
Definition at line 662 of file kmdichildview.cpp.
.PP
References m_focusedChildWidget.
.PP
Referenced by KMdiChildFrm::unsetClient().
.SS "bool KMdiChildView::isAttached () const\fC [inline]\fP"
.PP
Returns true if the MDI view is a child window within the MDI mainframe widget or false if the MDI view is in toplevel mode. 
.PP
Definition at line 227 of file kmdichildview.h.
.PP
Referenced by KMdiMainFrm::dockMenuItemActivated(), KMdiMainFrm::eventFilter(), eventFilter(), KMdiMainFrm::fillWindowMenu(), KMdiMainFrm::setFrameDecorOfAttachedViews(), KMdiMainFrm::switchToChildframeMode(), and KMdiMainFrm::windowMenuItemActivated().
.SS "const \fBQString\fP& KMdiChildView::caption () const\fC [inline]\fP"
.PP
Returns the caption of the child window (different from the caption on the button in the taskbar). 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 232 of file kmdichildview.h.
.PP
Referenced by eventFilter(), KMdiMainFrm::fillWindowMenu(), KMdiChildView(), and setMDICaption().
.SS "const \fBQString\fP& KMdiChildView::tabCaption () const\fC [inline]\fP"
.PP
Returns the caption of the button on the taskbar. 
.PP
Definition at line 237 of file kmdichildview.h.
.SS "void KMdiChildView::setCaption (const \fBQString\fP & szCaption)\fC [virtual]\fP"
.PP
Sets the window caption string... 
.PP
Calls updateButton on the taskbar button if it has been set.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 373 of file kmdichildview.cpp.
.PP
References m_szCaption, mdiParent(), QWidget::setCaption(), KMdiChildFrm::setCaption(), and windowCaptionChanged().
.PP
Referenced by KMdiMainFrm::createWrapper(), setMDICaption(), and youAreDetached().
.SS "void KMdiChildView::setTabCaption (const \fBQString\fP & stbCaption)\fC [virtual]\fP"
.PP
Sets the caption of the button referring to this window. 
.PP
Definition at line 678 of file kmdichildview.cpp.
.PP
References m_sTabCaption, and tabCaptionChanged().
.PP
Referenced by KMdiMainFrm::createWrapper(), setMDICaption(), and youAreDetached().
.SS "void KMdiChildView::setMDICaption (const \fBQString\fP & caption)\fC [virtual]\fP"
.PP
Sets the caption of both the window and the button on the taskbar. 
.PP
Definition at line 684 of file kmdichildview.cpp.
.PP
References caption(), setCaption(), and setTabCaption().
.SS "\fBKMdiChildFrm\fP * KMdiChildView::mdiParent () const\fC [inline]\fP"
.PP
Returns the \fBKMdiChildFrm\fP parent widget (or 0 if the window is not attached). 
.PP
Definition at line 604 of file kmdichildview.h.
.PP
References QWidget::parentWidget().
.PP
Referenced by KMdiMainFrm::detachWindow(), externalGeometry(), hide(), internalGeometry(), isMaximized(), isMinimized(), maximize(), minimize(), raise(), restore(), restoreGeometry(), setCaption(), setExternalGeometry(), KMdiMainFrm::setFrameDecorOfAttachedViews(), setInternalGeometry(), setMaximumSize(), setMinimumSize(), setRestoreGeometry(), and show().
.SS "bool KMdiChildView::isMinimized () const"
.PP
Tells if the window is minimized when attached to the Mdi manager, or if it is VISIBLE when 'floating'. 
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 308 of file kmdichildview.cpp.
.PP
References QWidget::isMinimized(), and mdiParent().
.PP
Referenced by KMdiMainFrm::dockMenuItemActivated(), KMdiMainFrm::fillWindowMenu(), minimize(), resizeEvent(), restore(), and KMdiMainFrm::windowMenuItemActivated().
.SS "bool KMdiChildView::isMaximized () const"
.PP
Tells if the window is minimized when attached to the Mdi manager, otherwise returns false. 
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 318 of file kmdichildview.cpp.
.PP
References QWidget::isMaximized(), and mdiParent().
.PP
Referenced by maximize(), resizeEvent(), restore(), and KMdiChildFrm::setState().
.SS "\fBQRect\fP KMdiChildView::internalGeometry () const"
.PP
Returns the geometry of this MDI child window as \fBQWidget::geometry()\fP does. 
.PP

.PP
Definition at line 113 of file kmdichildview.cpp.
.PP
References externalGeometry(), QWidget::geometry(), QRect::height(), mdiParent(), QWidget::size(), QRect::topLeft(), QRect::width(), QRect::x(), and QRect::y().
.PP
Referenced by setExternalGeometry(), and setInternalGeometry().
.SS "void KMdiChildView::setInternalGeometry (const \fBQRect\fP & newGeomety)"
.PP
Sets the geometry of the client area of this MDI child window. 
.PP
The top left position of the argument is the position of the top left point of the client area in its parent coordinates and the arguments width and height is the width and height of the client area. Please note: This differs from the behavior of \fBQWidget::setGeometry()\fP!
.PP
Definition at line 136 of file kmdichildview.cpp.
.PP
References externalGeometry(), internalGeometry(), mdiParent(), QWidget::setGeometry(), QRect::setHeight(), QRect::setWidth(), QRect::setX(), QRect::setY(), QRect::x(), and QRect::y().
.SS "\fBQRect\fP KMdiChildView::externalGeometry () const"
.PP
Returns the frame geometry of this window or of the parent if there is any... 
.PP

.PP
Definition at line 183 of file kmdichildview.cpp.
.PP
References QWidget::frameGeometry(), and mdiParent().
.PP
Referenced by internalGeometry(), setExternalGeometry(), and setInternalGeometry().
.SS "void KMdiChildView::setExternalGeometry (const \fBQRect\fP & newGeomety)"
.PP
Sets the geometry of the frame of this MDI child window. 
.PP
The top left position of the argument is the position of the top left point of the frame in its parent coordinates and the arguments width and height is the width and height of the widget frame. Please note: This differs from the behavior of \fBQWidget::setGeometry()\fP!
.PP
Definition at line 190 of file kmdichildview.cpp.
.PP
References externalGeometry(), QRect::height(), internalGeometry(), mdiParent(), QWidget::setGeometry(), QRect::setHeight(), QRect::setWidth(), QRect::setX(), QRect::setY(), QRect::width(), QRect::x(), and QRect::y().
.SS "\fBQPixmap\fP * KMdiChildView::myIconPtr ()\fC [virtual]\fP"
.PP
You should override this function in the derived class. 
.PP

.PP
Definition at line 395 of file kmdichildview.cpp.
.PP
Referenced by youAreDetached().
.SS "void KMdiChildView::minimize (bool bAnimate)\fC [virtual]\fP"
.PP
Minimizes this window when it is attached to the Mdi manager. 
.PP
Otherwise has no effect
.PP
Definition at line 221 of file kmdichildview.cpp.
.PP
References isMinimized(), mdiParent(), KMdiChildFrm::setState(), and showMinimized().
.PP
Referenced by KMdiMainFrm::dockMenuItemActivated(), and KMdiMainFrm::windowMenuItemActivated().
.SS "void KMdiChildView::maximize (bool bAnimate)\fC [virtual]\fP"
.PP
Maximizes this window when it is attached to the Mdi manager. 
.PP
Otherwise has no effect
.PP
Definition at line 248 of file kmdichildview.cpp.
.PP
References isMaximized(), mdiParent(), mdiParentNowMaximized(), KMdiChildFrm::setState(), and showMaximized().
.SS "\fBQRect\fP KMdiChildView::restoreGeometry ()"
.PP
Returns the geometry that will be restored by calling \fBrestore()\fP. 
.PP

.PP
Definition at line 276 of file kmdichildview.cpp.
.PP
References QWidget::geometry(), mdiParent(), and KMdiChildFrm::restoreGeometry().
.SS "void KMdiChildView::setRestoreGeometry (const \fBQRect\fP & newRestGeo)"
.PP
Sets the geometry that will be restored by calling \fBrestore()\fP. 
.PP

.PP
Definition at line 286 of file kmdichildview.cpp.
.PP
References mdiParent(), and KMdiChildFrm::setRestoreGeometry().
.SS "void KMdiChildView::removeEventFilterForAllChildren ()"
.PP
Switches interposing in event loop of all current child widgets off. 
.PP

.PP
Definition at line 648 of file kmdichildview.cpp.
.SS "void KMdiChildView::setWindowMenuID (int id)"
.PP
Internally used for setting an ID for the 'Window' menu entry. 
.PP
Definition at line 691 of file kmdichildview.cpp.
.PP
References m_windowMenuID.
.PP
Referenced by KMdiMainFrm::fillWindowMenu().
.SS "void KMdiChildView::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 base clase method in a way that the minimum size of its childframe (if there is one) will be set, additionally.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 715 of file kmdichildview.cpp.
.PP
References mdiParent(), KMdiChildFrm::setMinimumSize(), and QWidget::setMinimumSize().
.PP
Referenced by KMdiChildFrm::setState(), and KMdiChildFrm::unsetClient().
.SS "void KMdiChildView::setMaximumSize (int maxw, int maxh)\fC [virtual]\fP"
.PP
Sets the maximum size of the widget to w by h pixels. 
.PP
It extends it base clase method in a way that the maximum size of its childframe (if there is one) will be set, additionally.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 727 of file kmdichildview.cpp.
.PP
References KMdiChildFrm::captionHeight(), mdiParent(), and QWidget::setMaximumSize().
.PP
Referenced by KMdiChildFrm::setState(), and KMdiChildFrm::unsetClient().
.SS "bool KMdiChildView::isToolView () const\fC [inline]\fP"
.PP
Returns if this is added as MDI tool-view. 
.PP
Definition at line 354 of file kmdichildview.h.
.PP
Referenced by KMdiMainFrm::fillWindowMenu(), KMdiMainFrm::setFrameDecorOfAttachedViews(), and KMdiMainFrm::switchToChildframeMode().
.SS "void KMdiChildView::updateTimeStamp ()\fC [inline]\fP"
.PP
Remember the current time. 
.PP
Definition at line 359 of file kmdichildview.h.
.PP
Referenced by KMdiMainFrm::eventFilter(), KMdiChildView(), and slot_clickedInWindowMenu().
.SS "const \fBQDateTime\fP& KMdiChildView::getTimeStamp () const\fC [inline]\fP"
.PP
Recall a previously remembered time, i.e. 
.PP
the value of m_time
.PP
Definition at line 368 of file kmdichildview.h.
.PP
Referenced by KMdiMainFrm::activateFirstWin(), KMdiMainFrm::activateLastWin(), and KMdiMainFrm::fillWindowMenu().
.SS "void KMdiChildView::attach ()\fC [virtual, slot]\fP"
.PP
Attaches this window to the Mdi manager. 
.PP
It calls the \fBKMdiMainFrm\fP attachWindow function , so if you have a pointer to this \fBKMdiMainFrm\fP you'll be faster calling that function.
.PP
Definition at line 294 of file kmdichildview.cpp.
.PP
References attachWindow().
.SS "void KMdiChildView::detach ()\fC [virtual, slot]\fP"
.PP
Detaches this window from the Mdi manager. 
.PP
It calls the \fBKMdiMainFrm\fP detachWindow function , so if you have a pointer to this \fBKMdiMainFrm\fP you'll be faster calling that function.
.PP
Definition at line 301 of file kmdichildview.cpp.
.PP
References detachWindow().
.PP
Referenced by KMdiChildFrm::undockPressed().
.SS "void KMdiChildView::minimize ()\fC [virtual, slot]\fP"
.PP
Mimimizes the MDI view. 
.PP
If attached, the covering childframe widget is minimized (only a mini widget showing the caption bar and the system buttons will remain visible). If detached, it will use the minimize of the underlying system ( \fBQWidget::showMinimized\fP ).
.PP
Definition at line 241 of file kmdichildview.cpp.
.SS "void KMdiChildView::maximize ()\fC [virtual, slot]\fP"
.PP
Maximizes the MDI view. 
.PP
If attached, this widget will fill the whole MDI view area widget. The system buttons move to the main menubar (if set by \fBKMdiMainFrm::setMenuForSDIModeSysButtons\fP ). If detached, it will use the minimize of the underlying system ( \fBQWidget::showMaximized\fP ).
.PP
Definition at line 269 of file kmdichildview.cpp.
.SS "void KMdiChildView::restore ()\fC [virtual, slot]\fP"
.PP
Restores this window to its normal size. 
.PP
Also known as 'normalize'.
.PP
Definition at line 328 of file kmdichildview.cpp.
.PP
References isMaximized(), isMinimized(), mdiParent(), mdiParentNowMaximized(), KMdiChildFrm::setState(), and showNormal().
.PP
Referenced by KMdiMainFrm::setEnableMaximizedChildFrmMode().
.SS "void KMdiChildView::youAreAttached (\fBKMdiChildFrm\fP * lpC)\fC [virtual, slot]\fP"
.PP
Internally called, if KMdiMainFrm::attach is called. 
.PP
Actually, only the caption of the covering childframe is set.
.PP
Definition at line 350 of file kmdichildview.cpp.
.PP
References isAttachedNow(), m_szCaption, and KMdiChildFrm::setCaption().
.SS "void KMdiChildView::youAreDetached ()\fC [virtual, slot]\fP"
.PP
Internally called, if KMdiMainFrm::detach is called. 
.PP
Some things for going toplevel will be done here.
.PP
Definition at line 358 of file kmdichildview.cpp.
.PP
References isDetachedNow(), m_sTabCaption, m_szCaption, myIconPtr(), setCaption(), QWidget::setFocusPolicy(), QWidget::setIcon(), and setTabCaption().
.PP
Referenced by KMdiMainFrm::detachWindow().
.SS "void KMdiChildView::slot_clickedInWindowMenu ()\fC [virtual, slot]\fP"
.PP
Called if someone click on the 'Window' menu item for this child frame window. 
.PP
Definition at line 699 of file kmdichildview.cpp.
.PP
References clickedInWindowMenu(), m_windowMenuID, and updateTimeStamp().
.SS "void KMdiChildView::slot_clickedInDockMenu ()\fC [virtual, slot]\fP"
.PP
Called if someone click on the 'Dock/Undock...' menu item for this child frame window. 
.PP
Definition at line 708 of file kmdichildview.cpp.
.PP
References clickedInDockMenu(), and m_windowMenuID.
.SS "void KMdiChildView::show ()\fC [virtual, slot]\fP"
.PP
Calls \fBQWidget::show\fP but also for it's parent widget if attached. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 746 of file kmdichildview.cpp.
.PP
References mdiParent(), and QWidget::show().
.PP
Referenced by KMdiMainFrm::switchToChildframeMode().
.SS "void KMdiChildView::hide ()\fC [virtual, slot]\fP"
.PP
Calls \fBQWidget::hide()\fP or it's parent widget \fBhide()\fP if attached. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 756 of file kmdichildview.cpp.
.PP
References QWidget::hide(), and mdiParent().
.SS "void KMdiChildView::raise ()\fC [virtual, slot]\fP"
.PP
Calls \fBQWidget::raise()\fP or it's parent widget \fBraise()\fP if attached. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 766 of file kmdichildview.cpp.
.PP
References mdiParent(), and QWidget::raise().
.SS "void KMdiChildView::showMinimized ()\fC [virtual, slot]\fP"
.PP
Overridden from its base class method. 
.PP
Emits a signal \fBKMdiChildView::isMinimizedNow\fP , additionally. Note that this method is not used by an external windows manager call on system minimizing.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 234 of file kmdichildview.cpp.
.PP
References isMinimizedNow(), and QWidget::showMinimized().
.PP
Referenced by minimize().
.SS "void KMdiChildView::showMaximized ()\fC [virtual, slot]\fP"
.PP
Overridden from its base class method. 
.PP
Emits a signal \fBKMdiChildView::isMaximizedNow\fP , additionally. Note that this method is not used by an external windows manager call on system maximizing.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 262 of file kmdichildview.cpp.
.PP
References isMaximizedNow(), and QWidget::showMaximized().
.PP
Referenced by maximize().
.SS "void KMdiChildView::showNormal ()\fC [virtual, slot]\fP"
.PP
Overridden from its base class method. 
.PP
Emits a signal \fBKMdiChildView::isRestoredNow\fP , additionally. Note that this method is not used by an external windows manager call on system normalizing.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 342 of file kmdichildview.cpp.
.PP
References isRestoredNow(), and QWidget::showNormal().
.PP
Referenced by restore().
.SS "void KMdiChildView::closeEvent (\fBQCloseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Ignores the event and calls \fBKMdiMainFrm::childWindowCloseRequest\fP instead. 
.PP
This is because the mainframe has control over the views. Therefore the MDI view has to request the mainframe for a close.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 387 of file kmdichildview.cpp.
.PP
References childWindowCloseRequest().
.SS "bool KMdiChildView::eventFilter (\fBQObject\fP * obj, \fBQEvent\fP * e)\fC [protected, virtual]\fP"
.PP
It only catches QEvent::KeyPress events there. 
.PP
If a Qt::Key_Tab is pressed, the internal MDI focus handling is called. That means if the last focusable child widget of this is called, it will jump to the first focusable child widget of this. See \fBKMdiChildView::setFirstFocusableChildWidget\fP and KMdiChildView::lastFirstFocusableChildWidget
.PP
Definition at line 522 of file kmdichildview.cpp.
.PP
References activate(), caption(), QObject::child(), QWidget::focusPolicy(), QWidget::icon(), isAttached(), QObject::isWidgetType(), QKeyEvent::key(), m_firstFocusableChildWidget, m_focusedChildWidget, m_lastFocusableChildWidget, QObject::queryList(), QWidget::setFocus(), QWidget::setIcon(), and QWidget::testWFlags().
.SS "void KMdiChildView::focusInEvent (\fBQFocusEvent\fP * e)\fC [protected, virtual]\fP"
.PP
If attached, the childframe will be activated and the MDI taskbar button will be pressed. 
.PP
Additionally, the memorized old focused child widget of this is focused again. Sends the focusInEventOccurs signal before changing the focus and the gotFocus signal after changing the focus.
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 402 of file kmdichildview.cpp.
.PP
References activate(), QWidget::focusInEvent(), and gotFocus().
.SS "void KMdiChildView::focusOutEvent (\fBQFocusEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Send the lostFocus signal. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 460 of file kmdichildview.cpp.
.PP
References QWidget::focusOutEvent(), and lostFocus().
.SS "void KMdiChildView::resizeEvent (\fBQResizeEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Internally used for the minimize/maximize/restore mechanism when in attach mode. 
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 468 of file kmdichildview.cpp.
.PP
References isMaximized(), isMaximizedNow(), isMinimized(), isMinimizedNow(), isRestoredNow(), m_stateChanged, and QWidget::resizeEvent().
.SS "void KMdiChildView::attachWindow (\fBKMdiChildView\fP *, bool)\fC [signal]\fP"
.PP
Internally used by \fBKMdiChildView::attach\fP to send it as command to the mainframe. 
.PP

.PP
Referenced by attach().
.SS "void KMdiChildView::detachWindow (\fBKMdiChildView\fP *, bool)\fC [signal]\fP"
.PP
Internally used by \fBKMdiChildView::detach\fP to send it as command to the mainframe. 
.PP

.PP
Referenced by detach().
.SS "void KMdiChildView::focusInEventOccurs (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Is sent when this MDI child view is going to receive focus (before actually changing the focus). 
.PP
Internally used to send information to the mainframe that this MDI child view is focused. See \fBKMdiChildView::focusInEvent\fP
.PP
Referenced by activate().
.SS "void KMdiChildView::gotFocus (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Is sent when this MDI child has received the focus (after actually changing the focus). 
.PP
See \fBKMdiChildView::focusInEvent\fP
.PP
Referenced by focusInEvent().
.SS "void KMdiChildView::activated (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Is sent when this MDI child was set to the activate view of all MDI views (after actually changing the focus). 
.PP
See \fBKMdiChildView::activate\fP
.PP
Referenced by activate().
.SS "void KMdiChildView::lostFocus (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Is sent when this MDI child view has lost the focus (after actually changing the focus). 
.PP
See \fBKMdiChildView::focusOutEvent\fP
.PP
Referenced by focusOutEvent().
.SS "void KMdiChildView::deactivated (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Is sent when this MDI child view was deactivated (after actually changing the focus). 
.PP
See \fBKMdiChildView::focusOutEvent\fP
.SS "void KMdiChildView::childWindowCloseRequest (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Internally used to send information to the mainframe that this MDI child view wants to be closed. 
.PP
See \fBKMdiChildView::closeEvent\fP and \fBKMdiMainFrm::closeWindow\fP
.PP
Referenced by closeEvent().
.SS "void KMdiChildView::windowCaptionChanged (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted when the window caption is changed via \fBKMdiChildView::setCaption\fP or \fBKMdiChildView::setMDICaption\fP. 
.PP
Referenced by setCaption().
.SS "void KMdiChildView::tabCaptionChanged (const \fBQString\fP &)\fC [signal]\fP"
.PP
Emitted when the window caption is changed via \fBKMdiChildView::setTabCaption\fP or \fBKMdiChildView::setMDICaption\fP. 
.PP
Referenced by setTabCaption().
.SS "void KMdiChildView::mdiParentNowMaximized (bool)\fC [signal]\fP"
.PP
Internally used to send information to the mainframe that this MDI view is maximized now. 
.PP
Usually, the mainframe switches system buttons.
.PP
Referenced by maximize(), and restore().
.SS "void KMdiChildView::clickedInWindowMenu (int)\fC [signal]\fP"
.PP
Is automatically emitted when slot_clickedInWindowMenu is called. 
.PP
Referenced by slot_clickedInWindowMenu().
.SS "void KMdiChildView::clickedInDockMenu (int)\fC [signal]\fP"
.PP
Is automatically emitted when slot_clickedInDockMenu is called. 
.PP
Referenced by slot_clickedInDockMenu().
.SS "void KMdiChildView::isMaximizedNow ()\fC [signal]\fP"
.PP
Signals this has been maximized. 
.PP
Referenced by resizeEvent(), and showMaximized().
.SS "void KMdiChildView::isMinimizedNow ()\fC [signal]\fP"
.PP
Signals this has been minimized. 
.PP
Referenced by resizeEvent(), and showMinimized().
.SS "void KMdiChildView::isRestoredNow ()\fC [signal]\fP"
.PP
Signals this has been restored (normalized). 
.PP
Referenced by resizeEvent(), and showNormal().
.SS "void KMdiChildView::isAttachedNow ()\fC [signal]\fP"
.PP
Signals this has been attached. 
.PP
Referenced by youAreAttached().
.SS "void KMdiChildView::isDetachedNow ()\fC [signal]\fP"
.PP
Signals this has been detached. 
.PP
Referenced by youAreDetached().
.SH "Member Data Documentation"
.PP 
.SS "\fBQString\fP \fBKMdiChildView::m_szCaption\fP\fC [protected]\fP"
.PP
See \fBKMdiChildView::caption\fP. 
.PP
Definition at line 119 of file kmdichildview.h.
.PP
Referenced by KMdiChildView(), setCaption(), youAreAttached(), and youAreDetached().
.SS "\fBQString\fP \fBKMdiChildView::m_sTabCaption\fP\fC [protected]\fP"
.PP
See \fBKMdiChildView::tabCaption\fP. 
.PP
Definition at line 124 of file kmdichildview.h.
.PP
Referenced by KMdiChildView(), setTabCaption(), and youAreDetached().
.SS "\fBQWidget\fP* \fBKMdiChildView::m_focusedChildWidget\fP\fC [protected]\fP"
.PP
See \fBKMdiChildView::focusedChildWidget\fP. 
.PP
Definition at line 129 of file kmdichildview.h.
.PP
Referenced by activate(), eventFilter(), and focusedChildWidget().
.SS "\fBQWidget\fP* \fBKMdiChildView::m_firstFocusableChildWidget\fP\fC [protected]\fP"
.PP
See \fBKMdiChildView::setFirstFocusableChildWidget\fP. 
.PP
Definition at line 134 of file kmdichildview.h.
.PP
Referenced by activate(), eventFilter(), and setFirstFocusableChildWidget().
.SS "\fBQWidget\fP* \fBKMdiChildView::m_lastFocusableChildWidget\fP\fC [protected]\fP"
.PP
See \fBKMdiChildView::setLastFocusableChildWidget\fP. 
.PP
Definition at line 139 of file kmdichildview.h.
.PP
Referenced by eventFilter(), and setLastFocusableChildWidget().
.SS "int \fBKMdiChildView::m_windowMenuID\fP\fC [protected]\fP"
.PP
Every child view window has an temporary ID in the Window menu of the main frame. 
.PP

.PP
Definition at line 144 of file kmdichildview.h.
.PP
Referenced by setWindowMenuID(), slot_clickedInDockMenu(), and slot_clickedInWindowMenu().
.SS "bool \fBKMdiChildView::m_stateChanged\fP\fC [protected]\fP"
.PP
Holds a temporary information about if the MDI view state has changed but is not processed yet (pending state). 
.PP
For example it could be that a 'maximize' is pending, if this variable is true.
.PP
Definition at line 150 of file kmdichildview.h.
.PP
Referenced by resizeEvent(), and KMdiChildFrm::setState().
.SS "\fBQDateTime\fP \fBKMdiChildView::m_time\fP\fC [protected]\fP"
.PP
Holds the time when this view was activated (not only displayed) for the last time. 
.PP

.PP
Definition at line 155 of file kmdichildview.h.

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