Gui::IntSpinBox Class Reference

The IntSpinBox class does exactly the same as Qt's QSpinBox but has expression support. More...

#include <SpinBox.h>

Public Member Functions

bool apply (const std::string &propName)
void bind (const App::ObjectIdentifier &_path)
 IntSpinBox (QWidget *parent=0)
void keyPressEvent (QKeyEvent *event)
void paintEvent (QPaintEvent *event)
void resizeEvent (QResizeEvent *event)
void setExpression (boost::shared_ptr< App::Expression > expr)
virtual ~IntSpinBox ()
- Public Member Functions inherited from Gui::ExpressionBinding
virtual bool apply ()
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 ()

Additional Inherited Members

- 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 &)
virtual void onChange ()
- 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 IntSpinBox class does exactly the same as Qt's QSpinBox but has expression support.

Stefan Tröger

Constructor & Destructor Documentation

◆ IntSpinBox()

◆ ~IntSpinBox()

IntSpinBox::~IntSpinBox ( )

Member Function Documentation

◆ apply()

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

◆ bind()

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

◆ keyPressEvent()

void IntSpinBox::keyPressEvent ( QKeyEvent *  event)

◆ paintEvent()

void IntSpinBox::paintEvent ( QPaintEvent *  event)

◆ resizeEvent()

◆ setExpression()

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

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