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

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQColor;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQDragEnterEvent;
import org.trinitydesktop.qt.TQSize;
import org.trinitydesktop.qt.TQPainter;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQMouseEvent;
import org.trinitydesktop.qt.TQDropEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQPushButton;

/**

 This widget can be used to display or allow user selection of a color.
 \image html kcolorbutton.png "KDE Color Button"
 See {@link KColorButtonSignals} for signals emitted by KColorButton
		@short A pushbutton to display or allow user selection of a color.
		@see KColorDialog

*/
public class KColorButton extends TQPushButton  {
	protected KColorButton(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Creates a color button.
		     		@short    Creates a color button.
	*/
	public KColorButton(TQWidget parent, String name) {
		super((Class) null);
		newKColorButton(parent,name);
	}
	private native void newKColorButton(TQWidget parent, String name);
	public KColorButton(TQWidget parent) {
		super((Class) null);
		newKColorButton(parent);
	}
	private native void newKColorButton(TQWidget parent);
	/**
		 Creates a color button with an initial color <code>c.</code>
		     		@short    Creates a color button with an initial color <code>c.</code>
	*/
	public KColorButton(TQColor c, TQWidget parent, String name) {
		super((Class) null);
		newKColorButton(c,parent,name);
	}
	private native void newKColorButton(TQColor c, TQWidget parent, String name);
	public KColorButton(TQColor c, TQWidget parent) {
		super((Class) null);
		newKColorButton(c,parent);
	}
	private native void newKColorButton(TQColor c, TQWidget parent);
	public KColorButton(TQColor c, TQColor defaultColor, TQWidget parent, String name) {
		super((Class) null);
		newKColorButton(c,defaultColor,parent,name);
	}
	private native void newKColorButton(TQColor c, TQColor defaultColor, TQWidget parent, String name);
	public KColorButton(TQColor c, TQColor defaultColor, TQWidget parent) {
		super((Class) null);
		newKColorButton(c,defaultColor,parent);
	}
	private native void newKColorButton(TQColor c, TQColor defaultColor, TQWidget parent);
	/**
		 Returns the currently chosen color.
		     		@short    Returns the currently chosen color.
	*/
	public native TQColor color();
	/**
		 Sets the current color to <code>c.</code>
		     		@short    Sets the current color to <code>c.</code>
	*/
	public native void setColor(TQColor c);
	/**
		 Returns the default color or an invalid color
		 if no default color is set.
				@short    Returns the default color or an invalid color  if no default color is set.
	*/
	public native TQColor defaultColor();
	/**
		 Sets the default color to <code>c.</code>
				@short    Sets the default color to <code>c.</code>
	*/
	public native void setDefaultColor(TQColor c);
	public native TQSize sizeHint();
	protected native void drawButtonLabel(TQPainter p);
	protected native void dragEnterEvent(TQDragEnterEvent arg1);
	protected native void dropEvent(TQDropEvent arg1);
	protected native void mousePressEvent(TQMouseEvent e);
	protected native void mouseMoveEvent(TQMouseEvent e);
	protected native void keyPressEvent(TQKeyEvent e);
	protected native void chooseColor();
	/** 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();
}
