\section{KMdi\-Child\-Frm Class Reference}
\label{classKMdiChildFrm}\index{KMdiChildFrm@{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.  


{\tt \#include $<$kmdichildfrm.h$>$}

Inheritance diagram for KMdi\-Child\-Frm:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKMdiChildFrm__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMdi\-Child\-Frm:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=391pt]{classKMdiChildFrm__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Mdi\-Window\-State} \{ {\bf Normal}, 
{\bf Maximized}, 
{\bf Minimized}
 \}
\end{CompactItemize}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf slot\_\-resize\-Via\-System\-Menu} ()\label{classKMdiChildFrm_i0}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KMdi\-Child\-Frm} ({\bf KMdi\-Child\-Area} $\ast$parent)
\item 
{\bf $\sim$KMdi\-Child\-Frm} ()
\item 
void {\bf set\-Client} ({\bf KMdi\-Child\-View} $\ast$w, bool b\-Automatic\-Resize=false)
\item 
void {\bf unset\-Client} ({\bf QPoint} position\-Offset={\bf QPoint}(0, 0))
\item 
void {\bf set\-Icon} (const {\bf QPixmap} \&pxm)
\item 
{\bf QPixmap} $\ast$ {\bf icon} () const 
\item 
void {\bf enable\-Close} (bool b\-Enable)
\item 
void {\bf set\-Caption} (const {\bf QString} \&text)
\item 
const {\bf QString} \& {\bf caption} ()
\item 
void {\bf set\-State} (Mdi\-Window\-State state, bool b\-Animate=true)
\item 
Mdi\-Window\-State {\bf state} () const 
\item 
{\bf QRect} {\bf mdi\-Area\-Contents\-Rect} () const 
\item 
{\bf QRect} {\bf restore\-Geometry} () const 
\item 
void {\bf set\-Restore\-Geometry} (const {\bf QRect} \&new\-Rest\-Geo)
\item 
void {\bf update\-Rects} ()
\item 
{\bf QPopup\-Menu} $\ast$ {\bf system\-Menu} () const 
\item 
int {\bf caption\-Height} () const 
\item 
void {\bf redecorate\-Buttons} ()
\item 
bool {\bf is\-In\-Drag} () const 
\item 
bool {\bf is\-In\-Resize} () const 
\item 
void {\bf raise\-And\-Activate} ()
\item 
virtual void {\bf set\-Minimum\-Size} (int minw, int minh)
\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
{\bf KMdi\-Child\-View} $\ast$ {\bf m\_\-p\-Client}\label{classKMdiChildFrm_o0}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf maximize\-Pressed} ()
\item 
void {\bf restore\-Pressed} ()
\item 
void {\bf minimize\-Pressed} ()
\item 
void {\bf close\-Pressed} ()
\item 
void {\bf undock\-Pressed} ()
\item 
void {\bf show\-System\-Menu} ()
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)
\item 
virtual void {\bf mouse\-Move\-Event} ({\bf QMouse\-Event} $\ast$e)
\item 
virtual void {\bf mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$e)
\item 
virtual void {\bf mouse\-Release\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
virtual void {\bf move\-Event} ({\bf QMove\-Event} $\ast$me)
\item 
virtual void {\bf leave\-Event} ({\bf QEvent} $\ast$)
\item 
virtual bool {\bf event\-Filter} ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)
\item 
void {\bf resize\-Window} (int resize\-Corner, int x, int y)
\item 
void {\bf set\-Resize\-Cursor} (int resize\-Corner)
\item 
void {\bf unset\-Resize\-Cursor} ()
\item 
virtual void {\bf switch\-To\-Minimize\-Layout} ()
\item 
void {\bf do\-Resize} ()
\item 
void {\bf do\-Resize} (bool caption\-Only)
\item 
void {\bf link\-Children} ({\bf QDict}$<$ Focus\-Policy $>$ $\ast$p\-Foc\-Pol\-Dict)
\item 
{\bf QDict}$<$ QWidget::Focus\-Policy $>$ $\ast$ {\bf unlink\-Children} ()
\item 
int {\bf get\-Resize\-Corner} (int ax, int ay)
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KMdi\-Child\-Area} $\ast$ {\bf m\_\-p\-Manager}\label{classKMdiChildFrm_p0}

\item 
{\bf KMdi\-Child\-Frm\-Caption} $\ast$ {\bf m\_\-p\-Caption}\label{classKMdiChildFrm_p1}

