.TH "KMdiChildFrmCaption" kde3 "11 Jun 2005" "Version Version 3.4.1" "kmdi Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMdiChildFrmCaption \- Internal class.  

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

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

.in +1c
.ti -1c
.RI "\fBKMdiChildFrmCaption\fP (\fBKMdiChildFrm\fP *parent)"
.br
.ti -1c
.RI "\fB~KMdiChildFrmCaption\fP ()"
.br
.ti -1c
.RI "void \fBsetActive\fP (bool bActive)"
.br
.ti -1c
.RI "void \fBsetCaption\fP (const \fBQString\fP &text)"
.br
.ti -1c
.RI "int \fBheightHint\fP ()"
.br
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBm_szCaption\fP"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBpaintEvent\fP (\fBQPaintEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBmousePressEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBmouseDoubleClickEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBmouseReleaseEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBmouseMoveEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "\fBQString\fP \fBabbreviateText\fP (\fBQString\fP origStr, int maxWidth)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKMdiChildFrm\fP * \fBm_pParent\fP"
.br
.ti -1c
.RI "bool \fBm_bActive\fP"
.br
.ti -1c
.RI "\fBQPoint\fP \fBm_offset\fP"
.br
.ti -1c
.RI "bool \fBm_bChildInDrag\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Internal class. 

