Widget that combines a slider with a numerical entry field and labels. More...
#include <cmtkQtSliderEntry.h>
Public Slots | |
| void | slotSetTitle (const QString &title) |
| Set title label. | |
| void | slotSetMinMaxLabels (const QString &minLabel, const QString &maxLabel) |
| Set min/max labels. | |
| void | slotSetRange (double rangeFrom, double rangeTo) |
| Set value range. | |
| void | slotSetPrecision (int precision) |
| Set number of digits. | |
| void | slotSetValue (const double value) |
| Set value. | |
| void | slotCenter () |
| Set to center position. | |
Signals | |
| void | valueChanged (double value) |
| Emitted when value changes. | |
Public Member Functions | |
| QtSliderEntry (QWidget *parent) | |
| Constructor. | |
| double | GetValue () const |
| Get value. | |
| double | GetMinValue () const |
| Get minimum value. | |
| double | GetMaxValue () const |
| Get maximum value. | |
Private Slots | |
| void | slotEditReturnPressed () |
| Called when "Return" is pressed in the line edit field. | |
| void | slotSliderValueChanged (int value) |
| Called when line edit value changes. | |
Private Attributes | |
| uint | Precision |
| Number of decimal digits. | |
| uint | PrecisionFactor |
| Factor to convert between integer and true float representation. | |
| QGridLayout * | Layout |
| Layout for children. | |
| QSlider * | Slider |
| The slider object. | |
| QLineEdit * | Edit |
| The entry field. | |
| QDoubleValidator * | Validator |
| The entry validator object. | |
| QLabel * | TitleLabel |
| The label for the widget title. | |
| QLabel * | MinLabel |
| The label for the slider's minimum value. | |
| QLabel * | MaxLabel |
| The label for the slider's maximum value. | |
Widget that combines a slider with a numerical entry field and labels.
Definition at line 55 of file cmtkQtSliderEntry.h.
| void cmtk::QtSliderEntry::valueChanged | ( | double | value ) | [signal] |
Emitted when value changes.
Referenced by QtSliderEntry(), slotEditReturnPressed(), slotSetValue(), and slotSliderValueChanged().
QLineEdit* cmtk::QtSliderEntry::Edit [private] |
The entry field.
Definition at line 118 of file cmtkQtSliderEntry.h.
Referenced by GetValue(), QtSliderEntry(), slotEditReturnPressed(), slotSetValue(), and slotSliderValueChanged().
QGridLayout* cmtk::QtSliderEntry::Layout [private] |
Layout for children.
Definition at line 112 of file cmtkQtSliderEntry.h.
Referenced by QtSliderEntry(), slotSetMinMaxLabels(), and slotSetTitle().
QLabel* cmtk::QtSliderEntry::MaxLabel [private] |
The label for the slider's maximum value.
Definition at line 130 of file cmtkQtSliderEntry.h.
Referenced by QtSliderEntry(), slotSetMinMaxLabels(), and slotSetRange().
QLabel* cmtk::QtSliderEntry::MinLabel [private] |
The label for the slider's minimum value.
Definition at line 127 of file cmtkQtSliderEntry.h.
Referenced by QtSliderEntry(), slotSetMinMaxLabels(), and slotSetRange().
uint cmtk::QtSliderEntry::Precision [private] |
Number of decimal digits.
Definition at line 106 of file cmtkQtSliderEntry.h.
Referenced by QtSliderEntry(), slotSetPrecision(), slotSetRange(), slotSetValue(), and slotSliderValueChanged().
uint cmtk::QtSliderEntry::PrecisionFactor [private] |
Factor to convert between integer and true float representation.
Definition at line 109 of file cmtkQtSliderEntry.h.
Referenced by GetMaxValue(), GetMinValue(), QtSliderEntry(), slotEditReturnPressed(), slotSetPrecision(), slotSetRange(), slotSetValue(), and slotSliderValueChanged().
QSlider* cmtk::QtSliderEntry::Slider [private] |
The slider object.
Definition at line 115 of file cmtkQtSliderEntry.h.
Referenced by GetMaxValue(), GetMinValue(), QtSliderEntry(), slotCenter(), slotEditReturnPressed(), slotSetRange(), and slotSetValue().
QLabel* cmtk::QtSliderEntry::TitleLabel [private] |
The label for the widget title.
Definition at line 124 of file cmtkQtSliderEntry.h.
Referenced by QtSliderEntry(), and slotSetTitle().
QDoubleValidator* cmtk::QtSliderEntry::Validator [private] |
The entry validator object.
Definition at line 121 of file cmtkQtSliderEntry.h.
Referenced by QtSliderEntry(), slotSetMinMaxLabels(), slotSetPrecision(), and slotSetRange().
1.7.2