\section{KMdi\-Child\-Frm\-Caption Class Reference}
\label{classKMdiChildFrmCaption}\index{KMdiChildFrmCaption@{KMdiChildFrmCaption}}
Internal class.  


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

Inheritance diagram for KMdi\-Child\-Frm\-Caption:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=75pt]{classKMdiChildFrmCaption__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMdi\-Child\-Frm\-Caption:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=133pt]{classKMdiChildFrmCaption__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf slot\_\-move\-Via\-System\-Menu} ()
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KMdi\-Child\-Frm\-Caption} ({\bf KMdi\-Child\-Frm} $\ast$parent)
\item 
{\bf $\sim$KMdi\-Child\-Frm\-Caption} ()
\item 
void {\bf set\-Active} (bool b\-Active)
\item 
void {\bf set\-Caption} (const {\bf QString} \&text)
\item 
int {\bf height\-Hint} ()
\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
{\bf QString} {\bf m\_\-sz\-Caption}
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf paint\-Event} ({\bf QPaint\-Event} $\ast$e)
\item 
virtual void {\bf mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
virtual void {\bf mouse\-Double\-Click\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
virtual void {\bf mouse\-Release\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
virtual void {\bf mouse\-Move\-Event} ({\bf QMouse\-Event} $\ast$e)
\item 
{\bf QString} {\bf abbreviate\-Text} ({\bf QString} orig\-Str, int max\-Width)
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KMdi\-Child\-Frm} $\ast$ {\bf m\_\-p\-Parent}
\item 
bool {\bf m\_\-b\-Active}
\item 
{\bf QPoint} {\bf m\_\-offset}
\item 
bool {\bf m\_\-b\-Child\-In\-Drag}
\end{CompactItemize}


\subsection{Detailed Description}
Internal class. 

It's the caption bar of a child frame widget. 



Definition at line 44 of file kmdichildfrmcaption.h.

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


Constructor. 



Definition at line 68 of file kmdichildfrmcaption.cpp.

References m\_\-b\-Active, m\_\-b\-Child\-In\-Drag, m\_\-p\-Parent, m\_\-sz\-Caption, QWidget::set\-Background\-Mode(), and QWidget::set\-Focus\-Policy().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!~KMdiChildFrmCaption@{$\sim$KMdiChildFrmCaption}}
\index{~KMdiChildFrmCaption@{$\sim$KMdiChildFrmCaption}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMdi\-Child\-Frm\-Caption::$\sim${\bf KMdi\-Child\-Frm\-Caption} ()}\label{classKMdiChildFrmCaption_a1}


Destructor. 



Definition at line 81 of file kmdichildfrmcaption.cpp.

\subsection{Member Function Documentation}
\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!setActive@{setActive}}
\index{setActive@{setActive}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::set\-Active (bool {\em b\-Active})}\label{classKMdiChildFrmCaption_a2}


Repaint the caption bar in active background colors. 



Definition at line 171 of file kmdichildfrmcaption.cpp.

References m\_\-b\-Active, KMdi\-Child\-Area::m\_\-caption\-Active\-Back\-Color, KMdi\-Child\-Area::m\_\-caption\-Inactive\-Back\-Color, KMdi\-Child\-Frm::m\_\-p\-Manager, m\_\-p\-Parent, KMdi\-Child\-Frm::m\_\-p\-Unix\-Icon, KMdi\-Child\-Frm::m\_\-p\-Win\-Icon, and QWidget::repaint().

Referenced by KMdi\-Child\-Area::focus\-Top\-Child(), KMdi\-Child\-Frm::mouse\-Press\-Event(), and KMdi\-Child\-Frm::raise\-And\-Activate().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!setCaption@{setCaption}}
\index{setCaption@{setCaption}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::set\-Caption (const {\bf QString} \& {\em text})}\label{classKMdiChildFrmCaption_a3}


Repaint with a new caption bar title. 



Reimplemented from {\bf QWidget}.

Definition at line 190 of file kmdichildfrmcaption.cpp.

References m\_\-sz\-Caption, and QWidget::repaint().

Referenced by KMdi\-Child\-Frm::set\-Caption().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!heightHint@{heightHint}}
\index{heightHint@{heightHint}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KMdi\-Child\-Frm\-Caption::height\-Hint ()}\label{classKMdiChildFrmCaption_a4}


Returns the caption bar height depending on the used font. 



Definition at line 198 of file kmdichildfrmcaption.cpp.

References KMdi\-Child\-Area::m\_\-caption\-Font\-Line\-Spacing, KMdi\-Child\-Frm::m\_\-p\-Manager, and m\_\-p\-Parent.

