class QextMdiChildFrmCaption

# class QextMdiChildFrmCaption | Internal class. More...
Definition | `#include <include/qextmdichildfrmcaption.h>`
Inherits | QWidget (unknown) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- QextMdiChildFrmCaption (QextMdiChildFrm *parent)
- ~QextMdiChildFrmCaption ()
- void setActive (bool bActive)
- void setCaption (const QString& text)
- int heightHint ()

#### Public Slots

- void slot_moveViaSystemMenu ()

#### Public Members

- QString m_szCaption

#### Protected Methods

- 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 Members

- QextMdiChildFrm *m_pParent
- bool m_bActive
- QPoint m_offset
- bool m_bChildInDrag

## Detailed Description

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

QextMdiChildFrmCaption (QextMdiChildFrm *parent) | ### QextMdiChildFrmCaption

Constructor

~QextMdiChildFrmCaption () | ### ~QextMdiChildFrmCaption

Destructor

void setActive (bool bActive) | ### setActive

Repaint the caption bar in active background colours

void setCaption (const QString& text) | ### setCaption

Repaint with a new caption bar title

int heightHint () | ### heightHint

Returns the caption bar height depending on the used font

void slot_moveViaSystemMenu () | ### slot_moveViaSystemMenu

[slot]

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

void paintEvent (QPaintEvent *e) | ### paintEvent

[protected virtual]

Draws the caption bar and its title using the settings

void mousePressEvent (QMouseEvent *) | ### mousePressEvent

[protected virtual]

The same as QextMdiChildFrmCaption::slot_moveViaSystemMenu

void mouseDoubleClickEvent (QMouseEvent *) | ### mouseDoubleClickEvent

[protected virtual]

Calls maximizePressed of the parent widget (QextMdiChildFrm )

void mouseReleaseEvent (QMouseEvent *) | ### mouseReleaseEvent

[protected virtual]

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

void mouseMoveEvent (QMouseEvent *e) | ### mouseMoveEvent

[protected virtual]

Checks if out of move range of the QextMdiChildArea and calls QextMdiChildFrm::move

QString abbreviateText (QString origStr, int maxWidth) | ### abbreviateText

[protected]

Computes a new abbreviated string from a given string depending on a given maximum width

QString m_szCaption | ### m_szCaption

QextMdiChildFrm * m_pParent | ### m_pParent

[protected]

bool m_bActive | ### m_bActive

[protected]

QPoint m_offset | ### m_offset

[protected]

bool m_bChildInDrag | ### m_bChildInDrag

[protected]

Generated by: falk on pc9 on Fri Nov 30 14:44:26 2001, using kdoc 2.0a53.