![]() |
VR-Forces 5.0.2 Developer's Guide
|
A slider that is manipulated with mouse clicks, instead of the handle widget. The widget purpose is setting an entity attribute, e.g. speed, altitude, etc. The slider has 3 values: Requested: the base value. Displayed as a triangle and it responds to mouse clicks. Actual: displayed as a triangle and can be moved only with setActualValue(). Extra: if enabled, dislayes as a line on the scale and can be moved only with setExtraValue.

Public Member Functions | |
| DtEntityAttributeSlider (QWidget *parent=NULL) | |
| DtEntityAttributeSlider (Qt::Orientation ori, QWidget *parent=NULL) | |
| virtual | ~DtEntityAttributeSlider () |
| virtual double | actualValue () |
| virtual double | extraValue () |
| virtual bool | extraValueEnabled () |
| virtual void | setActualValue (double actualValue) |
| virtual void | setExtraValue (double extraValue) |
| virtual void | setExtraValueEnabled (bool enabled) |
| virtual void | setRequestedValue (double value, bool singleClick=true) |
| virtual void | setDisplayActualData (bool display) |
| virtual void | setTitle (const QString &title) |
Public Attributes | |
| boost::signals2::signal< void(double value, bool singleClick)> | signal_requestedValueChanged |
| boost::signals2::signal< void(double value)> | signal_actualValueChanged |
Protected Slots | |
| void | mouseClickTimeout () |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
| virtual void | wheelEvent (QWheelEvent *event) |
| virtual void | drawHandle (QPainter *painter, const QRect &rect, int pos) const |
Protected Attributes | |
| double | myActualValue |
| double | myExtraValue |
| bool | myExtraValueEnabled |
| QTimer * | myMouseClickTimer |
| bool | mySecondClick |
| bool | myTimerStopped |
| bool | myDisplayActualData |
| QString | myTitle |
| QColor | myRequestedValueMarking |
| QColor | myActualValueMarking |
Properties | |
| QColor | RequestedValueMarking |
| QColor | ActualValueMarking |
|
explicit |
|
explicit |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedslot |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void(double value, bool singleClick)> makVrf::DtEntityAttributeSlider::signal_requestedValueChanged |
| boost::signals2::signal<void(double value)> makVrf::DtEntityAttributeSlider::signal_actualValueChanged |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| QColor makVrf::DtEntityAttributeSlider::RequestedValueMarking |
| QColor makVrf::DtEntityAttributeSlider::ActualValueMarking |