\item 
{\bf KMdi\-Win32Icon\-Button} $\ast$ {\bf m\_\-p\-Win\-Icon}\label{classKMdiChildFrm_p2}

\item 
{\bf QTool\-Button} $\ast$ {\bf m\_\-p\-Unix\-Icon}\label{classKMdiChildFrm_p3}

\item 
{\bf QTool\-Button} $\ast$ {\bf m\_\-p\-Minimize}\label{classKMdiChildFrm_p4}

\item 
{\bf QTool\-Button} $\ast$ {\bf m\_\-p\-Maximize}\label{classKMdiChildFrm_p5}

\item 
{\bf QTool\-Button} $\ast$ {\bf m\_\-p\-Close}\label{classKMdiChildFrm_p6}

\item 
{\bf QTool\-Button} $\ast$ {\bf m\_\-p\-Undock}\label{classKMdiChildFrm_p7}

\item 
Mdi\-Window\-State {\bf m\_\-state}\label{classKMdiChildFrm_p8}

\item 
{\bf QRect} {\bf m\_\-restored\-Rect}\label{classKMdiChildFrm_p9}

\item 
int {\bf m\_\-i\-Resize\-Corner}\label{classKMdiChildFrm_p10}

\item 
int {\bf m\_\-i\-Last\-Cursor\-Corner}\label{classKMdiChildFrm_p11}

\item 
bool {\bf m\_\-b\-Resizing}\label{classKMdiChildFrm_p12}

\item 
bool {\bf m\_\-b\-Dragging}\label{classKMdiChildFrm_p13}

\item 
{\bf QPixmap} $\ast$ {\bf m\_\-p\-Icon\-Button\-Pixmap}\label{classKMdiChildFrm_p14}

\item 
{\bf QPixmap} $\ast$ {\bf m\_\-p\-Min\-Button\-Pixmap}\label{classKMdiChildFrm_p15}

\item 
{\bf QPixmap} $\ast$ {\bf m\_\-p\-Max\-Button\-Pixmap}\label{classKMdiChildFrm_p16}

\item 
{\bf QPixmap} $\ast$ {\bf m\_\-p\-Restore\-Button\-Pixmap}\label{classKMdiChildFrm_p17}

\item 
{\bf QPixmap} $\ast$ {\bf m\_\-p\-Close\-Button\-Pixmap}\label{classKMdiChildFrm_p18}

\item 
{\bf QPixmap} $\ast$ {\bf m\_\-p\-Undock\-Button\-Pixmap}\label{classKMdiChildFrm_p19}

\item 
int {\bf m\_\-window\-Menu\-ID}
\item 
{\bf QPopup\-Menu} $\ast$ {\bf m\_\-p\-System\-Menu}
\item 
{\bf QSize} {\bf m\_\-old\-Client\-Min\-Size}\label{classKMdiChildFrm_p22}

\item 
{\bf QSize} {\bf m\_\-old\-Client\-Max\-Size}\label{classKMdiChildFrm_p23}

\item 
QLayout::Resize\-Mode {\bf m\_\-old\-Layout\-Resize\-Mode}\label{classKMdiChildFrm_p24}

\item 
{\bf QTime} {\bf m\_\-time\-Measure}\label{classKMdiChildFrm_p25}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KMdi\-Child\-Area}\label{classKMdiChildFrm_n0}

\item 
class {\bf KMdi\-Child\-Frm\-Caption}\label{classKMdiChildFrm_n1}

\end{CompactItemize}


\subsection{Detailed Description}
Internal class. It's an MDI child frame widget. It contains a view widget and a frame caption. Usually you derive from its view. 



Definition at line 130 of file kmdichildfrm.h.

\subsection{Constructor \& Destructor Documentation}
\index{KMdiChildFrm@{KMdi\-Child\-Frm}!KMdiChildFrm@{KMdiChildFrm}}
\index{KMdiChildFrm@{KMdiChildFrm}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMdi\-Child\-Frm::KMdi\-Child\-Frm ({\bf KMdi\-Child\-Area} $\ast$ {\em parent})}\label{classKMdiChildFrm_a0}


Creates a new KMdi\-Child\-Frm class. 



Definition at line 101 of file kmdichildfrm.cpp.

