#include <tdemdichildfrmcaption.h>
Inherits TQWidget.
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::KMdiChildFrmCaption | ( | KMdiChildFrm * | parent | ) |
Constructor.
Definition at line 68 of file tdemdichildfrmcaption.cpp.
◆ ~KMdiChildFrmCaption()
KMdiChildFrmCaption::~KMdiChildFrmCaption | ( | ) |
Destructor.
Definition at line 81 of file tdemdichildfrmcaption.cpp.
Member Function Documentation
◆ abbreviateText()
|
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.
◆ heightHint()
int KMdiChildFrmCaption::heightHint | ( | ) |
Returns the caption bar height depending on the used font.
Definition at line 198 of file tdemdichildfrmcaption.cpp.
◆ mouseDoubleClickEvent()
|
protectedvirtual |
Calls maximizePressed of the parent widget ( KMdiChildFrm )
Definition at line 303 of file tdemdichildfrmcaption.cpp.
◆ mouseMoveEvent()
|
protectedvirtual |
Checks if out of move range of the KMdiChildArea and calls KMdiChildFrm::move.
Definition at line 131 of file tdemdichildfrmcaption.cpp.
◆ mousePressEvent()
|
protectedvirtual |
The same as KMdiChildFrmCaption::slot_moveViaSystemMenu.
Definition at line 86 of file tdemdichildfrmcaption.cpp.
◆ mouseReleaseEvent()
|
protectedvirtual |
Restore the normal mouse cursor, set the state variable back to 'not moving'.
Definition at line 106 of file tdemdichildfrmcaption.cpp.
◆ paintEvent()
|
protectedvirtual |
Draws the caption bar and its title using the settings.
Definition at line 227 of file tdemdichildfrmcaption.cpp.
◆ setActive()
void KMdiChildFrmCaption::setActive | ( | bool | bActive | ) |
Repaint the caption bar in active background colors.
Definition at line 171 of file tdemdichildfrmcaption.cpp.
◆ setCaption()
void KMdiChildFrmCaption::setCaption | ( | const TQString & | text | ) |
Repaint with a new caption bar title.
Definition at line 190 of file tdemdichildfrmcaption.cpp.
◆ 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
◆ m_bActive
|
protected |
state variable indicating whether activated or not activated
Definition at line 127 of file tdemdichildfrmcaption.h.
◆ m_bChildInDrag
|
protected |
True if the child knows that it is currently being dragged.
Definition at line 137 of file tdemdichildfrmcaption.h.
◆ 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.
◆ m_pParent
|
protected |
parent widget
Definition at line 122 of file tdemdichildfrmcaption.h.
◆ m_szCaption
TQString KMdiChildFrmCaption::m_szCaption |
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: