.TH "KIconButton" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIconButton \- A pushbutton for choosing an icon. A push button that allows selection of an icon.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kicondialog.h>\fP
.PP
Inherits \fBQPushButton\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBiconChanged\fP (\fBQString\fP icon)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKIconButton\fP (\fBQWidget\fP *parent=0L, const char *name=0L)"
.br
.ti -1c
.RI "\fBKIconButton\fP (\fBKIconLoader\fP *loader, \fBQWidget\fP *parent, const char *name=0L)"
.br
.ti -1c
.RI "\fB~KIconButton\fP ()"
.br
.ti -1c
.RI "void \fBsetStrictIconSize\fP (bool b)"
.br
.ti -1c
.RI "bool \fBstrictIconSize\fP () const "
.br
.ti -1c
.RI "void \fBsetIconType\fP (\fBKIcon::Group\fP \fBgroup\fP, \fBKIcon::Context\fP context, bool user=false)"
.br
.ti -1c
.RI "void \fBsetIcon\fP (const \fBQString\fP &icon)"
.br
.ti -1c
.RI "void \fBresetIcon\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBicon\fP () const "
.br
.ti -1c
.RI "void \fBsetIconSize\fP (int size)"
.br
.ti -1c
.RI "int \fBiconSize\fP () const "
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBicon\fP"
.br
.ti -1c
.RI "int \fBiconSize\fP"
.br
.ti -1c
.RI "bool \fBstrictIconSize\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A pushbutton for choosing an icon. A push button that allows selection of an icon. 

Pressing on the button will open a \fBKIconDialog\fP for the user to select an icon. The current icon will be displayed on the button.
.PP
\fBSee also:\fP
.RS 4
\fBKIconDialog\fP 
.RE
.PP

.PP
Definition at line 254 of file kicondialog.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KIconButton::KIconButton (\fBQWidget\fP * parent = \fC0L\fP, const char * name = \fC0L\fP)"
.PP
Constructs a KIconButton using the global iconloader. 
.PP
Definition at line 612 of file kicondialog.cpp.
.SS "KIconButton::KIconButton (\fBKIconLoader\fP * loader, \fBQWidget\fP * parent, const char * name = \fC0L\fP)"
.PP
Constructs a KIconButton using a specific \fBKIconLoader\fP. 
.PP
Definition at line 618 of file kicondialog.cpp.
.SS "KIconButton::~\fBKIconButton\fP ()"
.PP
Destructs the button. 
.PP
Definition at line 637 of file kicondialog.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KIconButton::setStrictIconSize (bool b)"
.PP
Sets a strict icon size policy for allowed icons. 
.PP
When true, only icons of the specified group's size in setIconType are allowed, and only icons of that size will be shown in the icon dialog. 
.PP
Definition at line 643 of file kicondialog.cpp.
.PP
Referenced by KFilePropsPlugin::KFilePropsPlugin().
.SS "bool KIconButton::strictIconSize () const"
.PP
Returns true if a strict icon size policy is set. 
.PP
.SS "void KIconButton::setIconType (\fBKIcon::Group\fP group, \fBKIcon::Context\fP context, bool user = \fCfalse\fP)"
.PP
Sets the icon group and context. 
.PP
Use \fBKIcon::NoGroup\fP if you want to allow icons for any group in the given context. 
.PP
Definition at line 663 of file kicondialog.cpp.
.PP
Referenced by KFilePropsPlugin::KFilePropsPlugin().
.SS "void KIconButton::setIcon (const \fBQString\fP & icon)"
.PP
Sets the button's initial icon. 
.PP
Definition at line 670 of file kicondialog.cpp.
.PP
References KIconLoader::iconPath(), KIconLoader::loadIconSet(), KIconDialog::setCustomLocation(), and QPushButton::setIconSet().
.PP
Referenced by KFilePropsPlugin::KFilePropsPlugin(), and KURLBarItemDialog::KURLBarItemDialog().
.SS "void KIconButton::resetIcon ()"
.PP
Resets the icon (reverts to an empty button). 
.PP
Definition at line 685 of file kicondialog.cpp.
.PP
References QPushButton::setIconSet().
.SS "\fBQString\fP KIconButton::icon () const\fC [inline]\fP"
.PP
Returns the name of the selected icon. 
.PP
Definition at line 306 of file kicondialog.h.
.SS "void KIconButton::setIconSize (int size)"
.PP
Sets the size of the icon to be shown / selected. 
.PP
\fBSee also:\fP
.RS 4
\fBKIcon::StdSizes\fP 
.PP
\fBiconSize\fP 
.RE
.PP

.PP
Definition at line 653 of file kicondialog.cpp.
.PP
References KIconDialog::iconSize().
.PP
Referenced by KFilePropsPlugin::KFilePropsPlugin(), and KURLBarItemDialog::KURLBarItemDialog().
.SS "int KIconButton::iconSize () const"
.PP
Returns the iconsize set via \fBsetIconSize()\fP or 0, if the default iconsize will be used. 
.PP
.SS "void KIconButton::iconChanged (\fBQString\fP icon)\fC [signal]\fP"
.PP
Emitted when the icon has changed. 
.PP


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