Referenced by KMdi\-Child\-Frm::do\-Resize(), KMdi\-Child\-Area::get\-Cascade\-Point(), KMdi\-Child\-Frm::KMdi\-Child\-Frm(), KMdi\-Child\-Area::resize\-Event(), KMdi\-Child\-Frm::resize\-Window(), KMdi\-Child\-Frm::set\-Client(), and KMdi\-Child\-Frm::set\-State().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!slot_moveViaSystemMenu@{slot\_\-moveViaSystemMenu}}
\index{slot_moveViaSystemMenu@{slot\_\-moveViaSystemMenu}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::slot\_\-move\-Via\-System\-Menu ()\hspace{0.3cm}{\tt  [slot]}}\label{classKMdiChildFrmCaption_i0}


Grabs the mouse, a move cursor, sets a move indicator variable to true and keeps the global mouse position in mind. 



Definition at line 310 of file kmdichildfrmcaption.cpp.

References QWidget::grab\-Mouse(), KMdi\-Child\-Frm::m\_\-b\-Dragging, m\_\-offset, m\_\-p\-Parent, QWidget::map\-From\-Global(), QWidget::set\-Mouse\-Tracking(), and QApplication::set\-Override\-Cursor().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!paintEvent@{paintEvent}}
\index{paintEvent@{paintEvent}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::paint\-Event ({\bf QPaint\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrmCaption_b0}


Draws the caption bar and its title using the settings. 



Reimplemented from {\bf QWidget}.

Definition at line 227 of file kmdichildfrmcaption.cpp.

References abbreviate\-Text(), QPainter::draw\-Text(), QPainter::fill\-Rect(), KMdi\-Child\-Frm::icon(), QRect::left(), m\_\-b\-Active, KMdi\-Child\-Area::m\_\-caption\-Active\-Back\-Color, KMdi\-Child\-Area::m\_\-caption\-Active\-Fore\-Color, KMdi\-Child\-Area::m\_\-caption\-Font, KMdi\-Child\-Area::m\_\-caption\-Inactive\-Back\-Color, KMdi\-Child\-Area::m\_\-caption\-Inactive\-Fore\-Color, KMdi\-Child\-Frm::m\_\-p\-Close, KMdi\-Child\-Frm::m\_\-p\-Manager, m\_\-p\-Parent, m\_\-sz\-Caption, QWidget::rect(), QPainter::set\-Font(), QRect::set\-Left(), QPainter::set\-Pen(), QWidget::width(), and QPixmap::width().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!mousePressEvent@{mousePressEvent}}
\index{mousePressEvent@{mousePressEvent}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::mouse\-Press\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrmCaption_b1}


The same as {\bf KMdi\-Child\-Frm\-Caption::slot\_\-move\-Via\-System\-Menu}{\rm (p.\,\pageref{classKMdiChildFrmCaption_i0})}. 



Reimplemented from {\bf QWidget}.

Definition at line 86 of file kmdichildfrmcaption.cpp.

References KMdi\-Child\-Frm::m\_\-b\-Dragging, m\_\-offset, m\_\-p\-Parent, QWidget::map\-To\-Global(), QWidget::map\-To\-Parent(), QPopup\-Menu::popup(), QWidget::set\-Mouse\-Tracking(), QApplication::set\-Override\-Cursor(), and KMdi\-Child\-Frm::system\-Menu().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!mouseDoubleClickEvent@{mouseDoubleClickEvent}}
\index{mouseDoubleClickEvent@{mouseDoubleClickEvent}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::mouse\-Double\-Click\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrmCaption_b2}


Calls maximize\-Pressed of the parent widget ( {\bf KMdi\-Child\-Frm}{\rm (p.\,\pageref{classKMdiChildFrm})} ). 



Reimplemented from {\bf QWidget}.

Definition at line 303 of file kmdichildfrmcaption.cpp.

References m\_\-p\-Parent, and KMdi\-Child\-Frm::maximize\-Pressed().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!mouseReleaseEvent@{mouseReleaseEvent}}
\index{mouseReleaseEvent@{mouseReleaseEvent}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::mouse\-Release\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrmCaption_b3}


Restore the normal mouse cursor, set the state variable back to 'not moving'. 



Reimplemented from {\bf QWidget}.

Definition at line 106 of file kmdichildfrmcaption.cpp.

