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

kmdi

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

#include <kmdichildfrmcaption.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 kmdichildfrmcaption.h.

Constructor & Destructor Documentation

KMdiChildFrmCaption::KMdiChildFrmCaption ( KMdiChildFrm *  parent)

Constructor.

Definition at line 68 of file kmdichildfrmcaption.cpp.

KMdiChildFrmCaption::~KMdiChildFrmCaption ( )

Destructor.

Definition at line 81 of file kmdichildfrmcaption.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 kmdichildfrmcaption.cpp.

int KMdiChildFrmCaption::heightHint ( )

Returns the caption bar height depending on the used font.

Definition at line 198 of file kmdichildfrmcaption.cpp.

void KMdiChildFrmCaption::mouseDoubleClickEvent ( TQMouseEvent *  )
protectedvirtual

Calls maximizePressed of the parent widget ( KMdiChildFrm )

Definition at line 303 of file kmdichildfrmcaption.cpp.

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 kmdichildfrmcaption.cpp.

void KMdiChildFrmCaption::mousePressEvent ( TQMouseEvent *  e)
protectedvirtual

The same as KMdiChildFrmCaption::slot_moveViaSystemMenu.

Definition at line 86 of file kmdichildfrmcaption.cpp.

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 kmdichildfrmcaption.cpp.

void KMdiChildFrmCaption::paintEvent ( TQPaintEvent *  e)
protectedvirtual

Draws the caption bar and its title using the settings.

Definition at line 227 of file kmdichildfrmcaption.cpp.

void KMdiChildFrmCaption::setActive ( bool  bActive)

Repaint the caption bar in active background colors.

Definition at line 171 of file kmdichildfrmcaption.cpp.

void KMdiChildFrmCaption::setCaption ( const TQString &  text)

Repaint with a new caption bar title.

Definition at line 190 of file kmdichildfrmcaption.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 kmdichildfrmcaption.cpp.

Member Data Documentation

bool KMdiChildFrmCaption::m_bActive
protected

state variable indicating whether activated or not activated

Definition at line 127 of file kmdichildfrmcaption.h.

bool KMdiChildFrmCaption::m_bChildInDrag
protected

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

Definition at line 137 of file kmdichildfrmcaption.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 kmdichildfrmcaption.h.

KMdiChildFrm* KMdiChildFrmCaption::m_pParent
protected

parent widget

Definition at line 122 of file kmdichildfrmcaption.h.

TQString KMdiChildFrmCaption::m_szCaption

the title string shown in the caption bar

Definition at line 116 of file kmdichildfrmcaption.h.


The documentation for this class was generated from the following files:
  • kmdichildfrmcaption.h
  • kmdichildfrmcaption.cpp

kmdi

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

kmdi

Skip menu "kmdi"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kmdi by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |