.TH "KPushButton" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KPushButton \- This is nothing but a \fBQPushButton\fP with drag-support and \fBKGuiItem\fP support. A \fBQPushButton\fP with drag-support and \fBKGuiItem\fP support.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kpushbutton.h>\fP
.PP
Inherits \fBQPushButton\fP.
.PP
Inherited by \fBKDialogBaseButton\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPushButton\fP (\fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKPushButton\fP (const \fBQString\fP &\fBtext\fP, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKPushButton\fP (const \fBQIconSet\fP &icon, const \fBQString\fP &\fBtext\fP, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKPushButton\fP (const \fBKGuiItem\fP &item, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fB~KPushButton\fP ()"
.br
.ti -1c
.RI "void \fBsetDragEnabled\fP (bool enable)"
.br
.ti -1c
.RI "bool \fBisDragEnabled\fP () const "
.br
.ti -1c
.RI "void \fBsetGuiItem\fP (const \fBKGuiItem\fP &item)"
.br
.ti -1c
.RI "void \fBsetGuiItem\fP (\fBKStdGuiItem::StdItem\fP item)"
.br
.ti -1c
.RI "\fBKStdGuiItem::StdItem\fP \fBguiItem\fP () const "
.br
.ti -1c
.RI "void \fBsetGuiItm\fP (int itm)"
.br
.ti -1c
.RI "int \fBguiItm\fP () const "
.br
.ti -1c
.RI "void \fBsetIconSet\fP (const \fBQIconSet\fP &\fBiconSet\fP)"
.br
.ti -1c
.RI "void \fBsetText\fP (const \fBQString\fP &\fBtext\fP)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual \fBQDragObject\fP * \fBdragObject\fP ()"
.br
.ti -1c
.RI "virtual void \fBmousePressEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBmouseMoveEvent\fP (\fBQMouseEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBstartDrag\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "int \fBstdItem\fP"
.br
.ti -1c
.RI "bool \fBisDragEnabled\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
This is nothing but a \fBQPushButton\fP with drag-support and \fBKGuiItem\fP support. A \fBQPushButton\fP with drag-support and \fBKGuiItem\fP support. 

You have to call setDragEnabled( true ) and override the virtual method \fBdragObject()\fP to specify the \fBQDragObject\fP to be used.
.PP
\fBAuthor:\fP
.RS 4
Carsten Pfeiffer <pfeiffer@kde.org> 
.RE
.PP

.PP
Definition at line 37 of file kpushbutton.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPushButton::KPushButton (\fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Default constructor. 
.PP
Definition at line 42 of file kpushbutton.cpp.
.SS "KPushButton::KPushButton (const \fBQString\fP & text, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor, that sets the button-text to \fCtext\fP. 
.PP
Definition at line 49 of file kpushbutton.cpp.
.SS "KPushButton::KPushButton (const \fBQIconSet\fP & icon, const \fBQString\fP & text, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor, that sets an icon and the button-text to \fCtext\fP. 
.PP
Definition at line 57 of file kpushbutton.cpp.
.SS "KPushButton::KPushButton (const \fBKGuiItem\fP & item, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor that takes a \fBKGuiItem\fP for the text, the icon, the tooltip and the what's this help. 
.PP
Definition at line 65 of file kpushbutton.cpp.
.SS "KPushButton::~\fBKPushButton\fP ()"
.PP
Destructs the button. 
.PP
Definition at line 73 of file kpushbutton.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KPushButton::setDragEnabled (bool enable)"
.PP
Enables/disables drag-support. 
.PP
Default is disabled. 
.PP
Definition at line 166 of file kpushbutton.cpp.
.SS "bool KPushButton::isDragEnabled () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
if drag support is enabled or not. 
.RE
.PP

.PP
Definition at line 80 of file kpushbutton.h.
.SS "void KPushButton::setGuiItem (const \fBKGuiItem\fP & item)"
.PP
Sets the \fBKGuiItem\fP for this button. 
.PP
Definition at line 117 of file kpushbutton.cpp.
.PP
References setIconSet(), and QPushButton::setText().
.PP
Referenced by KDialogBase::setButtonGuiItem(), and setGuiItem().
.SS "void KPushButton::setGuiItem (\fBKStdGuiItem::StdItem\fP item)"
.PP
Sets the standard \fBKGuiItem\fP for this button. 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 127 of file kpushbutton.cpp.
.PP
References setGuiItem().
.SS "\fBKStdGuiItem::StdItem\fP KPushButton::guiItem () const"
.PP
Reads the standard \fBKGuiItem\fP for this button. 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 133 of file kpushbutton.cpp.
.SS "void KPushButton::setIconSet (const \fBQIconSet\fP & iconSet)"
.PP
Sets the Icon Set for this button. 
.PP
It also takes into account hte \fBKGlobalSettings::showIconsOnPushButtons()\fP setting. 
.PP
Reimplemented from \fBQPushButton\fP.
.PP
Definition at line 150 of file kpushbutton.cpp.
.PP
References QPushButton::setIconSet(), and QPushButton::text().
.PP
Referenced by setGuiItem(), and setText().
.SS "void KPushButton::setText (const \fBQString\fP & text)"
.PP
Sets the text of the button. 
.PP
Reimplemented from \fBQPushButton\fP.
.PP
Definition at line 138 of file kpushbutton.cpp.
.PP
References setIconSet(), and QPushButton::setText().
.PP
Referenced by KTipDialog::KTipDialog().
.SS "\fBQDragObject\fP * KPushButton::dragObject ()\fC [protected, virtual]\fP"
.PP
Reimplement this and return the \fBQDragObject\fP that should be used for the drag. 
.PP
Default implementation returns 0L, so that no drag is initiated. 
.PP
Definition at line 195 of file kpushbutton.cpp.
.PP
Referenced by startDrag().
.SS "void KPushButton::mousePressEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented to add drag-support. 
.PP
Definition at line 171 of file kpushbutton.cpp.
.SS "void KPushButton::mouseMoveEvent (\fBQMouseEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented to add drag-support. 
.PP
Definition at line 178 of file kpushbutton.cpp.
.PP
References KGlobalSettings::dndEventDelay(), QPushButton::setDown(), and startDrag().
.SS "void KPushButton::startDrag ()\fC [protected, virtual]\fP"
.PP
Starts a drag (dragCopy() by default) using \fBdragObject()\fP. 
.PP
Definition at line 200 of file kpushbutton.cpp.
.PP
References QDragObject::dragCopy(), and dragObject().
.PP
Referenced by mouseMoveEvent().

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