org.kde.koala

Class KIconDialog

public class KIconDialog extends KDialogBase

Dialog for interactive selection of icons. Use the function getIcon() let the user select an icon. See KIconDialogSignals for signals emitted by KIconDialog

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
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
static StringgetIcon(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 StringgetIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent)
static StringgetIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user)
static StringgetIcon(int group, int context, boolean strictIconSize, int iconSize)
static StringgetIcon(int group, int context, boolean strictIconSize)
static StringgetIcon(int group, int context)
static StringgetIcon(int group)
static StringgetIcon()
inticonSize()
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
StringopenDialog()
exec()utes this modal dialog and returns the name of the selected icon, or null if the dialog was aborted.
voidsetCustomLocation(String location)
sets a custom icon directory
voidsetIconSize(int size)
Sets the size of the icons to be shown / selected.
voidsetStrictIconSize(boolean b)
Sets a strict icon size policy for allowed icons.
voidsetup(int group, int context, boolean strictIconSize, int iconSize, boolean user)
Allows you to set the same parameters as in the class method getIcon().
voidsetup(int group, int context, boolean strictIconSize, int iconSize)
voidsetup(int group, int context, boolean strictIconSize)
voidsetup(int group, int context)
voidsetup(int group)
voidsetup(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.
voidshowDialog()
show()es this dialog and emits a newIcon(String) signal when successful. null will be emitted if the dialog was aborted.
protected voidslotOk()
booleanstrictIconSize()
Returns true if a strict icon size policy is set.

Constructor Detail

KIconDialog

protected KIconDialog(Class dummy)

KIconDialog

public KIconDialog(QWidget parent, String name)
Constructs an icon selection dialog using the global iconloader.

UNKNOWN: Constructs an icon selection dialog using the global iconloader.

KIconDialog

public KIconDialog(QWidget parent)

KIconDialog

public KIconDialog()

KIconDialog

public KIconDialog(KIconLoader loader, QWidget parent, String name)
Constructs an icon selection dialog using a specific iconloader.

UNKNOWN: Constructs an icon selection dialog using a specific iconloader.

KIconDialog

public KIconDialog(KIconLoader loader, QWidget parent)

KIconDialog

public KIconDialog(KIconLoader loader)

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

getIcon

public 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.

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.

getIcon

public static String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent)

getIcon

public static String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user)

getIcon

public static String getIcon(int group, int context, boolean strictIconSize, int iconSize)

getIcon

public static String getIcon(int group, int context, boolean strictIconSize)

getIcon

public static String getIcon(int group, int context)

getIcon

public static String getIcon(int group)

getIcon

public static String getIcon()

iconSize

public int iconSize()
Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.

UNKNOWN: Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

openDialog

public String openDialog()
exec()utes this modal dialog and returns the name of the selected icon, or null if the dialog was aborted.

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.

setCustomLocation

public void setCustomLocation(String location)
sets a custom icon directory

UNKNOWN: sets a custom icon directory

setIconSize

public void setIconSize(int size)
Sets the size of the icons to be shown / selected.

See Also: KIcon#StdSizes KIconDialog

UNKNOWN: Sets the size of the icons to be shown / selected.

setStrictIconSize

public void setStrictIconSize(boolean b)
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.

UNKNOWN: Sets a strict icon size policy for allowed icons.

setup

public 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().

UNKNOWN: Allows you to set the same parameters as in the class method getIcon().

setup

public void setup(int group, int context, boolean strictIconSize, int iconSize)

setup

public void setup(int group, int context, boolean strictIconSize)

setup

public void setup(int group, int context)

setup

public void setup(int group)

setup

public 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.

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.

showDialog

public void showDialog()
show()es this dialog and emits a newIcon(String) signal when successful. null will be emitted if the dialog was aborted.

UNKNOWN: show()es this dialog and emits a newIcon(String) signal when successful.

slotOk

protected void slotOk()

strictIconSize

public boolean strictIconSize()
Returns true if a strict icon size policy is set.

UNKNOWN: Returns true if a strict icon size policy is set.