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

import org.kde.qt.Qt;
import org.kde.qt.QColor;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QDragEnterEvent;
import org.kde.qt.QSize;
import org.kde.qt.QPainter;
import org.kde.qt.QKeyEvent;
import org.kde.qt.QMouseEvent;
import org.kde.qt.QDropEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QPushButton;

/**

 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 QPushButton  {
	protected KColorButton(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Creates a color button.
		     		@short    Creates a color button.
	*/
	public KColorButton(QWidget parent, String name) {
		super((Class) null);
		newKColorButton(parent,name);
	}
	private native void newKColorButton(QWidget parent, String name);
	public KColorButton(QWidget parent) {
		super((Class) null);
		newKColorButton(parent);
	}
	private native void newKColorButton(QWidget 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(QColor c, QWidget parent, String name) {
		super((Class) null);
		newKColorButton(c,parent,name);
	}
	private native void newKColorButton(QColor c, QWidget parent, String name);
	public KColorButton(QColor c, QWidget parent) {
		super((Class) null);
		newKColorButton(c,parent);
	}
	private native void newKColorButton(QColor c, QWidget parent);
	public KColorButton(QColor c, QColor defaultColor, QWidget parent, String name) {
		super((Class) null);
		newKColorButton(c,defaultColor,parent,name);
	}
	private native void newKColorButton(QColor c, QColor defaultColor, QWidget parent, String name);
	public KColorButton(QColor c, QColor defaultColor, QWidget parent) {
		super((Class) null);
		newKColorButton(c,defaultColor,parent);
	}
	private native void newKColorButton(QColor c, QColor defaultColor, QWidget parent);
	/**	
		 Returns the currently chosen color.
		     		@short    Returns the currently chosen color.
	*/
	public native QColor color();
	/**	
		 Sets the current color to <code>c.</code>
		     		@short    Sets the current color to <code>c.</code>
	*/
	public native void setColor(QColor 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 QColor defaultColor();
	/**	
		 Sets the default color to <code>c.</code>
				@short    Sets the default color to <code>c.</code>
	*/
	public native void setDefaultColor(QColor c);
	public native QSize sizeHint();
	protected native void drawButtonLabel(QPainter p);
	protected native void dragEnterEvent(QDragEnterEvent arg1);
	protected native void dropEvent(QDropEvent arg1);
	protected native void mousePressEvent(QMouseEvent e);
	protected native void mouseMoveEvent(QMouseEvent e);
	protected native void keyPressEvent(QKeyEvent 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();
}