References close\-Pressed(), QObject::connect(), KMdi\-Child\-Frm\-Caption::height\-Hint(), QPixmap::is\-Null(), m\_\-p\-System\-Menu, maximize\-Pressed(), minimize\-Pressed(), redecorate\-Buttons(), QFrame::set\-Frame\-Style(), set\-Minimum\-Size(), and undock\-Pressed().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!~KMdiChildFrm@{$\sim$KMdiChildFrm}}
\index{~KMdiChildFrm@{$\sim$KMdiChildFrm}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMdi\-Child\-Frm::$\sim${\bf KMdi\-Child\-Frm} ()}\label{classKMdiChildFrm_a1}


Destroys this KMdi\-Child\-Frm If a child is still here managed (no recreation was made) it is destroyed too. 



Definition at line 171 of file kmdichildfrm.cpp.

References m\_\-p\-System\-Menu.

\subsection{Member Function Documentation}
\index{KMdiChildFrm@{KMdi\-Child\-Frm}!setClient@{setClient}}
\index{setClient@{setClient}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::set\-Client ({\bf KMdi\-Child\-View} $\ast$ {\em w}, bool {\em b\-Automatic\-Resize} = {\tt false})}\label{classKMdiChildFrm_a2}


Reparents the widget w to this KMdi\-Child\-Frm (if this is not already done) Installs an event filter to catch focus events. 

Resizes this mdi child in a way that the child fits perfectly in.

Definition at line 726 of file kmdichildfrm.cpp.

References QObject::connect(), QWidget::focus\-Policy(), QWidget::height(), QSize::height(), KMdi\-Child\-Frm\-Caption::height\-Hint(), QDict::insert(), QString::latin1(), link\-Children(), KMdi\-Child\-Area::m\_\-default\-Child\-Frm\-Size, QWidget::minimum\-Height(), QWidget::minimum\-Size(), QWidget::minimum\-Width(), QDict::set\-Auto\-Delete(), set\-Icon(), QString::set\-Num(), KMdi\-Child\-Area::top\-Child(), QWidget::width(), and QSize::width().

Referenced by KMdi\-Main\-Frm::attach\-Window().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!unsetClient@{unsetClient}}
\index{unsetClient@{unsetClient}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::unset\-Client ({\bf QPoint} {\em position\-Offset} = {\tt {\bf QPoint}(0,~0)})}\label{classKMdiChildFrm_a3}


Reparents the client widget to 0 (desktop), moves with an offset from the original position Removes the event filter. 



Definition at line 812 of file kmdichildfrm.cpp.

References QObject::disconnect(), QDict::find(), KMdi\-Child\-View::focused\-Child\-Widget(), QWidget::focus\-Policy(), QSize::height(), QWidget::maximum\-Size(), QWidget::minimum\-Size(), QWidget::reparent(), KMdi\-Child\-View::set\-First\-Focusable\-Child\-Widget(), QWidget::set\-Focus(), QWidget::set\-Focus\-Policy(), KMdi\-Child\-View::set\-Last\-Focusable\-Child\-Widget(), KMdi\-Child\-View::set\-Maximum\-Size(), KMdi\-Child\-View::set\-Minimum\-Size(), unlink\-Children(), and QSize::width().

Referenced by KMdi\-Main\-Frm::detach\-Window().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!setIcon@{setIcon}}
\index{setIcon@{setIcon}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::set\-Icon (const {\bf QPixmap} \& {\em pxm})}\label{classKMdiChildFrm_a4}


Sets the window icon pointer. 



Definition at line 702 of file kmdichildfrm.cpp.

References QPixmap::convert\-To\-Image(), do\-Resize(), QPixmap::height(), QLabel::set\-Pixmap(), QPixmap::size(), QImage::smooth\-Scale(), and QPixmap::width().

Referenced by KMdi\-Main\-Frm::detach\-Window(), and set\-Client().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!icon@{icon}}
\index{icon@{icon}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPixmap} $\ast$ KMdi\-Child\-Frm::icon () const}\label{classKMdiChildFrm_a5}


Returns the child frame icon. 



Definition at line 720 of file kmdichildfrm.cpp.

Referenced by KMdi\-Main\-Frm::detach\-Window(), KMdi\-Child\-Frm\-Caption::paint\-Event(), redecorate\-Buttons(), and KMdi\-Main\-Frm::set\-Enable\-Maximized\-Child\-Frm\-Mode().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!enableClose@{enableClose}}
\index{enableClose@{enableClose}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::enable\-Close (bool {\em b\-Enable})}\label{classKMdiChildFrm_a6}


Enables or disables the close button. 



Definition at line 694 of file kmdichildfrm.cpp.\index{KMdiChildFrm@{KMdi\-Child\-Frm}!setCaption@{setCaption}}
\index{setCaption@{setCaption}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::set\-Caption (const {\bf QString} \& {\em text})}\label{classKMdiChildFrm_a7}


