KIconDialog Class Reference
Dialog for interactive selection of icons. An icon selection dialog. More...
#include <kicondialog.h>
Inheritance diagram for KIconDialog:


Signals | |
void | newIconName (const QString &) |
Public Member Functions | |
KIconDialog (QWidget *parent=0L, const char *name=0L) | |
KIconDialog (KIconLoader *loader, QWidget *parent=0, const char *name=0) | |
~KIconDialog () | |
void | setStrictIconSize (bool b) |
bool | strictIconSize () const |
void | setCustomLocation (const QString &location) |
void | setIconSize (int size) |
int | iconSize () const |
QString | selectIcon (KIcon::Group group=KIcon::Desktop, KIcon::Context context=KIcon::Application, bool user=false) |
void | setup (KIcon::Group group, KIcon::Context context=KIcon::Application, bool strictIconSize=false, int iconSize=0, bool user=false) |
void | setup (KIcon::Group group, KIcon::Context context, bool strictIconSize, int iconSize, bool user, bool lockUser, bool lockCustomDir) |
QString | openDialog () |
void | showDialog () |
Static Public Member Functions | |
QString | getIcon (KIcon::Group group=KIcon::Desktop, KIcon::Context context=KIcon::Application, bool strictIconSize=false, int iconSize=0, bool user=false, QWidget *parent=0, const QString &caption=QString::null) |
Protected Slots | |
void | slotOk () |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
Dialog for interactive selection of icons. An icon selection dialog.Use the function getIcon() let the user select an icon.
Definition at line 91 of file kicondialog.h.
Constructor & Destructor Documentation
|
Constructs an icon selection dialog using the global iconloader.
Definition at line 238 of file kicondialog.cpp. References KGlobal::iconLoader(), and KIconDialog(). Referenced by KIconDialog(). |
|
Constructs an icon selection dialog using a specific iconloader.
Definition at line 246 of file kicondialog.cpp. References KIconDialog(). |
|
Destructs the dialog.
Definition at line 341 of file kicondialog.cpp. |
Member Function Documentation
|
Sets a strict icon size policy for allowed icons. When true, only icons of the specified group's size in getIcon() are shown. When false, icons not available at the desired group's size will also be selectable. Definition at line 382 of file kicondialog.cpp. References setStrictIconSize(). Referenced by setStrictIconSize(). |
|
Returns true if a strict icon size policy is set.
Definition at line 387 of file kicondialog.cpp. |
|
sets a custom icon directory
Definition at line 448 of file kicondialog.cpp. References setCustomLocation(). Referenced by setCustomLocation(), and KIconButton::setIcon(). |
|
Sets the size of the icons to be shown / selected.
Definition at line 392 of file kicondialog.cpp. References setIconSize(). Referenced by setIconSize(). |
|
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
Definition at line 401 of file kicondialog.cpp. |
|
Definition at line 408 of file kicondialog.cpp. References openDialog(), selectIcon(), and setup(). Referenced by selectIcon(). |
|
Allows you to set the same parameters as in the class method getIcon().
Definition at line 415 of file kicondialog.cpp. References QRadioButton::setChecked(), QComboBox::setCurrentItem(), and setup(). Referenced by getIcon(), selectIcon(), and setup(). |
|
Allows you to set the same parameters as in the class method getIcon(), as well as two additional parameters to lock the choice between system and user dirs and to lock the custom user dir itself.
Definition at line 429 of file kicondialog.cpp. References QRadioButton::setChecked(), QComboBox::setCurrentItem(), and setup(). |
|
exec()utes this modal dialog and returns the name of the selected icon, or QString::null if the dialog was aborted.
Definition at line 453 of file kicondialog.cpp. References QFileInfo::baseName(), QDialog::exec(), KIconCanvas::getCurrent(), and QString::isEmpty(). Referenced by getIcon(), and selectIcon(). |
|
show()es this dialog and emits a newIcon(const QString&) signal when successful. QString::null will be emitted if the dialog was aborted. Definition at line 470 of file kicondialog.cpp. References QDialog::show(). |
|
Pops up the dialog an lets the user select an icon.
Definition at line 498 of file kicondialog.cpp. References getIcon(), QString::isNull(), openDialog(), KDialog::setCaption(), and setup(). Referenced by getIcon(). |
The documentation for this class was generated from the following files: