#include <kselect.h>
Inheritance diagram for KXYSelector:

Signals | |
| void | valueChanged (int x, int y) |
Public Methods | |
| KXYSelector (QWidget *parent=0, const char *name=0) | |
| ~KXYSelector () | |
| void | setValues (int xPos, int yPos) |
| void | setRange (int minX, int minY, int maxX, int maxY) |
| int | xValue () const |
| int | yValue () const |
| QRect | contentsRect () const |
Protected Methods | |
| virtual void | drawContents (QPainter *) |
| virtual void | drawCursor (QPainter *p, int xp, int yp) |
| virtual void | paintEvent (QPaintEvent *e) |
| virtual void | mousePressEvent (QMouseEvent *e) |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
A custom drawing routine for the widget surface has to be provided by the subclass.
Definition at line 41 of file kselect.h.
|
||||||||||||
|
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions. |
|
|
Destructs the widget. |
|
|
|
|
|
Override this function to draw the contents of the widget. The default implementation does nothing. Draw within contentsRect() only. Reimplemented in KHSSelector. |
|
||||||||||||||||
|
Override this function to draw the cursor which indicates the currently selected value pair. |
|
|
@reimplemented |
|
|
@reimplemented |
|
|
@reimplemented |
|
||||||||||||||||||||
|
Sets the range of possible values. |
|
||||||||||||
|
Sets the current values in horizontal and vertical direction. |
|
||||||||||||
|
This signal is emitted whenever the user chooses a value, e.g. by clicking with the mouse on the widget. |
|
|
|
|
|
|
1.2.18