Sets the caption of this window. 



Definition at line 687 of file kmdichildfrm.cpp.

References KMdi\-Child\-Frm\-Caption::set\-Caption().

Referenced by KMdi\-Child\-View::set\-Caption(), and KMdi\-Child\-View::you\-Are\-Attached().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!caption@{caption}}
\index{caption@{caption}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KMdi\-Child\-Frm::caption ()\hspace{0.3cm}{\tt  [inline]}}\label{classKMdiChildFrm_a8}


Gets the caption of this mdi child. 



Definition at line 230 of file kmdichildfrm.h.

Referenced by KMdi\-Child\-Area::destroy\-Child(), KMdi\-Main\-Frm::detach\-Window(), and KMdi\-Child\-Area::focus\-Top\-Child().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!setState@{setState}}
\index{setState@{setState}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::set\-State (Mdi\-Window\-State {\em state}, bool {\em b\-Animate} = {\tt true})}\label{classKMdiChildFrm_a9}


Minimizes, Maximizes, or restores the window. 



Definition at line 511 of file kmdichildfrm.cpp.

References KMdi\-Child\-Area::child\-Minimized(), QObject::connect(), QObject::disconnect(), QSize::height(), QWidget::height(), KMdi\-Child\-Frm\-Caption::height\-Hint(), KMdi\-Child\-View::is\-Maximized(), QWidget::layout(), m\_\-p\-Client, KMdi\-Child\-View::m\_\-state\-Changed, QWidget::maximum\-Size(), minimize\-Pressed(), QWidget::minimum\-Height(), QWidget::minimum\-Size(), QWidget::minimum\-Width(), restore\-Pressed(), KMdi\-Child\-View::set\-Maximum\-Size(), KMdi\-Child\-View::set\-Minimum\-Size(), switch\-To\-Minimize\-Layout(), KMdi\-Child\-Area::top\-Child(), QSize::width(), QWidget::width(), QWidget::x(), and QWidget::y().

Referenced by KMdi\-Child\-Area::child\-Minimized(), KMdi\-Child\-Area::destroy\-Child(), KMdi\-Child\-Area::destroy\-Child\-But\-Not\-Its\-View(), KMdi\-Child\-Area::manage\-Child(), KMdi\-Child\-View::maximize(), maximize\-Pressed(), KMdi\-Child\-View::minimize(), minimize\-Pressed(), KMdi\-Child\-View::restore(), restore\-Pressed(), KMdi\-Child\-Area::set\-Top\-Child(), and undock\-Pressed().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!state@{state}}
\index{state@{state}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Mdi\-Window\-State KMdi\-Child\-Frm::state () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMdiChildFrm_a10}


Returns the current state of the window. 



Definition at line 240 of file kmdichildfrm.h.

Referenced by KMdi\-Child\-Area::cascade\-Maximized(), KMdi\-Child\-Area::cascade\-Windows(), KMdi\-Child\-Area::expand\-Horizontal(), KMdi\-Child\-Area::expand\-Vertical(), KMdi\-Child\-Area::layout\-Minimized\-Children(), KMdi\-Child\-Area::manage\-Child(), KMdi\-Child\-Area::resize\-Event(), KMdi\-Main\-Frm::set\-Enable\-Maximized\-Child\-Frm\-Mode(), KMdi\-Child\-Area::set\-Top\-Child(), system\-Menu(), KMdi\-Child\-Area::tile\-All\-Internal(), KMdi\-Child\-Area::tile\-Anodine(), and KMdi\-Child\-Area::tile\-Vertically().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!mdiAreaContentsRect@{mdiAreaContentsRect}}
\index{mdiAreaContentsRect@{mdiAreaContentsRect}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QRect} KMdi\-Child\-Frm::mdi\-Area\-Contents\-Rect () const}\label{classKMdiChildFrm_a11}


Returns the inner client area of the parent of this (which is {\bf KMdi\-Child\-Area}{\rm (p.\,\pageref{classKMdiChildArea})}). 



Definition at line 1395 of file kmdichildfrm.cpp.

References QFrame::contents\-Rect().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!restoreGeometry@{restoreGeometry}}
\index{restoreGeometry@{restoreGeometry}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QRect} KMdi\-Child\-Frm::restore\-Geometry () const}\label{classKMdiChildFrm_a12}


Returns the geometry that will be restored by calling restore(). 



