KMdiChildFrmCaption Class Reference
Internal class. More...
#include <kmdichildfrmcaption.h>
Inheritance diagram for KMdiChildFrmCaption:

Public Slots | |
void | slot_moveViaSystemMenu () |
Public Member Functions | |
KMdiChildFrmCaption (KMdiChildFrm *parent) | |
~KMdiChildFrmCaption () | |
void | setActive (bool bActive) |
void | setCaption (const QString &text) |
int | heightHint () |
Public Attributes | |
QString | m_szCaption |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *e) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
QString | abbreviateText (QString origStr, int maxWidth) |
Protected Attributes | |
KMdiChildFrm * | m_pParent |
bool | m_bActive |
QPoint | m_offset |
bool | m_bChildInDrag |
Detailed Description
Internal class.It's the caption bar of a child frame widget.
Definition at line 44 of file kmdichildfrmcaption.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 52 of file kmdichildfrmcaption.cpp. References m_bActive, m_bChildInDrag, m_pParent, and m_szCaption. |
|
Destructor.
Definition at line 65 of file kmdichildfrmcaption.cpp. |
Member Function Documentation
|
Repaint the caption bar in active background colors.
Definition at line 145 of file kmdichildfrmcaption.cpp. References m_bActive, KMdiChildArea::m_captionActiveBackColor, KMdiChildArea::m_captionInactiveBackColor, KMdiChildFrm::m_pManager, m_pParent, KMdiChildFrm::m_pUnixIcon, and KMdiChildFrm::m_pWinIcon. Referenced by KMdiChildArea::focusTopChild(), KMdiChildFrm::mousePressEvent(), KMdiChildFrm::raiseAndActivate(), and KMdiChildArea::setTopChild(). |
|
Repaint with a new caption bar title.
Definition at line 164 of file kmdichildfrmcaption.cpp. References m_szCaption. Referenced by KMdiChildFrm::setCaption(). |
|
Returns the caption bar height depending on the used font.
Definition at line 172 of file kmdichildfrmcaption.cpp. References KMdiMainFrm::frameDecorOfAttachedViews(), KMdiChildArea::m_captionFontLineSpacing, KMdiChildFrm::m_pManager, and m_pParent. Referenced by KMdiChildFrm::doResize(), KMdiChildFrm::eventFilter(), KMdiChildArea::getCascadePoint(), KMdiChildFrm::KMdiChildFrm(), KMdiChildArea::resizeEvent(), KMdiChildFrm::resizeWindow(), KMdiChildFrm::setClient(), and KMdiChildFrm::setState(). |
|
Grabs the mouse, a move cursor, sets a move indicator variable to true and keeps the global mouse position in mind.
Definition at line 268 of file kmdichildfrmcaption.cpp. References KMdiMainFrm::frameDecorOfAttachedViews(), KMdiChildFrm::m_bDragging, m_offset, and m_pParent. |
|
Draws the caption bar and its title using the settings.
Definition at line 193 of file kmdichildfrmcaption.cpp. References abbreviateText(), KMdiMainFrm::frameDecorOfAttachedViews(), KMdiChildFrm::icon(), 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, and m_szCaption. |
|
The same as KMdiChildFrmCaption::slot_moveViaSystemMenu.
Definition at line 71 of file kmdichildfrmcaption.cpp. References KMdiMainFrm::frameDecorOfAttachedViews(), KMdiChildFrm::m_bDragging, m_offset, m_pParent, and KMdiChildFrm::systemMenu(). |
|
Calls maximizePressed of the parent widget ( KMdiChildFrm ).
Definition at line 261 of file kmdichildfrmcaption.cpp. References m_pParent, and KMdiChildFrm::maximizePressed(). |
|
Restore the normal mouse cursor, set the state variable back to 'not moving'.
Definition at line 88 of file kmdichildfrmcaption.cpp. References KMdiMainFrm::frameDecorOfAttachedViews(), m_bChildInDrag, KMdiChildFrm::m_bDragging, KMdiChildFrm::m_pClient, and m_pParent. |
|
Checks if out of move range of the KMdiChildArea and calls KMdiChildFrm::move.
Definition at line 109 of file kmdichildfrmcaption.cpp. References m_bChildInDrag, KMdiChildFrm::m_bDragging, m_offset, KMdiChildFrm::m_pClient, KMdiChildFrm::m_pManager, and m_pParent. |
|
Computes a new abbreviated string from a given string depending on a given maximum width.
Definition at line 223 of file kmdichildfrmcaption.cpp. Referenced by paintEvent(). |
Member Data Documentation
|
the title string shown in the caption bar
Definition at line 106 of file kmdichildfrmcaption.h. Referenced by KMdiChildFrm::caption(), KMdiChildFrmCaption(), paintEvent(), and setCaption(). |
|
parent widget
Definition at line 112 of file kmdichildfrmcaption.h. Referenced by heightHint(), KMdiChildFrmCaption(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), paintEvent(), setActive(), and slot_moveViaSystemMenu(). |
|
state variable indicating whether activated or not activated
Definition at line 116 of file kmdichildfrmcaption.h. Referenced by KMdiChildFrmCaption(), paintEvent(), and setActive(). |
|
the position offset related to its parent widget (internally used for translating mouse move positions
Definition at line 120 of file kmdichildfrmcaption.h. Referenced by mouseMoveEvent(), mousePressEvent(), and slot_moveViaSystemMenu(). |
|
True if the child knows that it is currently being dragged.
Definition at line 124 of file kmdichildfrmcaption.h. Referenced by KMdiChildFrmCaption(), mouseMoveEvent(), and mouseReleaseEvent(). |
The documentation for this class was generated from the following files: