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

tdemdi

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

#include <tdemditaskbar.h>

Public Slots

void setNewText (const TQString &)

Signals

void clicked (KMdiChildView *)
void leftMouseButtonClicked (KMdiChildView *)
void rightMouseButtonClicked (KMdiChildView *)
void buttonTextChanged (int)

Public Member Functions

 KMdiTaskBarButton (KMdiTaskBar *pTaskBar, KMdiChildView *win_ptr)
 ~KMdiTaskBarButton ()
TQString actualText () const
void fitText (const TQString &, int newWidth)
void setText (const TQString &)

Public Attributes

KMdiChildView * m_pWindow

Protected Slots

void mousePressEvent (TQMouseEvent *)

Protected Attributes

TQString m_actualText

Detailed Description

Internal class.

It's a special kind of TQPushButton catching mouse clicks. And you have the ability to abbreviate the text that it fits in the button.

Definition at line 51 of file tdemditaskbar.h.

Constructor & Destructor Documentation

◆ KMdiTaskBarButton()

KMdiTaskBarButton::KMdiTaskBarButton ( KMdiTaskBar * pTaskBar,
KMdiChildView * win_ptr )

Constructor (sets to toggle button, adds a tooltip (caption) and sets to NoFocus.

Definition at line 62 of file tdemditaskbar.cpp.

◆ ~KMdiTaskBarButton()

KMdiTaskBarButton::~KMdiTaskBarButton ( )

Destructor.

Definition at line 73 of file tdemditaskbar.cpp.

Member Function Documentation

◆ actualText()

TQString KMdiTaskBarButton::actualText ( ) const

text() returns the possibly abbreviated text including the dots in it.

But actualText() returns the full text.

Definition at line 136 of file tdemditaskbar.cpp.

◆ buttonTextChanged

void KMdiTaskBarButton::buttonTextChanged ( int )
signal

Emitted when the button text has changed.

Internally connected with KMdiTaskBar::layoutTaskBar

◆ clicked

void KMdiTaskBarButton::clicked ( KMdiChildView * )
signal

Emitted when the button has been clicked.

Internally connected to setFocus of the according MDI view.

◆ fitText()

void KMdiTaskBarButton::fitText ( const TQString & origStr,
int newWidth )

Given the parameter newWidth this function possibly abbreviates the parameter string and sets a new button text.

Definition at line 105 of file tdemditaskbar.cpp.

◆ leftMouseButtonClicked

void KMdiTaskBarButton::leftMouseButtonClicked ( KMdiChildView * )
signal

Internally connected with KMdiMainFrm::activateView.

◆ mousePressEvent

void KMdiTaskBarButton::mousePressEvent ( TQMouseEvent * e)
protectedslot

Reimplemented from its base class to catch right and left mouse button clicks.

Definition at line 76 of file tdemditaskbar.cpp.

◆ rightMouseButtonClicked

void KMdiTaskBarButton::rightMouseButtonClicked ( KMdiChildView * )
signal

Internally connected with KMdiMainFrm::taskbarButtonRightClicked.

◆ setNewText

void KMdiTaskBarButton::setNewText ( const TQString & s)
slot

A slot version of setText.

slot version of setText

Definition at line 93 of file tdemditaskbar.cpp.

◆ setText()

void KMdiTaskBarButton::setText ( const TQString & s)

Sets the text and avoids any abbreviation.

Memorizes that text in m_actualText, too.

Definition at line 99 of file tdemditaskbar.cpp.

Member Data Documentation

◆ m_actualText

TQString KMdiTaskBarButton::m_actualText
protected

Internally we must remember the real text because the button text can be abbreviated.

Definition at line 114 of file tdemditaskbar.h.

◆ m_pWindow

KMdiChildView* KMdiTaskBarButton::m_pWindow

The according MDI view.

Definition at line 109 of file tdemditaskbar.h.


The documentation for this class was generated from the following files:
  • tdemditaskbar.h
  • tdemditaskbar.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.15.0
This website is maintained by Timothy Pearson.