Definition at line 673 of file kmdichildfrm.cpp.

Referenced by KMdi\-Child\-View::restore\-Geometry().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!setRestoreGeometry@{setRestoreGeometry}}
\index{setRestoreGeometry@{setRestoreGeometry}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::set\-Restore\-Geometry (const {\bf QRect} \& {\em new\-Rest\-Geo})}\label{classKMdiChildFrm_a13}


Sets the geometry that will be restored by calling restore(). 



Definition at line 680 of file kmdichildfrm.cpp.

Referenced by KMdi\-Main\-Frm::attach\-Window(), and KMdi\-Child\-View::set\-Restore\-Geometry().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!updateRects@{updateRects}}
\index{updateRects@{updateRects}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::update\-Rects ()\hspace{0.3cm}{\tt  [inline]}}\label{classKMdiChildFrm_a14}


Forces updating the rects of the caption and so... 

It may be useful when setting the mdi\-Caption\-Font of the Mdi\-Manager

Definition at line 261 of file kmdichildfrm.h.

References QFrame::resize\-Event().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!systemMenu@{systemMenu}}
\index{systemMenu@{systemMenu}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu} $\ast$ KMdi\-Child\-Frm::system\-Menu () const}\label{classKMdiChildFrm_a15}


Returns the system menu. 



Definition at line 1228 of file kmdichildfrm.cpp.

References QPopup\-Menu::clear(), close\-Pressed(), QPopup\-Menu::id\-At(), QPopup\-Menu::insert\-Item(), QPopup\-Menu::insert\-Separator(), m\_\-p\-System\-Menu, maximize\-Pressed(), minimize\-Pressed(), restore\-Pressed(), QPopup\-Menu::set\-Item\-Enabled(), state(), and undock\-Pressed().

Referenced by KMdi\-Child\-Frm\-Caption::mouse\-Press\-Event(), KMdi\-Main\-Frm::set\-Enable\-Maximized\-Child\-Frm\-Mode(), and show\-System\-Menu().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!captionHeight@{captionHeight}}
\index{captionHeight@{captionHeight}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KMdi\-Child\-Frm::caption\-Height () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMdiChildFrm_a16}


Returns the caption bar height. 



Definition at line 271 of file kmdichildfrm.h.

Referenced by KMdi\-Main\-Frm::attach\-Window(), do\-Resize(), KMdi\-Child\-View::set\-Maximum\-Size(), and show\-System\-Menu().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!redecorateButtons@{redecorateButtons}}
\index{redecorateButtons@{redecorateButtons}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::redecorate\-Buttons ()}\label{classKMdiChildFrm_a17}


sets new raise behavior and pixmaps of the buttons depending on the current decoration style 



Definition at line 1322 of file kmdichildfrm.cpp.

References icon(), QWidget::icon(), QTool\-Button::set\-Auto\-Raise(), and QLabel::set\-Pixmap().

Referenced by KMdi\-Child\-Frm(), and KMdi\-Main\-Frm::set\-Frame\-Decor\-Of\-Attached\-Views().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!isInDrag@{isInDrag}}
\index{isInDrag@{isInDrag}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KMdi\-Child\-Frm::is\-In\-Drag () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMdiChildFrm_a18}


returns the mouse state \char`\"{}In Drag\char`\"{} 



Definition at line 281 of file kmdichildfrm.h.\index{KMdiChildFrm@{KMdi\-Child\-Frm}!isInResize@{isInResize}}
\index{isInResize@{isInResize}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KMdi\-Child\-Frm::is\-In\-Resize () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMdiChildFrm_a19}


returns the mouse state \char`\"{}In Resize\char`\"{} 



Definition at line 286 of file kmdichildfrm.h.\index{KMdiChildFrm@{KMdi\-Child\-Frm}!raiseAndActivate@{raiseAndActivate}}
\index{raiseAndActivate@{raiseAndActivate}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::raise\-And\-Activate ()}\label{classKMdiChildFrm_a20}


Internally called from the signal focus\-In\-Event\-Occurs. 

It raises the MDI childframe to the top of all other MDI child frames and sets the focus on it.

Definition at line 1209 of file kmdichildfrm.cpp.

References KMdi\-Child\-Frm\-Caption::set\-Active(), and KMdi\-Child\-Area::set\-Top\-Child().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!setMinimumSize@{setMinimumSize}}
\index{setMinimumSize@{setMinimumSize}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::set\-Minimum\-Size (int {\em minw}, int {\em minh})\hspace{0.3cm}{\tt  [virtual]}}\label{classKMdiChildFrm_a21}


