org.kde.koala

Class KSelector

public class KSelector extends QWidget implements QRangeControlInterface

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 KSelectorSignals for signals emitted by KSelector

UNKNOWN: KSelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values.

Constructor Summary
protected KSelector(Class dummy)
KSelector(QWidget parent, String name)
Constructs a horizontal one-dimensional selection widget.
KSelector(QWidget parent)
KSelector()
KSelector(int o, QWidget parent, String name)
Constructs a one-dimensional selection widget with a given orientation.
KSelector(int o, QWidget parent)
KSelector(int o)
Method Summary
voidaddLine()
voidaddPage()
intbound(int arg1)
StringclassName()
QRectcontentsRect()
protected voiddirectSetValue(int val)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voiddrawArrow(QPainter painter, boolean show, QPoint pos)
Override this function to draw the cursor which indicates the current value.
protected voiddrawContents(QPainter arg1)
Override this function to draw the contents of the control.
protected voidfinalize()
Deletes the wrapped C++ instance
booleanindent()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
intlineStep()
intmaxValue()
QMetaObjectmetaObject()
intminValue()
protected voidmouseMoveEvent(QMouseEvent e)
protected voidmousePressEvent(QMouseEvent e)
intorientation()
intpageStep()
protected voidpaintEvent(QPaintEvent arg1)
protected intpositionFromValue(int val, int space)
protected intprevValue()
protected voidrangeChange()
voidsetIndent(boolean i)
Sets the indent option of the widget to i.
voidsetMaxValue(int value)
Sets the max value.
voidsetMinValue(int value)
Sets the min value.
voidsetRange(int minValue, int maxValue)
voidsetSteps(int line, int page)
voidsetValue(int value)
Sets the value.
protected voidstepChange()
voidsubtractLine()
voidsubtractPage()
intvalue()
protected voidvalueChange()
protected intvalueFromPosition(int pos, int space)
protected voidwheelEvent(QWheelEvent arg1)

Constructor Detail

KSelector

protected KSelector(Class dummy)

KSelector

public KSelector(QWidget parent, String name)
Constructs a horizontal one-dimensional selection widget.

UNKNOWN: Constructs a horizontal one-dimensional selection widget.

KSelector

public KSelector(QWidget parent)

KSelector

public KSelector()

KSelector

public KSelector(int o, QWidget parent, String name)
Constructs a one-dimensional selection widget with a given orientation.

UNKNOWN: Constructs a one-dimensional selection widget with a given orientation.

KSelector

public KSelector(int o, QWidget parent)

KSelector

public KSelector(int o)

Method Detail

addLine

public void addLine()

addPage

public void addPage()

bound

public int bound(int arg1)

className

public String className()

contentsRect

public QRect contentsRect()

Returns: the rectangle on which subclasses should draw.

UNKNOWN:

directSetValue

protected void directSetValue(int val)

dispose

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

drawArrow

protected void drawArrow(QPainter painter, boolean show, QPoint pos)
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.

UNKNOWN: Override this function to draw the cursor which indicates the current value.

drawContents

protected void drawContents(QPainter arg1)
Override this function to draw the contents of the control. The default implementation does nothing. Draw only within contentsRect().

UNKNOWN: Override this function to draw the contents of the control.

finalize

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

indent

public boolean indent()

Returns: whether the indent option is set.

UNKNOWN:

isDisposed

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

lineStep

public int lineStep()

maxValue

public int maxValue()

Returns: the max value.

UNKNOWN:

metaObject

public QMetaObject metaObject()

minValue

public int minValue()

Returns: the min value.

UNKNOWN:

mouseMoveEvent

protected void mouseMoveEvent(QMouseEvent e)

mousePressEvent

protected void mousePressEvent(QMouseEvent e)

orientation

public int orientation()

Returns: the orientation of the widget.

UNKNOWN:

pageStep

public int pageStep()

paintEvent

protected void paintEvent(QPaintEvent arg1)

positionFromValue

protected int positionFromValue(int val, int space)

prevValue

protected int prevValue()

rangeChange

protected void rangeChange()

setIndent

public void setIndent(boolean i)
Sets the indent option of the widget to i. This determines whether a shaded frame is drawn.

UNKNOWN: Sets the indent option of the widget to i.

setMaxValue

public void setMaxValue(int value)
Sets the max value.

UNKNOWN: Sets the max value.

setMinValue

public void setMinValue(int value)
Sets the min value.

UNKNOWN: Sets the min value.

setRange

public void setRange(int minValue, int maxValue)

setSteps

public void setSteps(int line, int page)

setValue

public void setValue(int value)
Sets the value.

UNKNOWN: Sets the value.

stepChange

protected void stepChange()

subtractLine

public void subtractLine()

subtractPage

public void subtractPage()

value

public int value()

Returns: the value.

UNKNOWN:

valueChange

protected void valueChange()

valueFromPosition

protected int valueFromPosition(int pos, int space)

wheelEvent

protected void wheelEvent(QWheelEvent arg1)