class KIconLoaderDialog
|
Dialog for interactive selection of icons. More... |
|
|
Public Members
- KIconLoaderDialog ( QWidget *parent=0, const char *name=0 )
- KIconLoaderDialog ( KIconLoader *loader, QWidget *parent=0, const char *name=0 )
- ~KIconLoaderDialog ()
- QPixmap selectIcon ( QString &name, const QString &filter)
- void setDir ( const QStrList *l )
- int exec (QString filter)
Protected Members
- void init ()
- virtual void resizeEvent ( QResizeEvent *e )
- KIconLoaderCanvas * canvas
- QLabel * l_name
- QLineEdit * i_filter
- QLabel * l_filter
- QPushButton * ok
- QPushButton * cancel
- QLabel * text
- QComboBox * cb_dirs
- KIconLoader * icon_loader
Protected Slots
- void filterChanged ()
- void dirChanged (const char *)
- void reject ()
- void needReload ()
Detailed Description
Dialog for interactive selection of icons.
KIconLoaderDialog is a derived class from QDialog.
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.
This function 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'.
Generated by: bhcompile@stripples.devel.redhat.com on Thu Jul 26 13:37:41 200. |