References m\_\-b\-Child\-In\-Drag, KMdi\-Child\-Frm::m\_\-b\-Dragging, KMdi\-Child\-Frm::m\_\-p\-Client, m\_\-p\-Parent, QWidget::release\-Mouse(), QApplication::restore\-Override\-Cursor(), and QApplication::send\-Event().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!mouseMoveEvent@{mouseMoveEvent}}
\index{mouseMoveEvent@{mouseMoveEvent}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KMdi\-Child\-Frm\-Caption::mouse\-Move\-Event ({\bf QMouse\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKMdiChildFrmCaption_b4}


Checks if out of move range of the {\bf KMdi\-Child\-Area}{\rm (p.\,\pageref{classKMdiChildArea})} and calls KMdi\-Child\-Frm::move. 



Reimplemented from {\bf QWidget}.

Definition at line 131 of file kmdichildfrmcaption.cpp.

References m\_\-b\-Child\-In\-Drag, KMdi\-Child\-Frm::m\_\-b\-Dragging, m\_\-offset, KMdi\-Child\-Frm::m\_\-p\-Client, KMdi\-Child\-Frm::m\_\-p\-Manager, m\_\-p\-Parent, QWidget::parent\-Widget(), QPoint::rx(), QPoint::ry(), QApplication::send\-Event(), QPoint::x(), and QPoint::y().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!abbreviateText@{abbreviateText}}
\index{abbreviateText@{abbreviateText}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMdi\-Child\-Frm\-Caption::abbreviate\-Text ({\bf QString} {\em orig\-Str}, int {\em max\-Width})\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrmCaption_b5}


Computes a new abbreviated string from a given string depending on a given maximum width  Replace with a call to a KString\-Handler function instead of rolling our own. 



Definition at line 261 of file kmdichildfrmcaption.cpp.

References QWidget::font\-Metrics(), QString::left(), QString::length(), QString::right(), and QFont\-Metrics::width().

Referenced by paint\-Event().

\subsection{Member Data Documentation}
\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!m_szCaption@{m\_\-szCaption}}
\index{m_szCaption@{m\_\-szCaption}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} {\bf KMdi\-Child\-Frm\-Caption::m\_\-sz\-Caption}}\label{classKMdiChildFrmCaption_o0}


the title string shown in the caption bar 



Definition at line 116 of file kmdichildfrmcaption.h.

Referenced by KMdi\-Child\-Frm\-Caption(), paint\-Event(), and set\-Caption().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!m_pParent@{m\_\-pParent}}
\index{m_pParent@{m\_\-pParent}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KMdi\-Child\-Frm}$\ast$ {\bf KMdi\-Child\-Frm\-Caption::m\_\-p\-Parent}\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrmCaption_p0}


parent widget 



Definition at line 122 of file kmdichildfrmcaption.h.

Referenced by height\-Hint(), KMdi\-Child\-Frm\-Caption(), mouse\-Double\-Click\-Event(), mouse\-Move\-Event(), mouse\-Press\-Event(), mouse\-Release\-Event(), paint\-Event(), set\-Active(), and slot\_\-move\-Via\-System\-Menu().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!m_bActive@{m\_\-bActive}}
\index{m_bActive@{m\_\-bActive}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool {\bf KMdi\-Child\-Frm\-Caption::m\_\-b\-Active}\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrmCaption_p1}


state variable indicating whether activated or not activated 



Definition at line 127 of file kmdichildfrmcaption.h.

Referenced by KMdi\-Child\-Frm\-Caption(), paint\-Event(), and set\-Active().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!m_offset@{m\_\-offset}}
\index{m_offset@{m\_\-offset}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPoint} {\bf KMdi\-Child\-Frm\-Caption::m\_\-offset}\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrmCaption_p2}


the position offset related to its parent widget (internally used for translating mouse move positions 



Definition at line 132 of file kmdichildfrmcaption.h.

Referenced by mouse\-Move\-Event(), mouse\-Press\-Event(), and slot\_\-move\-Via\-System\-Menu().\index{KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}!m_bChildInDrag@{m\_\-bChildInDrag}}
\index{m_bChildInDrag@{m\_\-bChildInDrag}!KMdiChildFrmCaption@{KMdi\-Child\-Frm\-Caption}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool {\bf KMdi\-Child\-Frm\-Caption::m\_\-b\-Child\-In\-Drag}\hspace{0.3cm}{\tt  [protected]}}\label{classKMdiChildFrmCaption_p3}


True if the child knows that it is currently being dragged. 



Definition at line 137 of file kmdichildfrmcaption.h.

Referenced by KMdi\-Child\-Frm\-Caption(), mouse\-Move\-Event(), and mouse\-Release\-Event().

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