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)


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 paintEvent (QPaintEvent *event)
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)
void unbind ()
virtual ~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::ExpressiongetExpression () const
std::string getExpressionString (bool no_throw=true) const
const App::ObjectIdentifiergetPath () const
void objectDeleted (const App::DocumentObject &)

Additional Inherited Members

- Protected Attributes inherited from Gui::ExpressionBinding
QPalette defaultPalette
boost::signals2::scoped_connection expressionchanged
int iconHeight
bool m_autoApply
boost::signals2::scoped_connection objectdeleted

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]

Werner Mayer

Constructor & Destructor Documentation

◆ UIntSpinBox()

◆ ~UIntSpinBox()

UIntSpinBox::~UIntSpinBox ( )

Member Function Documentation

◆ apply() [1/2]

bool UIntSpinBox::apply ( )

◆ apply() [2/2]

bool UIntSpinBox::apply ( const std::string &  propName)

◆ bind()

void UIntSpinBox::bind ( const App::ObjectIdentifier _path)

◆ keyPressEvent()

void UIntSpinBox::keyPressEvent ( QKeyEvent *  event)

◆ maximum()

uint UIntSpinBox::maximum ( void  ) const

◆ minimum()

uint UIntSpinBox::minimum ( void  ) const

◆ onChange()

◆ paintEvent()

void UIntSpinBox::paintEvent ( QPaintEvent *  event)

◆ resizeEvent()

◆ setExpression()

void UIntSpinBox::setExpression ( boost::shared_ptr< App::Expression expr)

◆ 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 

◆ setValue

void UIntSpinBox::setValue ( uint  value)

◆ textFromValue()

QString UIntSpinBox::textFromValue ( int  v) const

◆ validate()

QValidator::State UIntSpinBox::validate ( QString &  input,
int &  pos 
) const

◆ value()

◆ valueChanged

void Gui::UIntSpinBox::valueChanged ( uint  value)

Referenced by UIntSpinBox().

◆ valueFromText()

int UIntSpinBox::valueFromText ( const QString &  text) const

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Gui/SpinBox.h
  • Sources/FreeCAD/src/Gui/SpinBox.cpp