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 | |
| bool | apply () |
| bool | apply (const std::string &propName) |
| void | bind (const App::ObjectIdentifier &_path) |
| void | keyPressEvent (QKeyEvent *event) |
| uint | maximum () const |
| uint | minimum () const |
| void | resizeEvent (QResizeEvent *event) |
| void | setExpression (boost::shared_ptr< App::Expression > expr) |
| 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 () |
Public Member Functions inherited from Gui::ExpressionBinding | |
| bool | autoApply () const |
| virtual void | bind (const App::Property &prop) |
| ExpressionBinding () | |
| QPixmap | getIcon (const char *name, const QSize &size) const |
| bool | hasExpression () const |
| bool | isBound () const |
| void | setAutoApply (bool value) |
| ~ExpressionBinding () | |
Protected Member Functions | |
| virtual void | onChange () |
| virtual QString | textFromValue (int v) const |
| virtual int | valueFromText (const QString &text) const |
Protected Member Functions inherited from Gui::ExpressionBinding | |
| void | expressionChange (const App::ObjectIdentifier &id) |
| std::string | getEscapedExpressionString () const |
| boost::shared_ptr< App::Expression > | getExpression () const |
| std::string | getExpressionString (bool no_throw=true) const |
| const App::ObjectIdentifier & | getPath () const |
Additional Inherited Members | |
Protected Attributes inherited from Gui::ExpressionBinding | |
| boost::signals2::scoped_connection | connection |
| QPalette | defaultPalette |
| int | iconHeight |
| QLabel * | iconLabel |
| bool | m_autoApply |
Detailed Description
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]
Constructor & Destructor Documentation
◆ UIntSpinBox()
| UIntSpinBox::UIntSpinBox | ( | QWidget * | parent = 0 | ) |
◆ ~UIntSpinBox()
|
virtual |
References Gui::UIntSpinBoxPrivate::mValidator.
Member Function Documentation
◆ apply() [1/2]
|
virtual |
Reimplemented from Gui::ExpressionBinding.
References Gui::ExpressionBinding::apply().
◆ apply() [2/2]
|
virtual |
Reimplemented from Gui::ExpressionBinding.
References Gui::ExpressionBinding::apply(), and Gui::Command::Doc.
◆ bind()
|
virtual |
Reimplemented from Gui::ExpressionBinding.
References Gui::ExpressionBinding::bind(), and Gui::ExpressionBinding::iconLabel.
◆ keyPressEvent()
| void UIntSpinBox::keyPressEvent | ( | QKeyEvent * | event | ) |
References Gui::ExpressionBinding::hasExpression(), and Gui::ExpressionBinding::isBound().
◆ maximum()
| uint UIntSpinBox::maximum | ( | ) | const |
References Gui::UIntSpinBoxPrivate::mapToUInt().
Referenced by setMinimum(), and UIntSpinBox().
◆ minimum()
| uint UIntSpinBox::minimum | ( | ) | const |
References Gui::UIntSpinBoxPrivate::mapToUInt().
Referenced by setMaximum(), and UIntSpinBox().
◆ onChange()
|
protectedvirtual |
Reimplemented from Gui::ExpressionBinding.
References Gui::ExpressionBinding::defaultPalette, Base::Tools::fromStdString(), Gui::ExpressionBinding::getExpression(), Gui::ExpressionBinding::getIcon(), Gui::ExpressionBinding::iconHeight, Gui::ExpressionBinding::iconLabel, setValue(), and DraftVecUtils::toString().
◆ resizeEvent()
| void UIntSpinBox::resizeEvent | ( | QResizeEvent * | event | ) |
◆ setExpression()
|
virtual |
Reimplemented from Gui::ExpressionBinding.
References Gui::ExpressionBinding::iconLabel, Gui::ExpressionBinding::isBound(), and Gui::ExpressionBinding::setExpression().
◆ setMaximum()
| void UIntSpinBox::setMaximum | ( | uint | value | ) |
References minimum(), and setRange().
◆ setMinimum()
| void UIntSpinBox::setMinimum | ( | uint | value | ) |
References maximum(), and setRange().
◆ setRange()
| void UIntSpinBox::setRange | ( | uint | minVal, |
| uint | maxVal | ||
| ) |
References Gui::UIntSpinBoxPrivate::mapToInt().
Referenced by Gui::Dialog::ParameterUInt::changeValue(), setMaximum(), setMinimum(), and UIntSpinBox().
◆ setValue
|
slot |
References Gui::UIntSpinBoxPrivate::mapToInt().
Referenced by Gui::Dialog::ParameterUInt::changeValue(), onChange(), and UIntSpinBox().
◆ textFromValue()
|
protectedvirtual |
References Gui::UIntSpinBoxPrivate::mapToUInt().
◆ validate()
|
virtual |
References Gui::UIntSpinBoxPrivate::mValidator, and Gui::UnsignedValidator::validate().
◆ value()
| uint UIntSpinBox::value | ( | ) | const |
◆ valueChanged
|
signal |
Referenced by UIntSpinBox().
◆ valueFromText()
|
protectedvirtual |
References Gui::UIntSpinBoxPrivate::mapToInt().
The documentation for this class was generated from the following files:
- src/Gui/SpinBox.h
- src/Gui/SpinBox.cpp
Public Member Functions inherited from
1.8.17