org.kde.koala
public class KIconDialog extends KDialogBase
UNKNOWN: An icon selection dialog.
Constructor Summary | |
---|---|
protected | KIconDialog(Class dummy) |
KIconDialog(QWidget parent, String name)
Constructs an icon selection dialog using the global iconloader. | |
KIconDialog(QWidget parent) | |
KIconDialog() | |
KIconDialog(KIconLoader loader, QWidget parent, String name)
Constructs an icon selection dialog using a specific iconloader. | |
KIconDialog(KIconLoader loader, QWidget parent) | |
KIconDialog(KIconLoader loader) |
Method Summary | |
---|---|
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
static String | getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent, String caption)
Pops up the dialog an lets the user select an icon. |
static String | getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent) |
static String | getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user) |
static String | getIcon(int group, int context, boolean strictIconSize, int iconSize) |
static String | getIcon(int group, int context, boolean strictIconSize) |
static String | getIcon(int group, int context) |
static String | getIcon(int group) |
static String | getIcon() |
int | iconSize()
Returns the iconsize set via setIconSize() or 0, if the default
iconsize will be used. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
String | openDialog()
exec()utes this modal dialog and returns the name of the selected icon,
or null if the dialog was aborted. |
void | setCustomLocation(String location)
sets a custom icon directory |
void | setIconSize(int size)
Sets the size of the icons to be shown / selected. |
void | setStrictIconSize(boolean b)
Sets a strict icon size policy for allowed icons. |
void | setup(int group, int context, boolean strictIconSize, int iconSize, boolean user)
Allows you to set the same parameters as in the class method
getIcon(). |
void | setup(int group, int context, boolean strictIconSize, int iconSize) |
void | setup(int group, int context, boolean strictIconSize) |
void | setup(int group, int context) |
void | setup(int group) |
void | setup(int group, int context, boolean strictIconSize, int iconSize, boolean user, boolean lockUser, boolean lockCustomDir)
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. |
void | showDialog()
show()es this dialog and emits a newIcon(String) signal when
successful. null will be emitted if the dialog was aborted. |
protected void | slotOk() |
boolean | strictIconSize()
Returns true if a strict icon size policy is set. |
UNKNOWN: Constructs an icon selection dialog using the global iconloader.
UNKNOWN: Constructs an icon selection dialog using a specific iconloader.
Parameters: group 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. context The initial icon context. Initially, the icons having this context are shown in the dialog. The user can change this. strictIconSize 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. iconSize the size of the icons -- the default of the icongroup if set to 0 user Begin with the "user icons" instead of "system icons". parent The parent widget of the dialog. caption The caption to use for the dialog.
Returns: The name of the icon, suitable for loading with KIconLoader.
Version: New in 3.0
UNKNOWN: Pops up the dialog an lets the user select an icon.
UNKNOWN: Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
Returns: the name of the icon, suitable for loading with KIconLoader.
See Also: KIconDialog
UNKNOWN: exec()utes this modal dialog and returns the name of the selected icon, or String.null if the dialog was aborted.
UNKNOWN: sets a custom icon directory
See Also: KIcon#StdSizes KIconDialog
UNKNOWN: Sets the size of the icons to be shown / selected.
UNKNOWN: Sets a strict icon size policy for allowed icons.
UNKNOWN: Allows you to set the same parameters as in the class method getIcon().
UNKNOWN: 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.
UNKNOWN: show()es this dialog and emits a newIcon(String) signal when successful.
UNKNOWN: Returns true if a strict icon size policy is set.