class KSelector

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

Definition#include <kselect.h>
InheritsQRangeControl [public ], QWidget [public ]
Inherited byKGradientSelector, KValueSelector
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Protected Methods


Detailed Description

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.

 KSelector ( QWidget *parent=0, const char *name=0 )

Constructs a horizontal one-dimensional selection widget.

 KSelector ( Orientation o, QWidget *parent = 0L, const char *name = 0L )

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

 ~KSelector ()

Orientation  orientation ()

[const]

Returns: the orientation of the widget.

QRect  contentsRect ()

[const]

Returns: the rectangle on which subclasses should draw.

void  setIndent ( bool i )

Sets the indent option of the widget to i. This determines whether a shaded frame is drawn.

bool  indent ()

[const]

Returns: whether the indent option is set.

void  valueChanged ( int value )

[signal]

This signal is emitted whenever the user chooses a value, e. g. by clicking with the mouse on the widget.

void  drawContents ( QPainter * )

[protected: virtual]

Override this function to draw the contents of the control. The default implementation doesn nothing.

Draw only within contentsRect().

void  drawArrow ( QPainter *painter, bool show, const QPoint &pos )

[protected: virtual]

Override this function to draw the cursor which indicates the currently 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.

void  valueChange ()

[protected: virtual]

void  paintEvent ( QPaintEvent * )

[protected: virtual]

void  mousePressEvent ( QMouseEvent *e )

[protected: virtual]

void  mouseMoveEvent ( QMouseEvent *e )

[protected: virtual]


Generated by: marc@yogi on Tue Mar 27 13:07:09 2001, using kdoc 2.0a48.