summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KIconDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KIconDialog.java')
-rw-r--r--kdejava/koala/org/kde/koala/KIconDialog.java159
1 files changed, 159 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KIconDialog.java b/kdejava/koala/org/kde/koala/KIconDialog.java
new file mode 100644
index 00000000..726b3237
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KIconDialog.java
@@ -0,0 +1,159 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QWidget;
+
+/**
+
+ Dialog for interactive selection of icons. Use the function
+ getIcon() let the user select an icon.
+ See {@link KIconDialogSignals} for signals emitted by KIconDialog
+ @short An icon selection dialog.
+
+*/
+public class KIconDialog extends KDialogBase {
+ protected KIconDialog(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructs an icon selection dialog using the global iconloader.
+ @short Constructs an icon selection dialog using the global iconloader.
+ */
+ public KIconDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKIconDialog(parent,name);
+ }
+ private native void newKIconDialog(QWidget parent, String name);
+ public KIconDialog(QWidget parent) {
+ super((Class) null);
+ newKIconDialog(parent);
+ }
+ private native void newKIconDialog(QWidget parent);
+ public KIconDialog() {
+ super((Class) null);
+ newKIconDialog();
+ }
+ private native void newKIconDialog();
+ /**
+ Constructs an icon selection dialog using a specific iconloader.
+ @short Constructs an icon selection dialog using a specific iconloader.
+ */
+ public KIconDialog(KIconLoader loader, QWidget parent, String name) {
+ super((Class) null);
+ newKIconDialog(loader,parent,name);
+ }
+ private native void newKIconDialog(KIconLoader loader, QWidget parent, String name);
+ public KIconDialog(KIconLoader loader, QWidget parent) {
+ super((Class) null);
+ newKIconDialog(loader,parent);
+ }
+ private native void newKIconDialog(KIconLoader loader, QWidget parent);
+ public KIconDialog(KIconLoader loader) {
+ super((Class) null);
+ newKIconDialog(loader);
+ }
+ private native void newKIconDialog(KIconLoader loader);
+ /**
+ 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.
+ @short Sets a strict icon size policy for allowed icons.
+ */
+ public native void setStrictIconSize(boolean b);
+ /**
+ Returns true if a strict icon size policy is set.
+ @short Returns true if a strict icon size policy is set.
+ */
+ public native boolean strictIconSize();
+ /**
+ sets a custom icon directory
+ @short sets a custom icon directory
+ */
+ public native void setCustomLocation(String location);
+ /**
+ Sets the size of the icons to be shown / selected.
+ @short Sets the size of the icons to be shown / selected.
+ @see KIcon#StdSizes
+ @see #iconSize
+ */
+ public native void setIconSize(int size);
+ /**
+ Returns the iconsize set via setIconSize() or 0, if the default
+ iconsize will be used.
+ @short Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.
+ */
+ public native int iconSize();
+ /**
+ Allows you to set the same parameters as in the class method
+ getIcon().
+ @short Allows you to set the same parameters as in the class method getIcon().
+ */
+ public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user);
+ public native void setup(int group, int context, boolean strictIconSize, int iconSize);
+ public native void setup(int group, int context, boolean strictIconSize);
+ public native void setup(int group, int context);
+ public native void setup(int group);
+ /**
+ 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.
+ @short 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.
+ */
+ public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user, boolean lockUser, boolean lockCustomDir);
+ /**
+ exec()utes this modal dialog and returns the name of the selected icon,
+ or null if the dialog was aborted.
+ @return the name of the icon, suitable for loading with KIconLoader.
+
+ @short exec()utes this modal dialog and returns the name of the selected icon, or String.null if the dialog was aborted.
+ @see #getIcon
+ */
+ public native String openDialog();
+ /**
+ show()es this dialog and emits a newIcon(String) signal when
+ successful. null will be emitted if the dialog was aborted.
+ @short show()es this dialog and emits a newIcon(String) signal when successful.
+ */
+ public native void showDialog();
+ /**
+ Pops up the dialog an lets the user select an icon.
+ @param 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.
+ @param context The initial icon context. Initially, the icons having
+ this context are shown in the dialog. The user can change this.
+ @param 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.
+ @param iconSize the size of the icons -- the default of the icongroup
+ if set to 0
+ @param user Begin with the "user icons" instead of "system icons".
+ @param parent The parent widget of the dialog.
+ @param caption The caption to use for the dialog.
+ @return The name of the icon, suitable for loading with KIconLoader.
+
+ @version New in 3.0
+
+ @short Pops up the dialog an lets the user select an icon.
+ */
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent, String caption);
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, QWidget parent);
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user);
+ public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize);
+ public static native String getIcon(int group, int context, boolean strictIconSize);
+ public static native String getIcon(int group, int context);
+ public static native String getIcon(int group);
+ public static native String getIcon();
+ protected native void slotOk();
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}