.TH "KMdiTaskBarButton" kde3 "11 Jun 2005" "Version Version 3.4.1" "kmdi Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMdiTaskBarButton \- Internal class.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmditaskbar.h>\fP
.PP
Inherits \fBQPushButton\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBsetNewText\fP (const \fBQString\fP &)"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBclicked\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBleftMouseButtonClicked\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBrightMouseButtonClicked\fP (\fBKMdiChildView\fP *)"
.br
.ti -1c
.RI "void \fBbuttonTextChanged\fP (int)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKMdiTaskBarButton\fP (\fBKMdiTaskBar\fP *pTaskBar, \fBKMdiChildView\fP *win_ptr)"
.br
.ti -1c
.RI "\fB~KMdiTaskBarButton\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBactualText\fP () const "
.br
.ti -1c
.RI "void \fBfitText\fP (const \fBQString\fP &, int newWidth)"
.br
.ti -1c
.RI "void \fBsetText\fP (const \fBQString\fP &)"
.br
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "\fBKMdiChildView\fP * \fBm_pWindow\fP"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBmousePressEvent\fP (\fBQMouseEvent\fP *)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBm_actualText\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Internal class. 

It's a special kind of \fBQPushButton\fP catching mouse clicks. And you have the ability to abbreviate the text that it fits in the button. 
.PP
Definition at line 51 of file kmditaskbar.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KMdiTaskBarButton::KMdiTaskBarButton (\fBKMdiTaskBar\fP * pTaskBar, \fBKMdiChildView\fP * win_ptr)"
.PP
Constructor (sets to toggle button, adds a tooltip (caption) and sets to NoFocus. 
.PP
Definition at line 58 of file kmditaskbar.cpp.
.PP
References m_pWindow, and QPushButton::setToggleButton().
.SS "KMdiTaskBarButton::~\fBKMdiTaskBarButton\fP ()"
.PP
Destructor. 
.PP
Definition at line 69 of file kmditaskbar.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBQString\fP KMdiTaskBarButton::actualText () const"
.PP
\fBtext()\fP returns the possibly abbreviated text including the dots in it. 
.PP
But \fBactualText()\fP returns the full text.
.PP
Definition at line 132 of file kmditaskbar.cpp.
.PP
References m_actualText.
.PP
Referenced by KMdiTaskBar::layoutTaskBar().
.SS "void KMdiTaskBarButton::fitText (const \fBQString\fP &, int newWidth)"
.PP
Given the parameter newWidth this function possibly abbreviates the parameter string and sets a new button text. 
.PP

.PP
Definition at line 101 of file kmditaskbar.cpp.
.PP
References QString::left(), QString::length(), m_actualText, QString::right(), QButton::setText(), and QFontMetrics::width().
.PP
Referenced by KMdiTaskBar::layoutTaskBar().
.SS "void KMdiTaskBarButton::setText (const \fBQString\fP &)"
.PP
Sets the text and avoids any abbreviation. 
.PP
Memorizes that text in m_actualText, too.
.PP
Reimplemented from \fBQPushButton\fP.
.PP
Definition at line 95 of file kmditaskbar.cpp.
.PP
References m_actualText, and QButton::setText().
.PP
Referenced by KMdiTaskBar::addWinButton(), KMdiTaskBar::layoutTaskBar(), and setNewText().
.SS "void KMdiTaskBarButton::clicked (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Emitted when the button has been clicked. 
.PP
Internally connected to setFocus of the according MDI view.
.SS "void KMdiTaskBarButton::leftMouseButtonClicked (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Internally connected with \fBKMdiMainFrm::activateView\fP. 
.PP
Referenced by mousePressEvent().
.SS "void KMdiTaskBarButton::rightMouseButtonClicked (\fBKMdiChildView\fP *)\fC [signal]\fP"
.PP
Internally connected with \fBKMdiMainFrm::taskbarButtonRightClicked\fP. 
.PP
Referenced by mousePressEvent().
.SS "void KMdiTaskBarButton::buttonTextChanged (int)\fC [signal]\fP"
.PP
Emitted when the button text has changed. 
.PP
Internally connected with \fBKMdiTaskBar::layoutTaskBar\fP
.PP
Referenced by setNewText().
.SS "void KMdiTaskBarButton::setNewText (const \fBQString\fP & s)\fC [slot]\fP"
.PP
A slot version of setText. 
.PP
Definition at line 89 of file kmditaskbar.cpp.
.PP
References buttonTextChanged(), and setText().
.SS "void KMdiTaskBarButton::mousePressEvent (\fBQMouseEvent\fP *)\fC [protected, slot]\fP"
.PP
Reimplemented from its base class to catch right and left mouse button clicks. 
.PP
Definition at line 72 of file kmditaskbar.cpp.
.PP
References QPushButton::clicked(), leftMouseButtonClicked(), m_pWindow, and rightMouseButtonClicked().
.SH "Member Data Documentation"
.PP 
.SS "\fBKMdiChildView\fP* \fBKMdiTaskBarButton::m_pWindow\fP"
.PP
The according MDI view. 
.PP
Definition at line 109 of file kmditaskbar.h.
.PP
Referenced by KMdiTaskBarButton(), and mousePressEvent().
.SS "\fBQString\fP \fBKMdiTaskBarButton::m_actualText\fP\fC [protected]\fP"
.PP
Internally we must remember the real text because the button text can be abbreviated. 
.PP

.PP
Definition at line 114 of file kmditaskbar.h.
.PP
Referenced by actualText(), fitText(), and setText().

.SH "Author"
.PP 
Generated automatically by Doxygen for kmdi Library from the source code.
