#include </home/clem/local/src/opie/libopie2/opieui/oselector.h>
Inheritance diagram for Opie::Ui::OXYSelector:

Signals | |
| void | valueChanged (int x, int y) |
Public Member Functions | |
| OXYSelector (QWidget *parent=0, const char *name=0) | |
| ~OXYSelector () | |
| 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 Member Functions | |
| 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) |
| virtual void | wheelEvent (QWheelEvent *) |
| void | valuesFromPosition (int x, int y, int &xVal, int &yVal) const |
Private Member Functions | |
| void | setPosition (int xp, int yp) |
Private Attributes | |
| int | px |
| int | py |
| int | xPos |
| int | yPos |
| int | minX |
| int | maxX |
| int | minY |
| int | maxY |
| QPixmap | store |
| OXYSelectorPrivate * | d |
A custom drawing routine for the widget surface has to be provided by the subclass.
Definition at line 44 of file oselector.h.
|
||||||||||||
|
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions. Definition at line 41 of file oselector.cpp. References maxX, maxY, minX, minY, store, STORE_W2, xPos, and yPos. |
|
|
Destructs the widget. Definition at line 55 of file oselector.cpp. |
|
|
Definition at line 90 of file oselector.cpp. Referenced by Opie::Ui::OHSSelector::drawContents(), and Opie::Ui::OHSSelector::drawPalette(). |
|
|
Override this function to draw the contents of the widget. The default implementation does nothing. Draw within contentsRect() only. Reimplemented in Opie::Ui::OHSSelector. Definition at line 196 of file oselector.cpp. Referenced by paintEvent(). |
|
||||||||||||||||
|
Override this function to draw the cursor which indicates the currently selected value pair. Definition at line 200 of file oselector.cpp. Referenced by paintEvent(), and setPosition(). |
|
|
Definition at line 131 of file oselector.cpp. References setValues(), valueChanged(), valuesFromPosition(), xPos, and yPos. |
|
|
Definition at line 122 of file oselector.cpp. References setValues(), valueChanged(), valuesFromPosition(), xPos, and yPos. |
|
|
Definition at line 95 of file oselector.cpp. References bitBlt(), drawContents(), drawCursor(), height, px, py, store, STORE_W, STORE_W2, TRUE, and width. |
|
||||||||||||
|
Definition at line 170 of file oselector.cpp. References bitBlt(), drawCursor(), height, px, py, store, STORE_W, STORE_W2, and width. Referenced by setValues(). |
|
||||||||||||||||||||
|
Sets the range of possible values. Definition at line 59 of file oselector.cpp. References maxX, maxY, minX, minY, px, and py. Referenced by Opie::Ui::OHSSelector::OHSSelector(). |
|
||||||||||||
|
Sets the current values in horizontal and vertical direction. Definition at line 69 of file oselector.cpp. References height, maxX, maxY, minX, minY, setPosition(), width, xPos, and yPos. Referenced by mouseMoveEvent(), mousePressEvent(), and wheelEvent(). |
|
||||||||||||
|
This signal is emitted whenever the user chooses a value, e.g. by clicking with the mouse on the widget. Referenced by mouseMoveEvent(), mousePressEvent(), and wheelEvent(). |
|
||||||||||||||||||||
|
Converts a pixel position to its corresponding values. Definition at line 154 of file oselector.cpp. References height, maxX, maxY, minX, minY, and width. Referenced by mouseMoveEvent(), and mousePressEvent(). |
|
|
Definition at line 140 of file oselector.cpp. References Qt::Horizontal, setValues(), valueChanged(), xPos, xValue(), yPos, and yValue(). |
|
|
Definition at line 72 of file oselector.h. Referenced by wheelEvent(). |
|
|
Definition at line 76 of file oselector.h. Referenced by wheelEvent(). |
|
|
Reimplemented in Opie::Ui::OHSSelector. Definition at line 137 of file oselector.h. |
|
|
Definition at line 131 of file oselector.h. Referenced by OXYSelector(), setRange(), setValues(), and valuesFromPosition(). |
|
|
Definition at line 133 of file oselector.h. Referenced by OXYSelector(), setRange(), setValues(), and valuesFromPosition(). |
|
|
Definition at line 130 of file oselector.h. Referenced by OXYSelector(), setRange(), setValues(), and valuesFromPosition(). |
|
|
Definition at line 132 of file oselector.h. Referenced by OXYSelector(), setRange(), setValues(), and valuesFromPosition(). |
|
|
Definition at line 126 of file oselector.h. Referenced by paintEvent(), setPosition(), and setRange(). |
|
|
Definition at line 127 of file oselector.h. Referenced by paintEvent(), setPosition(), and setRange(). |
|
|
Definition at line 134 of file oselector.h. Referenced by OXYSelector(), paintEvent(), and setPosition(). |
|
|
Definition at line 128 of file oselector.h. Referenced by mouseMoveEvent(), mousePressEvent(), OXYSelector(), setValues(), and wheelEvent(). |
|
|
Definition at line 129 of file oselector.h. Referenced by mouseMoveEvent(), mousePressEvent(), OXYSelector(), setValues(), and wheelEvent(). |
1.4.2