tdemdichildfrmcaption.cpp
254 int captionWidthForText = width() - 4 * m_pParent->m_pClose->width() - m_pParent->icon() ->width() - 5;
TQColor m_captionInactiveBackColor
The foreground color of inactive MDI childframe window captions.
Definition: tdemdichildarea.h:89
TQColor m_captionActiveBackColor
The foreground color of the active MDI childframe window caption.
Definition: tdemdichildarea.h:79
TQColor m_captionInactiveForeColor
The background color of inactive MDI childframe window captions.
Definition: tdemdichildarea.h:94
TQColor m_captionActiveForeColor
The background color of the active MDI childframe window captions.
Definition: tdemdichildarea.h:84
virtual void mousePressEvent(TQMouseEvent *)
The same as KMdiChildFrmCaption::slot_moveViaSystemMenu.
Definition: tdemdichildfrmcaption.cpp:86
TQString abbreviateText(TQString origStr, int maxWidth)
Computes a new abbreviated string from a given string depending on a given maximum width.
Definition: tdemdichildfrmcaption.cpp:261
bool m_bChildInDrag
True if the child knows that it is currently being dragged.
Definition: tdemdichildfrmcaption.h:137
TQString m_szCaption
the title string shown in the caption bar
Definition: tdemdichildfrmcaption.h:116
TQPoint m_offset
the position offset related to its parent widget (internally used for translating mouse move position...
Definition: tdemdichildfrmcaption.h:132
int heightHint()
Returns the caption bar height depending on the used font.
Definition: tdemdichildfrmcaption.cpp:198
virtual void mouseReleaseEvent(TQMouseEvent *)
Restore the normal mouse cursor, set the state variable back to 'not moving'.
Definition: tdemdichildfrmcaption.cpp:106
void setCaption(const TQString &text)
Repaint with a new caption bar title.
Definition: tdemdichildfrmcaption.cpp:190
void setActive(bool bActive)
Repaint the caption bar in active background colors.
Definition: tdemdichildfrmcaption.cpp:171
virtual void mouseMoveEvent(TQMouseEvent *e)
Checks if out of move range of the KMdiChildArea and calls KMdiChildFrm::move.
Definition: tdemdichildfrmcaption.cpp:131
virtual void paintEvent(TQPaintEvent *e)
Draws the caption bar and its title using the settings.
Definition: tdemdichildfrmcaption.cpp:227
void slot_moveViaSystemMenu()
Grabs the mouse, a move cursor, sets a move indicator variable to true and keeps the global mouse pos...
Definition: tdemdichildfrmcaption.cpp:310
virtual void mouseDoubleClickEvent(TQMouseEvent *)
Calls maximizePressed of the parent widget ( KMdiChildFrm )
Definition: tdemdichildfrmcaption.cpp:303
bool m_bActive
state variable indicating whether activated or not activated
Definition: tdemdichildfrmcaption.h:127
a TQCustomEvent for begin of dragging This special event will be useful, to inform view about child f...
Definition: tdemdichildfrm.h:84
a TQCustomEvent for end of dragging This special event will be useful, to inform view about child fra...
Definition: tdemdichildfrm.h:95
static int frameDecorOfAttachedViews()
Definition: tdemdimainfrm.h:465