Sets the minimum size of the widget to w by h pixels. 

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.

Definition at line 1217 of file kmdichildfrm.cpp.

References QWidget::set\-Minimum\-Size().

Referenced by KMdi\-Child\-Frm(), and KMdi\-Child\-View::set\-Minimum\-Size().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!resizeEvent@{resizeEvent}}
\index{resizeEvent@{resizeEvent}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::resize\-Event ({\bf QResize\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b0}


Reimplemented from the base class. 

Resizes the captionbar, relayouts the position of the system buttons, and calls resize for its embedded {\bf KMdi\-Child\-View}{\rm (p.\,\pageref{classKMdiChildView})} with the proper size

Reimplemented from {\bf QFrame}.

Definition at line 982 of file kmdichildfrm.cpp.

References do\-Resize().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!mouseMoveEvent@{mouseMoveEvent}}
\index{mouseMoveEvent@{mouseMoveEvent}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::mouse\-Move\-Event ({\bf QMouse\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b1}


Reimplemented from the base class. 

Detects if the mouse is on the edge of window and what resize cursor must be set. Calls {\bf KMdi\-Child\-Frm::resize\-Window}{\rm (p.\,\pageref{classKMdiChildFrm_b7})} if it is in m\_\-b\-Resizing.

Definition at line 273 of file kmdichildfrm.cpp.

References get\-Resize\-Corner(), QWidget::maximum\-Size(), QWidget::minimum\-Size(), resize\-Window(), set\-Resize\-Cursor(), QPoint::x(), and QPoint::y().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!mousePressEvent@{mousePressEvent}}
\index{mousePressEvent@{mousePressEvent}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::mouse\-Press\-Event ({\bf QMouse\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b2}


Reimplemented from the base class. 

Colours the caption, raises the childfrm widget and turns to resize mode if it is on the edge (resize-sensitive area)

Definition at line 183 of file kmdichildfrm.cpp.

References get\-Resize\-Corner(), QApplication::restore\-Override\-Cursor(), QApplication::send\-Event(), KMdi\-Child\-Frm\-Caption::set\-Active(), and KMdi\-Child\-Area::set\-Top\-Child().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!mouseReleaseEvent@{mouseReleaseEvent}}
\index{mouseReleaseEvent@{mouseReleaseEvent}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::mouse\-Release\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b3}


Reimplemented from the base class. 

Sets a normal cursor and leaves the resize mode.

Definition at line 210 of file kmdichildfrm.cpp.

References QApplication::restore\-Override\-Cursor(), and QApplication::send\-Event().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!moveEvent@{moveEvent}}
\index{moveEvent@{moveEvent}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::move\-Event ({\bf QMove\-Event} $\ast$ {\em me})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b4}


Reimplemented from the base class. 

give its child view the chance to notify a childframe move... that's why it sends a KMdi\-Child\-Moved\-Event to the embedded {\bf KMdi\-Child\-View}{\rm (p.\,\pageref{classKMdiChildView})} .

Definition at line 304 of file kmdichildfrm.cpp.

References QApplication::send\-Event().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!leaveEvent@{leaveEvent}}
\index{leaveEvent@{leaveEvent}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::leave\-Event ({\bf QEvent} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b5}


Reimplemented from the base class. 

If not in resize mode, it sets the mouse cursor to normal appearance.

Definition at line 314 of file kmdichildfrm.cpp.

References unset\-Resize\-Cursor().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!eventFilter@{eventFilter}}
\index{eventFilter@{eventFilter}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KMdi\-Child\-Frm::event\-Filter ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b6}


Reimplemented from the base class. 

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

Definition at line 1077 of file kmdichildfrm.cpp.

References close\-Pressed(), QApplication::double\-Click\-Interval(), QWidget::focus\-Policy(), QObject::install\-Event\-Filter(), QObject::parent(), QObject::query\-List(), QApplication::send\-Event(), QWidget::set\-Focus(), show\-System\-Menu(), QResize\-Event::size(), and unset\-Resize\-Cursor().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!resizeWindow@{resizeWindow}}
\index{resizeWindow@{resizeWindow}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::resize\-Window (int {\em resize\-Corner}, int {\em x}, int {\em y})\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b7}


Calculates the new geometry from the new mouse position given as parameters and calls KMdi\-Child\-Frm::set\-Geometry. 



Definition at line 319 of file kmdichildfrm.cpp.

