summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KColorButton.java
blob: 610249e1d166c1ee00116e81135f1ae10311c009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//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();
}