|
enum | Orientation { Horizontal,
Vertical
} |
| Orientation of the widget.
|
|
|
| QtWheel (QWidget *_parent=0, const char *_name=0, Orientation _orientation=Horizontal) |
| Constructor.
|
|
virtual | ~QtWheel () |
| Destructor.
|
|
int | ticks () const |
| get number of ticks on the wheel
|
|
void | setTicks (int _number) |
| set _number of ticks on the wheel (default: 36)
|
|
double | angle () const |
| get current angle of the wheel (radiants, unbounded, cf. clip())
|
|
void | setAngle (double _angle) |
| set current angle of the wheel (radiants, unbounded, cf. clip())
|
|
double | diffAngle () const |
|
bool | marker () const |
| Are there markers on the wheel?
|
|
void | setMarker (bool _b) |
| enable/disable markers on the wheel
|
|
Orientation | orientation () const |
| get orientation
|
|
void | setOrientation (Orientation _orientation) |
| set orientation
|
|
bool | draggingWheel () const |
| Is the user currently dragging the wheel whith the mouse?
|
|
void | setTracking (bool _b) |
|
bool | tracking () const |
| Is tracking on?
|
|
void | setGear (double _g) |
|
double | gear () const |
| How fast does angle() change when the wheel is turned? (see above)
|
|
virtual QSizePolicy | sizePolicy () const |
| reimplemented
|
|
virtual QSize | sizeHint () const |
| reimplemented
|
|
|
static double | clip (double _angle) |
|
static double | deg (double _angle) |
| maps _angle from radiants to degrees (works also for clip()ped angles)
|
|
|
void | slotCustomContextMenuRequested (const QPoint &pos) |
|
Definition at line 101 of file QtWheel.hh.
◆ angleChangedBy
void ACG::QtWidgets::QtWheel::angleChangedBy |
( |
double |
_angle | ) |
|
|
signal |
The angle chaned by the relative _angle
(cf. clip()).
Note: Do not use this signal together with angleChangedBy()! The reason for this is that you cannot be sure in which order the you get the signals!
If you need both values the angle and the relative difference then use this signal and angle() or angleChangedTo() and diffAngle() respectively!
◆ angleChangedTo
void ACG::QtWidgets::QtWheel::angleChangedTo |
( |
double |
_angle | ) |
|
|
signal |
The angle changed to the absolute _angle
(cf. clip()). Note: Do not use together with angleChangedBy() (see there)!
◆ clip()
double ACG::QtWidgets::QtWheel::clip |
( |
double |
_angle | ) |
|
|
static |
Clips _angle
to range [0,2pi[. All angle()s provided by this widget are unbounded in a sense that a full turn of the wheel is 2pi not 0. As a consequence two full turns are 4pi, etc.
This methods clips the angle again [0,2pi[
- See also
- deg()
Definition at line 436 of file QtWheel.cc.
◆ diffAngle()
double ACG::QtWidgets::QtWheel::diffAngle |
( |
| ) |
const |
|
inline |
◆ gearUp
void ACG::QtWidgets::QtWheel::gearUp |
( |
| ) |
|
|
signal |
The gear() has been "shifted" by double clicking the widget. Up-shifting will double the value of gear(). The signal is emitted after gear() has been changed.
◆ paintEvent()
void ACG::QtWidgets::QtWheel::paintEvent |
( |
QPaintEvent * |
_e | ) |
|
|
protectedvirtual |
reimplemented
- Todo:
- : bitBlt(this,r.left(),r.top(),pixmap_);
Definition at line 276 of file QtWheel.cc.
◆ setGear()
void ACG::QtWidgets::QtWheel::setGear |
( |
double |
_g | ) |
|
|
inline |
How fast does angle() changed when the wheel is turned? The default setting is 1.0. Then angle() will be changed by pi (180 degrees) when dragging the wheel from one end of the widget to the other. In general this angular difference will be multiplied by gear(), i.e. for values >1,0 the angle changes faster.
Definition at line 180 of file QtWheel.hh.
◆ setTracking()
void ACG::QtWidgets::QtWheel::setTracking |
( |
bool |
_b | ) |
|
|
inline |
Enables wheel tracking (default: true)
If tracking is enabled, then the QtWheel emits signals whenever the it is dragged. Otherwise signals are emitted only when a dragging process is finished.
Definition at line 169 of file QtWheel.hh.
The documentation for this class was generated from the following files:
- OpenFlipper/libs_required/ACG/QtWidgets/QtWheel.hh
- OpenFlipper/libs_required/ACG/QtWidgets/QtWheel.cc