#include <tdemdichildfrmcaption.h>

Public Slots | |
void | slot_moveViaSystemMenu () |
Public Member Functions | |
KMdiChildFrmCaption (KMdiChildFrm *parent) | |
~KMdiChildFrmCaption () | |
void | setActive (bool bActive) |
void | setCaption (const TQString &text) |
int | heightHint () |
Public Attributes | |
TQString | m_szCaption |
Protected Member Functions | |
virtual void | paintEvent (TQPaintEvent *e) |
virtual void | mousePressEvent (TQMouseEvent *) |
virtual void | mouseDoubleClickEvent (TQMouseEvent *) |
virtual void | mouseReleaseEvent (TQMouseEvent *) |
virtual void | mouseMoveEvent (TQMouseEvent *e) |
TQString | abbreviateText (TQString origStr, int maxWidth) |
Protected Attributes | |
KMdiChildFrm * | m_pParent |
bool | m_bActive |
TQPoint | 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 tdemdichildfrmcaption.h.
Constructor & Destructor Documentation
KMdiChildFrmCaption::KMdiChildFrmCaption | ( | KMdiChildFrm * | parent | ) |
Constructor.
Definition at line 68 of file tdemdichildfrmcaption.cpp.
Destructor.
Definition at line 81 of file tdemdichildfrmcaption.cpp.
Member Function Documentation
TQString KMdiChildFrmCaption::abbreviateText | ( | TQString | origStr, |
int | maxWidth | ||
) | [protected] |
Computes a new abbreviated string from a given string depending on a given maximum width.
- Todo:
- Replace with a call to a KStringHandler function instead of rolling our own
Definition at line 261 of file tdemdichildfrmcaption.cpp.
int KMdiChildFrmCaption::heightHint | ( | ) |
Returns the caption bar height depending on the used font.
Definition at line 198 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::mouseDoubleClickEvent | ( | TQMouseEvent * | ) | [protected, virtual] |
Calls maximizePressed of the parent widget ( KMdiChildFrm )
Reimplemented from TQWidget.
Definition at line 303 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::mouseMoveEvent | ( | TQMouseEvent * | e | ) | [protected, virtual] |
Checks if out of move range of the KMdiChildArea and calls KMdiChildFrm::move.
Reimplemented from TQWidget.
Definition at line 131 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::mousePressEvent | ( | TQMouseEvent * | e | ) | [protected, virtual] |
The same as KMdiChildFrmCaption::slot_moveViaSystemMenu.
Reimplemented from TQWidget.
Definition at line 86 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::mouseReleaseEvent | ( | TQMouseEvent * | e | ) | [protected, virtual] |
Restore the normal mouse cursor, set the state variable back to 'not moving'.
Reimplemented from TQWidget.
Definition at line 106 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::paintEvent | ( | TQPaintEvent * | e | ) | [protected, virtual] |
Draws the caption bar and its title using the settings.
Reimplemented from TQWidget.
Definition at line 227 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::setActive | ( | bool | bActive | ) |
Repaint the caption bar in active background colors.
Definition at line 171 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::setCaption | ( | const TQString & | text | ) |
Repaint with a new caption bar title.
Reimplemented from TQWidget.
Definition at line 190 of file tdemdichildfrmcaption.cpp.
void KMdiChildFrmCaption::slot_moveViaSystemMenu | ( | ) | [slot] |
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 tdemdichildfrmcaption.cpp.
Member Data Documentation
bool KMdiChildFrmCaption::m_bActive [protected] |
state variable indicating whether activated or not activated
Definition at line 127 of file tdemdichildfrmcaption.h.
bool KMdiChildFrmCaption::m_bChildInDrag [protected] |
True if the child knows that it is currently being dragged.
Definition at line 137 of file tdemdichildfrmcaption.h.
TQPoint KMdiChildFrmCaption::m_offset [protected] |
the position offset related to its parent widget (internally used for translating mouse move positions
Definition at line 132 of file tdemdichildfrmcaption.h.
KMdiChildFrm* KMdiChildFrmCaption::m_pParent [protected] |
parent widget
Definition at line 122 of file tdemdichildfrmcaption.h.
the title string shown in the caption bar
Definition at line 116 of file tdemdichildfrmcaption.h.
The documentation for this class was generated from the following files: