.TH "KIconDialog" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIconDialog \- Dialog for interactive selection of icons. An icon selection dialog.  

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

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

.in +1c
.ti -1c
.RI "\fBKIconDialog\fP (\fBQWidget\fP *parent=0L, const char *name=0L)"
.br
.ti -1c
.RI "\fBKIconDialog\fP (\fBKIconLoader\fP *loader, \fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fB~KIconDialog\fP ()"
.br
.ti -1c
.RI "void \fBsetStrictIconSize\fP (bool b)"
.br
.ti -1c
.RI "bool \fBstrictIconSize\fP () const "
.br
.ti -1c
.RI "void \fBsetCustomLocation\fP (const \fBQString\fP &location)"
.br
.ti -1c
.RI "void \fBsetIconSize\fP (int size)"
.br
.ti -1c
.RI "int \fBiconSize\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBselectIcon\fP (\fBKIcon::Group\fP group=\fBKIcon::Desktop\fP, \fBKIcon::Context\fP context=\fBKIcon::Application\fP, bool user=false)"
.br
.ti -1c
.RI "void \fBsetup\fP (\fBKIcon::Group\fP group, \fBKIcon::Context\fP context=\fBKIcon::Application\fP, bool strictIconSize=false, int iconSize=0, bool user=false)"
.br
.ti -1c
.RI "void \fBsetup\fP (\fBKIcon::Group\fP group, \fBKIcon::Context\fP context, bool strictIconSize, int iconSize, bool user, bool lockUser, bool lockCustomDir)"
.br
.ti -1c
.RI "\fBQString\fP \fBopenDialog\fP ()"
.br
.ti -1c
.RI "void \fBshowDialog\fP ()"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static \fBQString\fP \fBgetIcon\fP (\fBKIcon::Group\fP group=\fBKIcon::Desktop\fP, \fBKIcon::Context\fP context=\fBKIcon::Application\fP, bool strictIconSize=false, int iconSize=0, bool user=false, \fBQWidget\fP *parent=0, const \fBQString\fP &caption=QString::null)"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBslotOk\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Dialog for interactive selection of icons. An icon selection dialog. 

Use the function \fBgetIcon()\fP let the user select an icon.
.PP
Definition at line 91 of file kicondialog.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KIconDialog::KIconDialog (\fBQWidget\fP * parent = \fC0L\fP, const char * name = \fC0L\fP)"
.PP
Constructs an icon selection dialog using the global iconloader. 
.PP
Definition at line 238 of file kicondialog.cpp.
.PP
References KGlobal::iconLoader().
.SS "KIconDialog::KIconDialog (\fBKIconLoader\fP * loader, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs an icon selection dialog using a specific iconloader. 
.PP
Definition at line 246 of file kicondialog.cpp.
.SS "KIconDialog::~\fBKIconDialog\fP ()"
.PP
Destructs the dialog. 
.PP
Definition at line 342 of file kicondialog.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KIconDialog::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 \fBgetIcon()\fP are shown. When false, icons not available at the desired group's size will also be selectable. 
.PP
Definition at line 383 of file kicondialog.cpp.
.SS "bool KIconDialog::strictIconSize () const"
.PP
Returns true if a strict icon size policy is set. 
.PP
Definition at line 388 of file kicondialog.cpp.
.SS "void KIconDialog::setCustomLocation (const \fBQString\fP & location)"
.PP
sets a custom icon directory 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 449 of file kicondialog.cpp.
.PP
Referenced by KIconButton::setIcon().
.SS "void KIconDialog::setIconSize (int size)"
.PP
Sets the size of the icons to be shown / selected. 
.PP
\fBSee also:\fP
.RS 4
\fBKIcon::StdSizes\fP 
.PP
\fBiconSize\fP 
.RE
.PP

.PP
Definition at line 393 of file kicondialog.cpp.
.SS "int KIconDialog::iconSize () const"
.PP
Returns the iconsize set via \fBsetIconSize()\fP or 0, if the default iconsize will be used. 
.PP
Definition at line 402 of file kicondialog.cpp.
.PP
Referenced by KIconButton::setIconSize().
.SS "\fBQString\fP KIconDialog::selectIcon (\fBKIcon::Group\fP group = \fC\fBKIcon::Desktop\fP\fP, \fBKIcon::Context\fP context = \fC\fBKIcon::Application\fP\fP, bool user = \fCfalse\fP)"
.PP
\fBDeprecated\fP
.RS 4
in \fBKDE\fP 3.0, use the static method getIcon instead. 
.RE
.PP

