org.kde.koala

Class KDoubleNumInput

public class KDoubleNumInput extends KNumInput

KDoubleNumInput combines a QSpinBox and optionally a QSlider 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 QSpinBox (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 KDoubleNumInputSignals for signals emitted by KDoubleNumInput

See Also: KIntNumInput KDoubleSpinBox

UNKNOWN: An input control for real numbers, consisting of a spinbox and a slider.

Constructor Summary
protected KDoubleNumInput(Class dummy)
KDoubleNumInput(QWidget parent, String name)
Constructs an input control for double values with initial value 0.00.
KDoubleNumInput(QWidget parent)
KDoubleNumInput()
KDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent, String name)
Constructor
KDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent)
KDoubleNumInput(double lower, double upper, double value, double step, int precision)
KDoubleNumInput(double lower, double upper, double value, double step)
KDoubleNumInput(double lower, double upper, double value)
KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent, String name)
Constructor the difference here is the "below" parameter.
KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent)
KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision)
KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step)
KDoubleNumInput(KNumInput below, double lower, double upper, double value)
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddoLayout()
booleaneventFilter(QObject arg1, QEvent arg2)
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
doublemaxValue()
QMetaObjectmetaObject()
QSizeminimumSizeHint()
doubleminValue()
intprecision()
Stringprefix()
doublereferencePoint()
doublerelativeValue()
protected voidresetEditBox()
protected voidresizeEvent(QResizeEvent arg1)
voidsetLabel(String label, int a)
voidsetLabel(String label)
voidsetMaxValue(double max)
Sets the maximum value.
voidsetMinValue(double min)
Sets the minimum value.
voidsetPrecision(int precision)
Specifies the number of digits to use.
voidsetPrefix(String prefix)
Sets the prefix to be displayed to prefix. Use null to disable this feature.
voidsetRange(double min, double max, double step, boolean slider)
voidsetRange(double min, double max, double step)
voidsetRange(double min, double max)
voidsetReferencePoint(double ref)
Sets the reference Point to ref. It ref == 0, emitting of relativeValueChanged is blocked and relativeValue just returns 0.
voidsetRelativeValue(double arg1)
Sets the value in units of referencePoint.
voidsetSpecialValueText(String text)
Sets the special value text.
voidsetSuffix(String suffix)
Sets the suffix to be displayed to suffix. Use null to disable this feature.
voidsetValue(double arg1)
Sets the value of the control.
StringspecialValueText()
Stringsuffix()
doublevalue()

Constructor Detail

KDoubleNumInput

protected KDoubleNumInput(Class dummy)

KDoubleNumInput

public KDoubleNumInput(QWidget parent, String name)
Constructs an input control for double values with initial value 0.00.

UNKNOWN: Constructs an input control for double values with initial value 0.

KDoubleNumInput

public KDoubleNumInput(QWidget parent)

KDoubleNumInput

public KDoubleNumInput()

KDoubleNumInput

public KDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent, String name)
Constructor

Parameters: lower lower boundary value upper upper boundary value value initial value for the control step step size to use for up/down arrow clicks precision number of digits after the decimal point parent parent QWidget name internal name for this widget

UNKNOWN: Constructor

KDoubleNumInput

public KDoubleNumInput(double lower, double upper, double value, double step, int precision, QWidget parent)

KDoubleNumInput

public KDoubleNumInput(double lower, double upper, double value, double step, int precision)

KDoubleNumInput

public KDoubleNumInput(double lower, double upper, double value, double step)

KDoubleNumInput

public KDoubleNumInput(double lower, double upper, double value)

KDoubleNumInput

public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent, String name)
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).

Parameters: below append KDoubleNumInput to the KDoubleNumInput chain lower lower boundary value upper upper boundary value value initial value for the control step step size to use for up/down arrow clicks precision number of digits after the decimal point parent parent QWidget name internal name for this widget

UNKNOWN: Constructor

KDoubleNumInput

public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision, QWidget parent)

KDoubleNumInput

public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step, int precision)

KDoubleNumInput

public KDoubleNumInput(KNumInput below, double lower, double upper, double value, double step)

KDoubleNumInput

public KDoubleNumInput(KNumInput below, double lower, double upper, double value)

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

doLayout

protected void doLayout()

eventFilter

public boolean eventFilter(QObject arg1, QEvent arg2)

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

maxValue

public double maxValue()

Returns: the maximum value.

UNKNOWN:

metaObject

public QMetaObject metaObject()

minimumSizeHint

public QSize minimumSizeHint()

minValue

public double minValue()

Returns: the minimum value.

UNKNOWN:

precision

public int precision()

Returns: the precision.

See Also: KDoubleNumInput

UNKNOWN:

prefix

public String prefix()

Returns: the prefix.

See Also: KDoubleNumInput

UNKNOWN:

referencePoint

public double referencePoint()

Returns: the reference point for relativeValue calculation

UNKNOWN:

relativeValue

public double relativeValue()

Returns: the current value in units of referencePoint.

UNKNOWN:

resetEditBox

protected void resetEditBox()

resizeEvent

protected void resizeEvent(QResizeEvent arg1)

setLabel

public void setLabel(String label, int a)

setLabel

public void setLabel(String label)

setMaxValue

public void setMaxValue(double max)
Sets the maximum value.

UNKNOWN: Sets the maximum value.

setMinValue

public void setMinValue(double min)
Sets the minimum value.

UNKNOWN: Sets the minimum value.

setPrecision

public void setPrecision(int precision)
Specifies the number of digits to use.

UNKNOWN: Specifies the number of digits to use.

setPrefix

public void setPrefix(String prefix)
Sets the prefix to be displayed to prefix. Use null to disable this feature. Note that the prefix is attached to the value without any spacing.

See Also: KDoubleNumInput

UNKNOWN: Sets the prefix to be displayed to prefix.

setRange

public void setRange(double min, double max, double step, boolean slider)

Parameters: min minimum value max maximum value step step size for the QSlider slider whether the slider is created or not

UNKNOWN:

setRange

public void setRange(double min, double max, double step)

setRange

public void setRange(double min, double max)

setReferencePoint

public void setReferencePoint(double ref)
Sets the reference Point to ref. It ref == 0, emitting of relativeValueChanged is blocked and relativeValue just returns 0.

UNKNOWN: Sets the reference Point to ref.

setRelativeValue

public void setRelativeValue(double arg1)
Sets the value in units of referencePoint.

UNKNOWN: Sets the value in units of referencePoint.

setSpecialValueText

public void setSpecialValueText(String text)
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.

UNKNOWN: Sets the special value text.

setSuffix

public void setSuffix(String suffix)
Sets the suffix to be displayed to suffix. 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".

See Also: KDoubleNumInput

UNKNOWN: Sets the suffix to be displayed to suffix.

setValue

public void setValue(double arg1)
Sets the value of the control.

UNKNOWN: Sets the value of the control.

specialValueText

public String specialValueText()

Returns: the string displayed for a special value.

See Also: KDoubleNumInput

UNKNOWN:

suffix

public String suffix()

Returns: the suffix.

See Also: KDoubleNumInput

UNKNOWN:

value

public double value()

Returns: the current value.

UNKNOWN: