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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQMouseEvent;
import org.kde.qt.TQIconSet;
import org.kde.qt.TQWidget;
import org.kde.qt.TQDragObject;
import org.kde.qt.TQPushButton;
/**
This is nothing but a TQPushButton with drag-support and KGuiItem support. You have to call
setDragEnabled( true ) and override the method
dragObject() to specify the TQDragObject to be used.
@author Carsten Pfeiffer <pfeiffer@kde.org>
@short A TQPushButton with drag-support and KGuiItem support.
*/
public class KPushButton extends TQPushButton {
protected KPushButton(Class dummy){super((Class) null);}
public native TQMetaObject metaObject();
public native String className();
/**
Default constructor.
@short Default constructor.
*/
public KPushButton(TQWidget parent, String name) {
super((Class) null);
newKPushButton(parent,name);
}
private native void newKPushButton(TQWidget parent, String name);
public KPushButton(TQWidget parent) {
super((Class) null);
newKPushButton(parent);
}
private native void newKPushButton(TQWidget parent);
/**
Constructor, that sets the button-text to <code>text</code>
@short Constructor, that sets the button-text to <code>text</code>
*/
public KPushButton(String text, TQWidget parent, String name) {
super((Class) null);
newKPushButton(text,parent,name);
}
private native void newKPushButton(String text, TQWidget parent, String name);
public KPushButton(String text, TQWidget parent) {
super((Class) null);
newKPushButton(text,parent);
}
private native void newKPushButton(String text, TQWidget parent);
/**
Constructor, that sets an icon and the button-text to <code>text</code>
@short Constructor, that sets an icon and the button-text to <code>text</code>
*/
public KPushButton(TQIconSet icon, String text, TQWidget parent, String name) {
super((Class) null);
newKPushButton(icon,text,parent,name);
}
private native void newKPushButton(TQIconSet icon, String text, TQWidget parent, String name);
public KPushButton(TQIconSet icon, String text, TQWidget parent) {
super((Class) null);
newKPushButton(icon,text,parent);
}
private native void newKPushButton(TQIconSet icon, String text, TQWidget parent);
/**
Constructor that takes a KGuiItem for the text, the icon, the tooltip
and the what's this help
@short Constructor that takes a KGuiItem for the text, the icon, the tooltip and the what's this help
*/
public KPushButton(KGuiItem item, TQWidget parent, String name) {
super((Class) null);
newKPushButton(item,parent,name);
}
private native void newKPushButton(KGuiItem item, TQWidget parent, String name);
public KPushButton(KGuiItem item, TQWidget parent) {
super((Class) null);
newKPushButton(item,parent);
}
private native void newKPushButton(KGuiItem item, TQWidget parent);
/**
Enables/disables drag-support. Default is disabled.
@short Enables/disables drag-support.
*/
public native void setDragEnabled(boolean enable);
/**
@return if drag support is enabled or not.
@short
*/
public native boolean isDragEnabled();
/**
Sets the KGuiItem for this button.
@short Sets the KGuiItem for this button.
*/
public native void setGuiItem(KGuiItem item);
/**
Sets the standard KGuiItem for this button.
@short Sets the standard KGuiItem for this button.
*/
public native void setGuiItem(int item);
/**
Reads the standard KGuiItem for this button.
@short Reads the standard KGuiItem for this button.
*/
public native int guiItem();
public native void setGuiItm(int itm);
public native int guiItm();
/**
Sets the Icon Set for this button. It also takes into account hte
TDEGlobalSettings.showIconsOnPushButtons() setting.
@short Sets the Icon Set for this button.
*/
public native void setIconSet(TQIconSet iconSet);
/**
Sets the text of the button
@short Sets the text of the button
*/
public native void setText(String text);
/**
Reimplement this and return the TQDragObject that should be used
for the drag.
Default implementation returns null, so that no drag is initiated.
@short Reimplement this and return the TQDragObject that should be used for the drag.
*/
protected native TQDragObject dragObject();
/**
Reimplemented to add drag-support
@short Reimplemented to add drag-support
*/
protected native void mousePressEvent(TQMouseEvent arg1);
/**
Reimplemented to add drag-support
@short Reimplemented to add drag-support
*/
protected native void mouseMoveEvent(TQMouseEvent arg1);
/**
Starts a drag (dragCopy() by default) using dragObject()
@short Starts a drag (dragCopy() by default) using dragObject()
*/
protected native void startDrag();
/** 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();
}
|