summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KSelector.java
blob: 536b8a8cb58544ece7ae2ada2939b6f26cb0eac2 (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
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.TQRect;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPaintEvent;
import org.kde.qt.TQPoint;
import org.kde.qt.TQPainter;
import org.kde.qt.TQRangeControl;
import org.kde.qt.TQRangeControlInterface;
import org.kde.qt.TQMouseEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQWheelEvent;
import org.kde.qt.TQWidget;

/**

 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 TQWidget implements TQRangeControlInterface {
	protected KSelector(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a horizontal one-dimensional selection widget.
		   		@short    Constructs a horizontal one-dimensional selection widget.
	*/
	public KSelector(TQWidget parent, String name) {
		super((Class) null);
		newKSelector(parent,name);
	}
	private native void newKSelector(TQWidget parent, String name);
	public KSelector(TQWidget parent) {
		super((Class) null);
		newKSelector(parent);
	}
	private native void newKSelector(TQWidget 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, TQWidget parent, String name) {
		super((Class) null);
		newKSelector(o,parent,name);
	}
	private native void newKSelector(int o, TQWidget parent, String name);
	public KSelector(int o, TQWidget parent) {
		super((Class) null);
		newKSelector(o,parent);
	}
	private native void newKSelector(int o, TQWidget 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 TQRect 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(TQPainter 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(TQPainter painter, boolean show, TQPoint pos);
	protected native void valueChange();
	protected native void paintEvent(TQPaintEvent arg1);
	protected native void mousePressEvent(TQMouseEvent e);
	protected native void mouseMoveEvent(TQMouseEvent e);
	protected native void wheelEvent(TQWheelEvent 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();
}