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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QRect;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPaintEvent;
import org.kde.qt.QPoint;
import org.kde.qt.QPainter;
import org.kde.qt.QRangeControl;
import org.kde.qt.QRangeControlInterface;
import org.kde.qt.QMouseEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QWheelEvent;
import org.kde.qt.QWidget;
/**
KSelector is the base class for other widgets which
provides the ability to choose from a one-dimensional
range of values. An example is the KGradientSelector
which allows to choose from a range of colors.
A custom drawing routine for the widget surface has
to be provided by the subclass.
See {@link KSelectorSignals} for signals emitted by KSelector
@short KSelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values.
*/
public class KSelector extends QWidget implements QRangeControlInterface {
protected KSelector(Class dummy){super((Class) null);}
public native QMetaObject metaObject();
public native String className();
/**
Constructs a horizontal one-dimensional selection widget.
@short Constructs a horizontal one-dimensional selection widget.
*/
public KSelector(QWidget parent, String name) {
super((Class) null);
newKSelector(parent,name);
}
private native void newKSelector(QWidget parent, String name);
public KSelector(QWidget parent) {
super((Class) null);
newKSelector(parent);
}
private native void newKSelector(QWidget parent);
public KSelector() {
super((Class) null);
newKSelector();
}
private native void newKSelector();
/**
Constructs a one-dimensional selection widget with
a given orientation.
@short Constructs a one-dimensional selection widget with a given orientation.
*/
public KSelector(int o, QWidget parent, String name) {
super((Class) null);
newKSelector(o,parent,name);
}
private native void newKSelector(int o, QWidget parent, String name);
public KSelector(int o, QWidget parent) {
super((Class) null);
newKSelector(o,parent);
}
private native void newKSelector(int o, QWidget parent);
public KSelector(int o) {
super((Class) null);
newKSelector(o);
}
private native void newKSelector(int o);
/**
@return the orientation of the widget.
@short
*/
public native int orientation();
/**
@return the rectangle on which subclasses should draw.
@short
*/
public native QRect contentsRect();
/**
Sets the indent option of the widget to i.
This determines whether a shaded frame is drawn.
@short Sets the indent option of the widget to i.
*/
public native void setIndent(boolean i);
/**
@return whether the indent option is set.
@short
*/
public native boolean indent();
/**
Sets the value.
@short Sets the value.
*/
public native void setValue(int value);
/**
@return the value.
@short
*/
public native int value();
/**
Sets the min value.
@short Sets the min value.
*/
public native void setMinValue(int value);
/**
@return the min value.
@short
*/
public native int minValue();
/**
Sets the max value.
@short Sets the max value.
*/
public native void setMaxValue(int value);
/**
@return the max value.
@short
*/
public native int maxValue();
/**
Override this function to draw the contents of the control.
The default implementation does nothing.
Draw only within contentsRect().
@short Override this function to draw the contents of the control.
*/
protected native void drawContents(QPainter arg1);
/**
Override this function to draw the cursor which
indicates the current value. This function is
always called twice, once with argument show=false
to clear the old cursor, once with argument show=true
to draw the new one.
@short Override this function to draw the cursor which indicates the current value.
*/
protected native void drawArrow(QPainter painter, boolean show, QPoint pos);
protected native void valueChange();
protected native void paintEvent(QPaintEvent arg1);
protected native void mousePressEvent(QMouseEvent e);
protected native void mouseMoveEvent(QMouseEvent e);
protected native void wheelEvent(QWheelEvent arg1);
/** 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();
public native void addPage();
public native void subtractPage();
public native void addLine();
public native void subtractLine();
public native void setRange(int minValue, int maxValue);
public native int lineStep();
public native int pageStep();
public native void setSteps(int line, int page);
public native int bound(int arg1);
protected native int positionFromValue(int val, int space);
protected native int valueFromPosition(int pos, int space);
protected native void directSetValue(int val);
protected native int prevValue();
protected native void rangeChange();
protected native void stepChange();
}
|