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.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();
}
|