|
| | RangedInt (QWidget *=nullptr) |
| |
| | RangedInt (QString const &_label, int _value, int _min, int _max, QWidget *=nullptr) |
| |
| | ~RangedInt () |
| |
| bool | useDefaultValue () const |
| | Return flag if default value is used. More...
|
| |
| bool | drawTicks () const |
| |
| | AbstractInputWidget (QWidget *=nullptr) |
| |
| virtual | ~AbstractInputWidget () |
| |
| | Widget (QWidget *=nullptr) |
| |
| | Widget (QString const &_label, QWidget *=nullptr) |
| |
| virtual | ~Widget () |
| |
| QString | label () const |
| | Return label text of widget. More...
|
| |
| void | setLabel (QString const &) |
| | Set label text of widget. More...
|
| |
| ColorSet const & | colorSet () const |
| |
| double | zoomFactor () const |
| | Zoom factor of widget. More...
|
| |
| | RangedValue () |
| | Default constructor. More...
|
| |
| | RangedValue (value_type _value, value_type _minimum, value_type _maximum, value_type _singleStep=1.0, value_type _pageStep=10.0) |
| | Constructor from user defined value and range. More...
|
| |
| qreal | ratio () const |
| | Returns ratio of current value. More...
|
| |
| value_type | value () const |
| | Return value. More...
|
| |
| value_type | defaultValue () const |
| | Return default value. More...
|
| |
| value_type | pivot () const |
| | Return pivot value. More...
|
| |
| void | increase () |
| | Increate value by single step value. More...
|
| |
| void | decrease () |
| | Decrease value by single step value. More...
|
| |
| void | setValue (value_type _value) |
| | Set new value and emit value changed event. More...
|
| |
| void | reset () |
| | Reset value to default value. More...
|
| |
| void | setDefaultValue (value_type _value) |
| | Set new default value. More...
|
| |
| void | setPivot (value_type _pivot) |
| | Set pivot value (0.0 by default) More...
|
| |
| | Range (value_type _minimum=0.0, value_type _maximum=100.0) |
| |
| qreal | ratio (value_type _v) const |
| | Return ratio of value v. More...
|
| |
| value_type | range () const |
| | Return range (difference between maximum and minimum) More...
|
| |
| value_type | minimum () const |
| | Return minimum value. More...
|
| |
| value_type | maximum () const |
| | Return maximum value. More...
|
| |
| void | setMinimum (value_type _minimum) |
| | Set new minimum value and value and emit rangeChanged event. More...
|
| |
| void | disableMinimum () |
| | Disable minimum by setting the value to infinite. More...
|
| |
| void | setMaximum (value_type _maximum) |
| | Set new maximum value and value and emit rangeChanged event. More...
|
| |
| void | disableMaximum () |
| | Disable maximum by setting maximum to infinite value. More...
|
| |
| void | setRange (value_type _minimum, value_type _maximum) |
| | Set range and validate. More...
|
| |
| void | disableRange () |
| | Disable range by setting minimum and maximum to infinite value. More...
|
| |
| bool | minimumUsed () const |
| |
| bool | maximumUsed () const |
| |
| | Step (value_type _singleStep=1.0, value_type _pageStep=10.0, bool _snap=false) |
| | Construct with a single step, page step value. More...
|
| |
| qreal | snapped (value_type _v) const |
| | Return snapped value. More...
|
| |
| bool | snap () const |
| | Snap value (align to single step value) More...
|
| |
| void | setSnap (bool _snap) |
| | Set boolean if value is to be snapped. More...
|
| |
| value_type | singleStep () const |
| | Return value for single step. More...
|
| |
| value_type | pageStep () const |
| | Return value for page step. More...
|
| |
| void | setSingleStep (value_type _singleStep) |
| | Set new single step value. More...
|
| |
| void | setPageStep (value_type _pageStep) |
| | Set new value for page step. More...
|
| |
|
| void | paintEvent (QPaintEvent *) |
| |
| void | keyPressEvent (QKeyEvent *) |
| | Show editor when enter key is pressed. More...
|
| |
| void | mouseMoveEvent (QMouseEvent *) |
| |
| void | mousePressEvent (QMouseEvent *) |
| | Hide editor and set focus on click. More...
|
| |
| void | mouseReleaseEvent (QMouseEvent *) |
| |
| void | wheelEvent (QWheelEvent *) |
| |
| void | valueChangedEvent () |
| | Value changed event which is emitted on changed value. More...
|
| |
| void | rangeChangedEvent () |
| | Handler to emit rangeChanged signal in derived widgets. More...
|
| |
| virtual void | mouseDoubleClickEvent (QMouseEvent *) |
| | Show editor on double click. More...
|
| |
| void | drawHandle (QPainter &_p, double _pos, double _heightFactor=1.0) const |
| | Draw slider handle. More...
|
| |
| void | drawTrack (QPainter &_p, double _pos) const |
| |
| void | drawTrack (QPainter &_p, double _left, double _right) const |
| |
| void | init () |
| |
| void | drawBorder (QPainter &) |
| |
| void | drawBorder (QPainter &, bool _focus) |
| |
| | Editor (widget_type *_widget) |
| |
| T * | createEditor () |
| | Create editor with type. More...
|
| |
| editor_type const * | editor () const |
| | Return pointer editor (const version) More...
|
| |
| editor_type * | editor () |
| | Return pointer editor. More...
|
| |
| T * | editorAs () |
| | Return editor as type T. More...
|
| |
| T const * | editorAs () const |
| | Return editor as type T (const version) More...
|
| |
| virtual void | setEditorVisible (bool _visible) |
| | Set editor visibility and set focus. More...
|
| |
| void | showEditor () |
| | Show editor and set focus. More...
|
| |
| void | hideEditor () |
| | Hide editor. More...
|
| |
| void | apply (WIDGET *_widget) const |
| | Apply ranged value to widget. More...
|
| |
| void | for_each_step (F f) |
| | Functor to apply for each step. More...
|
| |
| void | validate () |
| | Validate minimum, maximum and value. More...
|
| |
| void | apply (WIDGET *_widget) const |
| | Apply range to widget. More...
|
| |
| void | apply (WIDGET *_widget, V _value) const |
| | Applay range to widget and set value. More...
|
| |
| void | for_each_step (MIN _min, MAX _max, F f) |
| | Functor to be applied for each step between min and maximum. More...
|
| |