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 | 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) |
~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::Expression > | getExpression () const |
std::string | getExpressionString (bool no_throw=true) const |
const App::ObjectIdentifier & | getPath () const |
virtual void | onChange () |
Protected Attributes inherited from Gui::ExpressionBinding | |
boost::signals2::scoped_connection | connection |
QPalette | defaultPalette |
int | iconHeight |
QLabel * | iconLabel |
bool | m_autoApply |
Detailed Description
The IntSpinBox class does exactly the same as Qt's QSpinBox but has expression support.
Constructor & Destructor Documentation
◆ IntSpinBox()
IntSpinBox::IntSpinBox | ( | QWidget * | parent = 0 | ) |
◆ ~IntSpinBox()
|
virtual |
Member Function Documentation
◆ apply()
|
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 IntSpinBox::keyPressEvent | ( | QKeyEvent * | event | ) |
References Gui::ExpressionBinding::hasExpression(), and Gui::ExpressionBinding::isBound().
◆ resizeEvent()
void IntSpinBox::resizeEvent | ( | QResizeEvent * | event | ) |
◆ setExpression()
|
virtual |
Reimplemented from Gui::ExpressionBinding.
References Gui::ExpressionBinding::iconLabel, Gui::ExpressionBinding::isBound(), and Gui::ExpressionBinding::setExpression().
The documentation for this class was generated from the following files:
- src/Gui/SpinBox.h
- src/Gui/SpinBox.cpp