summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KDoubleNumInput.java
blob: 4df5264e3a1d967814381e84cfb82bc69fd1eb28 (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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
//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.TQObject;
import org.kde.qt.TQSize;
import org.kde.qt.TQEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQResizeEvent;

/**

 KDoubleNumInput combines a TQSpinBox and optionally a TQSlider
 with a label to make an easy to use control for setting some float
 parameter. This is especially nice for configuration dialogs,
 which can have many such combinated controls.
 The slider is created only when the user specifies a range
 for the control using the setRange function with the slider
 parameter set to "true".
 A special feature of KDoubleNumInput, designed specifically for
 the situation when there are several instances in a column,
 is that you can specify what portion of the control is taken by the
 TQSpinBox (the remaining portion is used by the slider). This makes
 it very simple to have all the sliders in a column be the same size.
 It uses the KDoubleValidator validator class. KDoubleNumInput
 enforces the value to be in the given range, but see the class
 documentation of KDoubleSpinBox for the tricky
 interrelationship of precision and values. All of what is said
 there applies here, too.
 See {@link KDoubleNumInputSignals} for signals emitted by KDoubleNumInput
		@short An input control for real numbers, consisting of a spinbox and a slider. 
		@see KIntNumInput
		@see KDoubleSpinBox

*/
public class KDoubleNumInput extends KNumInput  {
	protected KDoubleNumInput(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs an input control for double values
		 with initial value 0.00.
		     		@short    Constructs an input control for double values  with initial value 0.
	*/
	public KDoubleNumInput(TQWidget parent, String name) {
		super((Class) null);
		newKDoubleNumInput(parent,name);
	}
	private native void newKDoubleNumInput(TQWidget parent, String name);
	public KDoubleNumInput(TQWidget parent) {
		super((Class) null);
		newKDoubleNumInput(parent);
	}
	private native void newKDoubleNumInput(TQWidget parent);
	public KDoubleNumInput() {
		super((Class) null);
		newKDoubleNumInput();
	}
	private native void newKDoubleNumInput();
	/**	
		 Constructor
			@param lower lower boundary value
			@param upper upper boundary value
			@param value initial value for the control
			@param step step size to use for up/down arrow clicks
			@param precision number of digits after the decimal point
			@param parent parent TQWidget
			@param name internal name for this widget
				@short    Constructor
	*/
	public KDoubleNumInput(double lower, double upper, double value, double step, int precision, TQWidget parent, String name) {
		super((Class) null);
		newKDoubleNumInput(lower,upper,value,step,precision,parent,name);
	}
	private native void newKDoubleNumInput(double lower, double upper, double value, double step, int precision, TQWidget parent, String name);
	public KDoubleNumInput(double lower, double upper, double value, double step, int precision, TQWidget parent) {
		super((Class) null);
		newKDoubleNumInput(lower,upper,value,step,precision,parent);
	}
	private native void newKDoubleNumInput(double lower, double upper, double value, double step, int precision, TQWidget parent);
	public KDoubleNumInput(double lower, double upper, double value, double step, int precision) {
		super((Class) null);
		newKDoubleNumInput(lower,upper,value,step,precision);
	}
	private native void newKDoubleNumInput(double lower, double upper, double value, double step, int precision);
	public KDoubleNumInput(double lower, double upper, double value, double step) {
		super((Class) null);
		newKDoubleNumInput(lower,upper,value,step);
	}
	private native void newKDoubleNumInput(double lower, double upper, double value, double step);
	public KDoubleNumInput(double lower, double upper, double value) {
		super((Class) null);
		newKDoubleNumInput(lower,upper,value);
	}
	private native void newKDoubleNumInput(double lower, double upper, double value);
	/**	
		 Constructor
			 the difference here is the "below" parameter. It tells this
		 instance that it is visually put below some other KNumInput
		 widget.  Note that these two KNumInput's need not to have the
		 same parent widget or be in the same layout group.  The effect
		 is that it'll adjust it's layout in correspondence with the
		 layout of the other KNumInput's (you can build an arbitrary long
		 chain).
			@param below append KDoubleNumInput to the KDoubleNumInput chain
			@param lower lower boundary value
			@param upper upper boundary value
			@param value initial value for the control
			@param step step size to use for up/down arrow clicks
			@param precision number of digits after the decimal point
			@param parent parent TQWidget
			@param name internal name for this widget
				@short    Constructor
	*/
	public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, TQWidget parent, String name) {
		super((Class) null);
		newKDoubleNumInput(below,lower,upper,value,step,precision,parent,name);
	}
	private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, TQWidget parent, String name);
	public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, TQWidget parent) {
		super((Class) null);
		newKDoubleNumInput(below,lower,upper,value,step,precision,parent);
	}
	private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, TQWidget parent);
	public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision) {
		super((Class) null);
		newKDoubleNumInput(below,lower,upper,value,step,precision);
	}
	private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision);
	public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step) {
		super((Class) null);
		newKDoubleNumInput(below,lower,upper,value,step);
	}
	private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value, double step);
	public KDoubleNumInput(KNumInput below, double lower, double upper, double value) {
		super((Class) null);
		newKDoubleNumInput(below,lower,upper,value);
	}
	private native void newKDoubleNumInput(KNumInput below, double lower, double upper, double value);
	/**	
				@return the current value.
     
		@short
	*/
	public native double value();
	/**	
				@return the suffix.

		@short   
		@see #setSuffix
	*/
	public native String suffix();
	/**	
				@return the prefix.

		@short   
		@see #setPrefix
	*/
	public native String prefix();
	/**	
				@return the precision.

		@short   
		@see #setPrecision
	*/
	public native int precision();
	/**	
				@return the string displayed for a special value.

		@short   
		@see #setSpecialValueText
	*/
	public native String specialValueText();
	/**	
			@param min minimum value
			@param max maximum value
			@param step step size for the TQSlider
			@param slider whether the slider is created or not
		     		@short
	*/
	public native void setRange(double min, double max, double step, boolean slider);
	public native void setRange(double min, double max, double step);
	public native void setRange(double min, double max);
	/**	
		 Sets the minimum value.
		     		@short    Sets the minimum value.
	*/
	public native void setMinValue(double min);
	/**	
				@return the minimum value.
     
		@short
	*/
	public native double minValue();
	/**	
		 Sets the maximum value.
		     		@short    Sets the maximum value.
	*/
	public native void setMaxValue(double max);
	/**	
				@return the maximum value.
     
		@short
	*/
	public native double maxValue();
	/**	
		 Specifies the number of digits to use.
		     		@short    Specifies the number of digits to use.
	*/
	public native void setPrecision(int precision);
	/**	
				@return the reference point for relativeValue calculation

		@short
	*/
	public native double referencePoint();
	/**	
				@return the current value in units of referencePoint.

		@short
	*/
	public native double relativeValue();
	/**	
		 Sets the special value text. If set, the spin box will display
		 this text instead of the numeric value whenever the current
		 value is equal to minVal(). Typically this is used for indicating
		 that the choice has a special (default) meaning.
		     		@short    Sets the special value text.
	*/
	public native void setSpecialValueText(String text);
	public native void setLabel(String label, int a);
	public native void setLabel(String label);
	public native TQSize minimumSizeHint();
	public native boolean eventFilter(TQObject arg1, TQEvent arg2);
	/**	
		 Sets the value of the control.
		     		@short    Sets the value of the control.
	*/
	public native void setValue(double arg1);
	/**	
		 Sets the value in units of referencePoint.
				@short    Sets the value in units of referencePoint.
	*/
	public native void setRelativeValue(double arg1);
	/**	
		 Sets the reference Point to <code>ref.</code> It <code>ref</code> == 0, emitting of
		 relativeValueChanged is blocked and relativeValue
		 just returns 0.
				@short    Sets the reference Point to <code>ref.</code>
	*/
	public native void setReferencePoint(double ref);
	/**	
		 Sets the suffix to be displayed to <code>suffix.</code> Use null to disable
		 this feature. Note that the suffix is attached to the value without any
		 spacing. So if you prefer to display a space separator, set suffix
		 to something like " cm".
				@short    Sets the suffix to be displayed to <code>suffix.</code>
		@see #setSuffix
	*/
	public native void setSuffix(String suffix);
	/**	
		 Sets the prefix to be displayed to <code>prefix.</code> Use null to disable
		 this feature. Note that the prefix is attached to the value without any
		 spacing.
				@short    Sets the prefix to be displayed to <code>prefix.</code>
		@see #setPrefix
	*/
	public native void setPrefix(String prefix);
	protected native void doLayout();
	protected native void resizeEvent(TQResizeEvent arg1);
	protected native void resetEditBox();
	/** 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();
}