The UIntSpinBox class does basically the same as Qt's QSpinBox unless that it works with unsigned int's instead. More...
#include <SpinBox.h>
Public Slots | |
void | setValue (uint value) |
Signals | |
void | valueChanged (uint value) |
Public Member Functions | |
uint | maximum () const |
uint | minimum () const |
void | setMaximum (uint value) |
void | setMinimum (uint value) |
void | setRange (uint minVal, uint maxVal) |
UIntSpinBox (QWidget *parent=0) | |
virtual QValidator::State | validate (QString &input, int &pos) const |
uint | value () const |
virtual | ~UIntSpinBox () |
Protected Member Functions | |
virtual QString | textFromValue (int v) const |
virtual int | valueFromText (const QString &text) const |
The UIntSpinBox class does basically the same as Qt's QSpinBox unless that it works with unsigned int's instead.
This allows to use numbers in the range of [0, UINT_MAX]
Definition at line 67 of file SpinBox.h.
UIntSpinBox::UIntSpinBox | ( | QWidget * | parent = 0 |
) |
Definition at line 128 of file SpinBox.cpp.
References draftlibs::fcgeo::connect(), maximum(), minimum(), Gui::UIntSpinBoxPrivate::mValidator, setRange(), setValue(), and valueChanged().
UIntSpinBox::~UIntSpinBox | ( | ) | [virtual] |
Definition at line 140 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mValidator.
uint UIntSpinBox::maximum | ( | ) | const |
Definition at line 187 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mapToUInt().
Referenced by setMinimum(), and UIntSpinBox().
uint UIntSpinBox::minimum | ( | ) | const |
Definition at line 174 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mapToUInt().
Referenced by setMaximum(), and UIntSpinBox().
void UIntSpinBox::setMaximum | ( | uint | value | ) |
Definition at line 192 of file SpinBox.cpp.
References minimum(), and setRange().
void UIntSpinBox::setMinimum | ( | uint | value | ) |
Definition at line 179 of file SpinBox.cpp.
References maximum(), and setRange().
void UIntSpinBox::setRange | ( | uint | minVal, | |
uint | maxVal | |||
) |
Definition at line 146 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mapToInt().
Referenced by Gui::Dialog::ParameterUInt::changeValue(), Gui::Dialog::ParameterValue::onCreateUIntItem(), setMaximum(), setMinimum(), and UIntSpinBox().
void UIntSpinBox::setValue | ( | uint | value | ) | [slot] |
Definition at line 164 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mapToInt().
Referenced by Gui::Dialog::ParameterUInt::changeValue(), and UIntSpinBox().
QString UIntSpinBox::textFromValue | ( | int | v | ) | const [protected, virtual] |
Definition at line 200 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mapToUInt().
QValidator::State UIntSpinBox::validate | ( | QString & | input, | |
int & | pos | |||
) | const [virtual] |
Definition at line 154 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mValidator, and Gui::UnsignedValidator::validate().
uint UIntSpinBox::value | ( | ) | const |
Definition at line 159 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mapToUInt(), and Py::value().
void Gui::UIntSpinBox::valueChanged | ( | uint | value | ) | [signal] |
Referenced by UIntSpinBox().
int UIntSpinBox::valueFromText | ( | const QString & | text | ) | const [protected, virtual] |
Definition at line 208 of file SpinBox.cpp.
References Gui::UIntSpinBoxPrivate::mapToInt().