class KIconLoaderDialog
|
Dialog for interactive selection of icons. More... |
|
|
Public Methods
Protected Methods
Protected Slots
- void filterChanged ()
- void dirChanged (const QString&)
- void needReload ()
- void initProgressBar ( int steps )
- void progress ( int p )
- void hideProgressBar ( void )
Protected Members
- KIconLoaderCanvas * canvas
- QLabel * l_name
- QLineEdit * i_filter
- QLabel * l_filter
- QLabel * text
- QComboBox * cb_dirs
- KIconLoader * icon_loader
- KProgress * progressBar
Detailed Description
Dialog for interactive selection of icons.
KIconLoaderDialog is a derived class from KDialogBase.
It provides one function selectIcon() which displays a dialog.
This dialog lets you select the icons within the IconPath by image.
KIconLoaderDialog ( QWidget *parent=0, const char *name=0 )
|
The KIconLoaderDialog is a modal dialog; i.e. it has its own eventloop
and the normal program will stop after a call to selectIcon() until
selectIcon() returns.
This constructor creates a KIconLoaderDialog that will call
KApplication::getKApplication()->getIconLoader() to load any icons.
Note that it will not use this KIconLoader to display the icons, but
the QPixmap that it returns will be know to this KIconLoader.
KIconLoaderDialog caches all icons it has loaded as long as they
are in the same directory between two calls to selectIcon(). So it
is a good idea to delete the KIconLoaderDialog when it is not
needed anymore.
If you want to use another KIconLoader you can create the
KIconLoaderDialog with this constructor which accepts a pointer to a
KIconLoader. Make sure that this pointer is valid.
Destructor
Get an icon from a modal selector dialog.
This method pops up a modal dialog and lets you select an icon by its
picture not name. The function returns a QPixmap object and the icons
name in 'name'.
if the user has selected an icon, or null if the user has pressed the
cancel button. So check the result before taking any action.
The argument filter specifies a filter for the names of the icons to
display. For example "*" displays all icons and "mini*" displays only
those icons which names start with 'mini'.
sets the directories to choose from. By default these are
all directories that keep toolbar icons
Generated by: root@tantive.terraplex.com on Sun Feb 27 17:39:25 2000, using kdoc 2.0a33. |