//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQWidget;

/**

 Dialog for interactive selection of icons. Use the function
 getIcon() let the user select an icon.
 See {@link TDEIconDialogSignals} for signals emitted by TDEIconDialog
		@short An icon selection dialog.

*/
public class TDEIconDialog extends KDialogBase  {
	protected TDEIconDialog(Class dummy){super((Class) null);}
	public native TQMetaObject 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 TDEIconDialog(TQWidget parent, String name) {
		super((Class) null);
		newTDEIconDialog(parent,name);
	}
	private native void newTDEIconDialog(TQWidget parent, String name);
	public TDEIconDialog(TQWidget parent) {
		super((Class) null);
		newTDEIconDialog(parent);
	}
	private native void newTDEIconDialog(TQWidget parent);
	public TDEIconDialog() {
		super((Class) null);
		newTDEIconDialog();
	}
	private native void newTDEIconDialog();
	/**
		 Constructs an icon selection dialog using a specific iconloader.
		     		@short    Constructs an icon selection dialog using a specific iconloader.
	*/
	public TDEIconDialog(TDEIconLoader loader, TQWidget parent, String name) {
		super((Class) null);
		newTDEIconDialog(loader,parent,name);
	}
	private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent, String name);
	public TDEIconDialog(TDEIconLoader loader, TQWidget parent) {
		super((Class) null);
		newTDEIconDialog(loader,parent);
	}
	private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent);
	public TDEIconDialog(TDEIconLoader loader) {
		super((Class) null);
		newTDEIconDialog(loader);
	}
	private native void newTDEIconDialog(TDEIconLoader 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 TDEIcon#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 TDEIconLoader.

		@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 TDEIconLoader.

		@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, TQWidget parent, String caption);
	public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, TQWidget 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();
}