References QRect::bottom(), QRect::height(), QWidget::height(), KMdi\-Child\-Frm\-Caption::height\-Hint(), QRect::left(), QWidget::maximum\-Size(), QWidget::minimum\-Size(), QRect::right(), QRect::set\-Bottom(), QRect::set\-Left(), QRect::set\-Right(), QRect::set\-Top(), QRect::top(), QRect::width(), QWidget::width(), QPoint::x(), and QPoint::y().

Referenced by mouse\-Move\-Event().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!setResizeCursor@{setResizeCursor}}
\index{setResizeCursor@{setResizeCursor}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::set\-Resize\-Cursor (int {\em resize\-Corner})\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b8}


Override the cursor appearance depending on the widget corner given as parameter. 



Definition at line 227 of file kmdichildfrm.cpp.

References QApplication::restore\-Override\-Cursor(), and QApplication::set\-Override\-Cursor().

Referenced by mouse\-Move\-Event().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!unsetResizeCursor@{unsetResizeCursor}}
\index{unsetResizeCursor@{unsetResizeCursor}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::unset\-Resize\-Cursor ()\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b9}


Changes from the resize cursor to the normal (previous) cursor. 



Definition at line 260 of file kmdichildfrm.cpp.

References QApplication::restore\-Override\-Cursor().

Referenced by event\-Filter(), and leave\-Event().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!switchToMinimizeLayout@{switchToMinimizeLayout}}
\index{switchToMinimizeLayout@{switchToMinimizeLayout}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::switch\-To\-Minimize\-Layout ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrm_b10}


That means to show a mini window showing the childframe's caption bar, only. 

It cannot be resized.

Definition at line 1295 of file kmdichildfrm.cpp.

References QObject::connect(), QObject::disconnect(), QWidget::height(), KMdi\-Child\-Area::layout\-Minimized\-Children(), minimize\-Pressed(), and restore\-Pressed().

Referenced by set\-State().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!doResize@{doResize}}
\index{doResize@{doResize}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::do\-Resize ()\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b11}


Does the actual resize. 

Called from various places but from resize\-Event in general.

Definition at line 987 of file kmdichildfrm.cpp.

Referenced by resize\-Event(), and set\-Icon().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!doResize@{doResize}}
\index{doResize@{doResize}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::do\-Resize (bool {\em caption\-Only})\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b12}


Does the actual resize, like {\bf do\-Resize()}{\rm (p.\,\pageref{classKMdiChildFrm_b11})} but skips resize of the client if {\em caption\-Only\/} is true. 



Definition at line 992 of file kmdichildfrm.cpp.

References caption\-Height(), QSize::height(), KMdi\-Child\-Frm\-Caption::height\-Hint(), QLabel::pixmap(), QWidget::set\-Geometry(), QWidget::size(), and QSize::width().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!maximizePressed@{maximizePressed}}
\index{maximizePressed@{maximizePressed}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::maximize\-Pressed ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKMdiChildFrm_j0}


Handles a click on the Maximize button. 



Definition at line 442 of file kmdichildfrm.cpp.

References KMdi\-Child\-Area::now\-Maximized(), and set\-State().

Referenced by KMdi\-Child\-Frm(), KMdi\-Child\-Frm\-Caption::mouse\-Double\-Click\-Event(), and system\-Menu().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!restorePressed@{restorePressed}}
\index{restorePressed@{restorePressed}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::restore\-Pressed ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKMdiChildFrm_j1}


Handles a click on the Restore (Normalize) button. 



Definition at line 458 of file kmdichildfrm.cpp.

References KMdi\-Child\-Area::now\-Maximized(), and set\-State().

Referenced by KMdi\-Child\-Area::cascade\-Maximized(), KMdi\-Child\-Area::cascade\-Windows(), KMdi\-Child\-Area::expand\-Horizontal(), KMdi\-Child\-Area::expand\-Vertical(), set\-State(), switch\-To\-Minimize\-Layout(), system\-Menu(), KMdi\-Child\-Area::tile\-All\-Internal(), KMdi\-Child\-Area::tile\-Anodine(), and KMdi\-Child\-Area::tile\-Vertically().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!minimizePressed@{minimizePressed}}
\index{minimizePressed@{minimizePressed}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::minimize\-Pressed ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKMdiChildFrm_j2}


Handles a click on the Minimize button. 



Definition at line 471 of file kmdichildfrm.cpp.

References KMdi\-Child\-Area::now\-Maximized(), and set\-State().