.PP
Definition at line 409 of file kicondialog.cpp.
.PP
References openDialog(), and setup().
.SS "void KIconDialog::setup (\fBKIcon::Group\fP group, \fBKIcon::Context\fP context = \fC\fBKIcon::Application\fP\fP, bool strictIconSize = \fCfalse\fP, int iconSize = \fC0\fP, bool user = \fCfalse\fP)"
.PP
Allows you to set the same parameters as in the class method \fBgetIcon()\fP. 
.PP
Definition at line 416 of file kicondialog.cpp.
.PP
References QRadioButton::setChecked(), and QComboBox::setCurrentItem().
.PP
Referenced by getIcon(), and selectIcon().
.SS "void KIconDialog::setup (\fBKIcon::Group\fP group, \fBKIcon::Context\fP context, bool strictIconSize, int iconSize, bool user, bool lockUser, bool lockCustomDir)"
.PP
Allows you to set the same parameters as in the class method \fBgetIcon()\fP, as well as two additional parameters to lock the choice between system and user dirs and to lock the custom user dir itself. 
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 430 of file kicondialog.cpp.
.PP
References QRadioButton::setChecked(), and QComboBox::setCurrentItem().
.SS "\fBQString\fP KIconDialog::openDialog ()"
.PP
\fBexec()\fPutes this modal dialog and returns the name of the selected icon, or QString::null if the dialog was aborted. 
.PP
\fBReturns:\fP
.RS 4
the name of the icon, suitable for loading with \fBKIconLoader\fP. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBgetIcon\fP 
.RE
.PP

.PP
Definition at line 454 of file kicondialog.cpp.
.PP
References QFileInfo::baseName(), QDialog::exec(), KIconCanvas::getCurrent(), and QString::isEmpty().
.PP
Referenced by getIcon(), and selectIcon().
.SS "void KIconDialog::showDialog ()"
.PP
\fBshow()\fPes this dialog and emits a newIcon(const QString&) signal when successful. 
.PP
QString::null will be emitted if the dialog was aborted. 
.PP
Definition at line 471 of file kicondialog.cpp.
.PP
References QDialog::setModal(), and QDialog::show().
.SS "\fBQString\fP KIconDialog::getIcon (\fBKIcon::Group\fP group = \fC\fBKIcon::Desktop\fP\fP, \fBKIcon::Context\fP context = \fC\fBKIcon::Application\fP\fP, bool strictIconSize = \fCfalse\fP, int iconSize = \fC0\fP, bool user = \fCfalse\fP, \fBQWidget\fP * parent = \fC0\fP, const \fBQString\fP & caption = \fCQString::null\fP)\fC [static]\fP"
.PP
Pops up the dialog an lets the user select an icon. 
.PP
\fBParameters:\fP
.RS 4
\fIgroup\fP The icon group this icon is intended for. Providing the group shows the icons in the dialog with the same appearance as when used outside the dialog. 
.br
\fIcontext\fP The initial icon context. Initially, the icons having this context are shown in the dialog. The user can change this. 
.br
\fIstrictIconSize\fP When true, only icons of the specified group's size are shown, otherwise icon not available in the desired group's size will also be selectable. 
.br
\fIiconSize\fP the size of the icons -- the default of the icongroup if set to 0 
.br
\fIuser\fP Begin with the 'user icons' instead of 'system icons'. 
.br
\fIparent\fP The parent widget of the dialog. 
.br
\fIcaption\fP The caption to use for the dialog. 
.RE
.PP
\fBReturns:\fP
.RS 4
The name of the icon, suitable for loading with \fBKIconLoader\fP. 
.RE
.PP
\fBVersion:\fP
.RS 4
New in 3.0 
.RE
.PP

.PP
Definition at line 499 of file kicondialog.cpp.
.PP
References openDialog(), KDialog::setCaption(), and setup().

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