• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdemdi
 

tdemdi

Public Slots | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
KMdiChildFrmCaption Class Reference

#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()

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.

◆ heightHint()

int KMdiChildFrmCaption::heightHint ( )

Returns the caption bar height depending on the used font.

Definition at line 198 of file tdemdichildfrmcaption.cpp.

◆ mouseDoubleClickEvent()

void KMdiChildFrmCaption::mouseDoubleClickEvent ( TQMouseEvent *  )
protectedvirtual

Calls maximizePressed of the parent widget ( KMdiChildFrm )

Definition at line 303 of file tdemdichildfrmcaption.cpp.

◆ mouseMoveEvent()

void KMdiChildFrmCaption::mouseMoveEvent ( TQMouseEvent *  e)
protectedvirtual

Checks if out of move range of the KMdiChildArea and calls KMdiChildFrm::move.

Definition at line 131 of file tdemdichildfrmcaption.cpp.

◆ mousePressEvent()

void KMdiChildFrmCaption::mousePressEvent ( TQMouseEvent *  e)
protectedvirtual

The same as KMdiChildFrmCaption::slot_moveViaSystemMenu.

Definition at line 86 of file tdemdichildfrmcaption.cpp.

◆ mouseReleaseEvent()

void KMdiChildFrmCaption::mouseReleaseEvent ( TQMouseEvent *  e)
protectedvirtual

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

Definition at line 106 of file tdemdichildfrmcaption.cpp.

◆ paintEvent()

void KMdiChildFrmCaption::paintEvent ( TQPaintEvent *  e)
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

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

◆ m_bActive

bool KMdiChildFrmCaption::m_bActive
protected

state variable indicating whether activated or not activated

Definition at line 127 of file tdemdichildfrmcaption.h.

◆ m_bChildInDrag

bool KMdiChildFrmCaption::m_bChildInDrag
protected

True if the child knows that it is currently being dragged.

Definition at line 137 of file tdemdichildfrmcaption.h.

◆ m_offset

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.

◆ m_pParent

KMdiChildFrm* KMdiChildFrmCaption::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:
  • tdemdichildfrmcaption.h
  • tdemdichildfrmcaption.cpp

tdemdi

Skip menu "tdemdi"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdemdi

Skip menu "tdemdi"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdemdi by doxygen 1.9.4
This website is maintained by Timothy Pearson.