|
static double | clip (double _angle) |
|
static double | deg (double _angle) |
| maps _angle from radiants to degrees (works also for clip()ped angles) More...
|
|
|
| QtWheel (const QtWheel &) |
| Copy constructor. Never used!
|
|
QtWheel & | operator= (const QtWheel &) |
| Assignment operator. Never used!
|
|
double | turn (const QPoint &_pos) |
|
void | updateMenu () |
| updates the ticks of the menu
|
|
void | shrinkRect (QRect &, int, int) |
| expands a rectangle in x/y direction More...
|
|
Definition at line 101 of file QtWheel.hh.
◆ Orientation
Orientation of the widget.
Definition at line 107 of file QtWheel.hh.
◆ QtWheel()
ACG::QtWidgets::QtWheel::QtWheel |
( |
QWidget * |
_parent = 0 , |
|
|
const char * |
_name = 0 , |
|
|
Orientation |
_orientation = Horizontal |
|
) |
| |
◆ ~QtWheel()
ACG::QtWidgets::QtWheel::~QtWheel |
( |
| ) |
|
|
virtual |
◆ angle()
double ACG::QtWidgets::QtWheel::angle |
( |
| ) |
const |
|
inline |
get current angle of the wheel (radiants, unbounded, cf. clip())
Definition at line 134 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.
◆ deg()
double ACG::QtWidgets::QtWheel::deg |
( |
double |
_angle | ) |
|
|
static |
maps _angle
from radiants to degrees (works also for clip()ped angles)
Definition at line 440 of file QtWheel.cc.
◆ diffAngle()
double ACG::QtWidgets::QtWheel::diffAngle |
( |
| ) |
const |
|
inline |
◆ draggingWheel()
bool ACG::QtWidgets::QtWheel::draggingWheel |
( |
| ) |
const |
|
inline |
Is the user currently dragging the wheel whith the mouse?
Definition at line 161 of file QtWheel.hh.
◆ drawContents()
virtual void ACG::QtWidgets::QtWheel::drawContents |
( |
QPainter * |
| ) |
|
|
inlineprotectedvirtual |
◆ gear()
double ACG::QtWidgets::QtWheel::gear |
( |
| ) |
const |
|
inline |
How fast does angle() change when the wheel is turned? (see above)
Definition at line 182 of file QtWheel.hh.
◆ 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.
◆ keyPressEvent()
void ACG::QtWidgets::QtWheel::keyPressEvent |
( |
QKeyEvent * |
_e | ) |
|
|
protectedvirtual |
◆ keyReleaseEvent()
void ACG::QtWidgets::QtWheel::keyReleaseEvent |
( |
QKeyEvent * |
_e | ) |
|
|
protectedvirtual |
◆ marker()
bool ACG::QtWidgets::QtWheel::marker |
( |
| ) |
const |
|
inline |
Are there markers on the wheel?
Definition at line 147 of file QtWheel.hh.
◆ mouseDoubleClickEvent()
void ACG::QtWidgets::QtWheel::mouseDoubleClickEvent |
( |
QMouseEvent * |
_e | ) |
|
|
protectedvirtual |
◆ mouseMoveEvent()
void ACG::QtWidgets::QtWheel::mouseMoveEvent |
( |
QMouseEvent * |
_e | ) |
|
|
protectedvirtual |
◆ mousePressEvent()
void ACG::QtWidgets::QtWheel::mousePressEvent |
( |
QMouseEvent * |
_e | ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
void ACG::QtWidgets::QtWheel::mouseReleaseEvent |
( |
QMouseEvent * |
_e | ) |
|
|
protectedvirtual |
◆ 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.
◆ redrawPixmap()
void ACG::QtWidgets::QtWheel::redrawPixmap |
( |
| ) |
|
|
protectedvirtual |
draw wheel to pixmap (double buffering)
Definition at line 292 of file QtWheel.cc.
◆ resizeEvent()
void ACG::QtWidgets::QtWheel::resizeEvent |
( |
QResizeEvent * |
_e | ) |
|
|
protectedvirtual |
◆ setAngle()
void ACG::QtWidgets::QtWheel::setAngle |
( |
double |
_angle | ) |
|
|
inline |
set current angle of the wheel (radiants, unbounded, cf. clip())
Definition at line 136 of file QtWheel.hh.
◆ 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.
◆ setMarker()
void ACG::QtWidgets::QtWheel::setMarker |
( |
bool |
_b | ) |
|
|
inline |
enable/disable markers on the wheel
Definition at line 149 of file QtWheel.hh.
◆ setOrientation()
void ACG::QtWidgets::QtWheel::setOrientation |
( |
Orientation |
_orientation | ) |
|
|
inline |
◆ setTicks()
void ACG::QtWidgets::QtWheel::setTicks |
( |
int |
_number | ) |
|
|
inline |
set _number
of ticks on the wheel (default: 36)
Definition at line 129 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.
◆ shrinkRect()
void ACG::QtWidgets::QtWheel::shrinkRect |
( |
QRect & |
_rect, |
|
|
int |
_dx, |
|
|
int |
_dy |
|
) |
| |
|
private |
expands a rectangle in x/y direction
Definition at line 404 of file QtWheel.cc.
◆ sizeHint()
QSize ACG::QtWidgets::QtWheel::sizeHint |
( |
| ) |
const |
|
virtual |
◆ sizePolicy()
QSizePolicy ACG::QtWidgets::QtWheel::sizePolicy |
( |
| ) |
const |
|
virtual |
◆ slotCustomContextMenuRequested
void ACG::QtWidgets::QtWheel::slotCustomContextMenuRequested |
( |
const QPoint & |
pos | ) |
|
|
privateslot |
◆ ticks()
int ACG::QtWidgets::QtWheel::ticks |
( |
| ) |
const |
|
inline |
get number of ticks on the wheel
Definition at line 127 of file QtWheel.hh.
◆ tracking()
bool ACG::QtWidgets::QtWheel::tracking |
( |
| ) |
const |
|
inline |
◆ turn()
double ACG::QtWidgets::QtWheel::turn |
( |
const QPoint & |
_pos | ) |
|
|
private |
◆ angle_
double ACG::QtWidgets::QtWheel::angle_ |
|
private |
current angle of the wheel
Definition at line 270 of file QtWheel.hh.
◆ dragging_
bool ACG::QtWidgets::QtWheel::dragging_ |
|
private |
currently dragging the slider?
Definition at line 283 of file QtWheel.hh.
◆ gear_
double ACG::QtWidgets::QtWheel::gear_ |
|
private |
◆ gearShift_
int ACG::QtWidgets::QtWheel::gearShift_ |
|
private |
click-shifted gear by 2^gearShift_
Definition at line 275 of file QtWheel.hh.
◆ lastAngle_
double ACG::QtWidgets::QtWheel::lastAngle_ |
|
private |
last angle, depends on tracking_
Definition at line 271 of file QtWheel.hh.
◆ marker_
bool ACG::QtWidgets::QtWheel::marker_ |
|
private |
should ticks be marked by colors?
Definition at line 280 of file QtWheel.hh.
◆ orientation_
orientation of the widget
Definition at line 277 of file QtWheel.hh.
◆ palette_
QPalette ACG::QtWidgets::QtWheel::palette_ |
|
private |
◆ pixmap_
QPixmap ACG::QtWidgets::QtWheel::pixmap_ |
|
private |
◆ pos_
QPoint ACG::QtWidgets::QtWheel::pos_ |
|
private |
◆ size_
int ACG::QtWidgets::QtWheel::size_ |
|
private |
size of wheel in pixels
Definition at line 272 of file QtWheel.hh.
◆ ticks_
int ACG::QtWidgets::QtWheel::ticks_ |
|
private |
number of ticks on the wheel
Definition at line 279 of file QtWheel.hh.
◆ tracking_
bool ACG::QtWidgets::QtWheel::tracking_ |
|
private |
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