Referenced by KMdi\-Child\-Frm(), set\-State(), switch\-To\-Minimize\-Layout(), and system\-Menu().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!closePressed@{closePressed}}
\index{closePressed@{closePressed}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::close\-Pressed ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKMdiChildFrm_j3}


Handles a click on the Close button. 



Definition at line 491 of file kmdichildfrm.cpp.

References QWidget::close().

Referenced by event\-Filter(), KMdi\-Child\-Frm(), and system\-Menu().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!undockPressed@{undockPressed}}
\index{undockPressed@{undockPressed}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::undock\-Pressed ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKMdiChildFrm_j4}


Handles a click on the Undock (Detach) button. 



Definition at line 499 of file kmdichildfrm.cpp.

References KMdi\-Child\-View::detach(), and set\-State().

Referenced by KMdi\-Child\-Frm(), and system\-Menu().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!showSystemMenu@{showSystemMenu}}
\index{showSystemMenu@{showSystemMenu}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::show\-System\-Menu ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKMdiChildFrm_j5}


Shows a system menu for child frame windows. 



Definition at line 1278 of file kmdichildfrm.cpp.

References caption\-Height(), QPopup\-Menu::popup(), system\-Menu(), QRect::x(), and QRect::y().

Referenced by event\-Filter().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!linkChildren@{linkChildren}}
\index{linkChildren@{linkChildren}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm::link\-Children ({\bf QDict}$<$ Focus\-Policy $>$ $\ast$ {\em p\-Foc\-Pol\-Dict})\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b13}


Restore the focus policies for \_\-all\_\- widgets in the view using the list given as parameter. 

Install the event filter for all direct child widgets of this. (See {\bf KMdi\-Child\-Frm::event\-Filter}{\rm (p.\,\pageref{classKMdiChildFrm_b6})})

Definition at line 887 of file kmdichildfrm.cpp.

References QWidget::set\-Focus\-Policy().

Referenced by set\-Client().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!unlinkChildren@{unlinkChildren}}
\index{unlinkChildren@{unlinkChildren}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QDict}$<$ QWidget::Focus\-Policy $>$ $\ast$ KMdi\-Child\-Frm::unlink\-Children ()\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b14}


Backups all focus policies of \_\-all\_\- child widgets in the MDI childview since they get lost during a reparent. 

Remove all event filters for all direct child widgets of this. (See {\bf KMdi\-Child\-Frm::event\-Filter}{\rm (p.\,\pageref{classKMdiChildFrm_b6})})

Definition at line 933 of file kmdichildfrm.cpp.

References QWidget::focus\-Policy(), QDict::insert(), QString::latin1(), QDict::set\-Auto\-Delete(), and QString::set\-Num().

Referenced by unset\-Client().\index{KMdiChildFrm@{KMdi\-Child\-Frm}!getResizeCorner@{getResizeCorner}}
\index{getResizeCorner@{getResizeCorner}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KMdi\-Child\-Frm::get\-Resize\-Corner (int {\em ax}, int {\em ay})\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_b15}


Calculates the corner id for the resize cursor. 

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.

Definition at line 418 of file kmdichildfrm.cpp.

References QWidget::maximum\-Height(), QWidget::maximum\-Width(), QWidget::minimum\-Height(), and QWidget::minimum\-Width().

Referenced by mouse\-Move\-Event(), and mouse\-Press\-Event().

\subsection{Member Data Documentation}
\index{KMdiChildFrm@{KMdi\-Child\-Frm}!m_windowMenuID@{m\_\-windowMenuID}}
\index{m_windowMenuID@{m\_\-windowMenuID}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf KMdi\-Child\-Frm::m\_\-window\-Menu\-ID}\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_p20}


Every child frame window has an temporary ID in the Window menu of the child area. 



Definition at line 168 of file kmdichildfrm.h.\index{KMdiChildFrm@{KMdi\-Child\-Frm}!m_pSystemMenu@{m\_\-pSystemMenu}}
\index{m_pSystemMenu@{m\_\-pSystemMenu}!KMdiChildFrm@{KMdi\-Child\-Frm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu}$\ast$ {\bf KMdi\-Child\-Frm::m\_\-p\-System\-Menu}\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrm_p21}


Imitates a system menu for child frame windows. 



Definition at line 173 of file kmdichildfrm.h.

Referenced by KMdi\-Child\-Frm(), system\-Menu(), and $\sim$KMdi\-Child\-Frm().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kmdichildfrm.h\item 
kmdichildfrm.cpp\end{CompactItemize}