It's the caption bar of a child frame widget. 
.PP
Definition at line 44 of file kmdichildfrmcaption.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KMdiChildFrmCaption::KMdiChildFrmCaption (\fBKMdiChildFrm\fP * parent)"
.PP
Constructor. 
.PP
Definition at line 68 of file kmdichildfrmcaption.cpp.
.PP
References m_bActive, m_bChildInDrag, m_pParent, m_szCaption, QWidget::setBackgroundMode(), and QWidget::setFocusPolicy().
.SS "KMdiChildFrmCaption::~\fBKMdiChildFrmCaption\fP ()"
.PP
Destructor. 
.PP
Definition at line 81 of file kmdichildfrmcaption.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KMdiChildFrmCaption::setActive (bool bActive)"
.PP
Repaint the caption bar in active background colors. 
.PP
Definition at line 171 of file kmdichildfrmcaption.cpp.
.PP
References m_bActive, KMdiChildArea::m_captionActiveBackColor, KMdiChildArea::m_captionInactiveBackColor, KMdiChildFrm::m_pManager, m_pParent, KMdiChildFrm::m_pUnixIcon, KMdiChildFrm::m_pWinIcon, and QWidget::repaint().
.PP
Referenced by KMdiChildArea::focusTopChild(), KMdiChildFrm::mousePressEvent(), and KMdiChildFrm::raiseAndActivate().
.SS "void KMdiChildFrmCaption::setCaption (const \fBQString\fP & text)"
.PP
Repaint with a new caption bar title. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 190 of file kmdichildfrmcaption.cpp.
.PP
References m_szCaption, and QWidget::repaint().
.PP
Referenced by KMdiChildFrm::setCaption().
.SS "int KMdiChildFrmCaption::heightHint ()"
.PP
Returns the caption bar height depending on the used font. 
.PP
Definition at line 198 of file kmdichildfrmcaption.cpp.
.PP
References KMdiChildArea::m_captionFontLineSpacing, KMdiChildFrm::m_pManager, and m_pParent.
.PP
Referenced by KMdiChildFrm::doResize(), KMdiChildArea::getCascadePoint(), KMdiChildFrm::KMdiChildFrm(), KMdiChildArea::resizeEvent(), KMdiChildFrm::resizeWindow(), KMdiChildFrm::setClient(), and KMdiChildFrm::setState().
.SS "void KMdiChildFrmCaption::slot_moveViaSystemMenu ()\fC [slot]\fP"
.PP
Grabs the mouse, a move cursor, sets a move indicator variable to true and keeps the global mouse position in mind. 
.PP
Definition at line 310 of file kmdichildfrmcaption.cpp.
.PP
References QWidget::grabMouse(), KMdiChildFrm::m_bDragging, m_offset, m_pParent, QWidget::mapFromGlobal(), QWidget::setMouseTracking(), and QApplication::setOverrideCursor().
.SS "void KMdiChildFrmCaption::paintEvent (\fBQPaintEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Draws the caption bar and its title using the settings. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 227 of file kmdichildfrmcaption.cpp.
.PP
References abbreviateText(), QPainter::drawText(), QPainter::fillRect(), KMdiChildFrm::icon(), QRect::left(), m_bActive, KMdiChildArea::m_captionActiveBackColor, KMdiChildArea::m_captionActiveForeColor, KMdiChildArea::m_captionFont, KMdiChildArea::m_captionInactiveBackColor, KMdiChildArea::m_captionInactiveForeColor, KMdiChildFrm::m_pClose, KMdiChildFrm::m_pManager, m_pParent, m_szCaption, QWidget::rect(), QPainter::setFont(), QRect::setLeft(), QPainter::setPen(), QWidget::width(), and QPixmap::width().
.SS "void KMdiChildFrmCaption::mousePressEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
The same as \fBKMdiChildFrmCaption::slot_moveViaSystemMenu\fP. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 86 of file kmdichildfrmcaption.cpp.
.PP
References KMdiChildFrm::m_bDragging, m_offset, m_pParent, QWidget::mapToGlobal(), QWidget::mapToParent(), QPopupMenu::popup(), QWidget::setMouseTracking(), QApplication::setOverrideCursor(), and KMdiChildFrm::systemMenu().
.SS "void KMdiChildFrmCaption::mouseDoubleClickEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Calls maximizePressed of the parent widget ( \fBKMdiChildFrm\fP ). 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 303 of file kmdichildfrmcaption.cpp.
.PP
References m_pParent, and KMdiChildFrm::maximizePressed().
.SS "void KMdiChildFrmCaption::mouseReleaseEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Restore the normal mouse cursor, set the state variable back to 'not moving'. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 106 of file kmdichildfrmcaption.cpp.
.PP
References m_bChildInDrag, KMdiChildFrm::m_bDragging, KMdiChildFrm::m_pClient, m_pParent, QWidget::releaseMouse(), QApplication::restoreOverrideCursor(), and QApplication::sendEvent().
.SS "void KMdiChildFrmCaption::mouseMoveEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Checks if out of move range of the \fBKMdiChildArea\fP and calls KMdiChildFrm::move. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 131 of file kmdichildfrmcaption.cpp.
.PP
References m_bChildInDrag, KMdiChildFrm::m_bDragging, m_offset, KMdiChildFrm::m_pClient, KMdiChildFrm::m_pManager, m_pParent, QWidget::parentWidget(), QPoint::rx(), QPoint::ry(), QApplication::sendEvent(), QPoint::x(), and QPoint::y().
.SS "\fBQString\fP KMdiChildFrmCaption::abbreviateText (\fBQString\fP origStr, int maxWidth)\fC [protected]\fP"
.PP
Computes a new abbreviated string from a given string depending on a given maximum width  Replace with a call to a KStringHandler function instead of rolling our own. 
.PP
Definition at line 261 of file kmdichildfrmcaption.cpp.
.PP
References QWidget::fontMetrics(), QString::left(), QString::length(), QString::right(), and QFontMetrics::width().
.PP
Referenced by paintEvent().
.SH "Member Data Documentation"
.PP 
.SS "\fBQString\fP \fBKMdiChildFrmCaption::m_szCaption\fP"
.PP
the title string shown in the caption bar 
.PP
Definition at line 116 of file kmdichildfrmcaption.h.
.PP
Referenced by KMdiChildFrmCaption(), paintEvent(), and setCaption().
.SS "\fBKMdiChildFrm\fP* \fBKMdiChildFrmCaption::m_pParent\fP\fC [protected]\fP"
.PP
parent widget 
.PP
Definition at line 122 of file kmdichildfrmcaption.h.
.PP
Referenced by heightHint(), KMdiChildFrmCaption(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), paintEvent(), setActive(), and slot_moveViaSystemMenu().
.SS "bool \fBKMdiChildFrmCaption::m_bActive\fP\fC [protected]\fP"
.PP
state variable indicating whether activated or not activated 
.PP
Definition at line 127 of file kmdichildfrmcaption.h.
.PP
Referenced by KMdiChildFrmCaption(), paintEvent(), and setActive().
.SS "\fBQPoint\fP \fBKMdiChildFrmCaption::m_offset\fP\fC [protected]\fP"
.PP
the position offset related to its parent widget (internally used for translating mouse move positions 
.PP
Definition at line 132 of file kmdichildfrmcaption.h.
.PP
Referenced by mouseMoveEvent(), mousePressEvent(), and slot_moveViaSystemMenu().
.SS "bool \fBKMdiChildFrmCaption::m_bChildInDrag\fP\fC [protected]\fP"
.PP
True if the child knows that it is currently being dragged. 
.PP

.PP
Definition at line 137 of file kmdichildfrmcaption.h.
.PP
Referenced by KMdiChildFrmCaption(), mouseMoveEvent(), and mouseReleaseEvent().

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