Gui::DoubleSpinBox Class Reference
The DoubleSpinBox class does exactly the same as Qt's QDoubleSpinBox but has expression support. More...
#include <SpinBox.h>
Public Member Functions | |
bool | apply (const std::string &propName) |
void | bind (const App::ObjectIdentifier &_path) |
DoubleSpinBox (QWidget *parent=0) | |
void | keyPressEvent (QKeyEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | resizeEvent (QResizeEvent *event) |
void | setExpression (boost::shared_ptr< App::Expression > expr) |
virtual | ~DoubleSpinBox () |
![]() | |
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 | |
![]() | |
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 |
void | objectDeleted (const App::DocumentObject &) |
virtual void | onChange () |
![]() | |
QPalette | defaultPalette |
boost::signals2::scoped_connection | expressionchanged |
int | iconHeight |
QLabel * | iconLabel |
bool | m_autoApply |
boost::signals2::scoped_connection | objectdeleted |
Detailed Description
The DoubleSpinBox class does exactly the same as Qt's QDoubleSpinBox but has expression support.
Constructor & Destructor Documentation
◆ DoubleSpinBox()
DoubleSpinBox::DoubleSpinBox | ( | QWidget * | parent = 0 | ) |
◆ ~DoubleSpinBox()
|
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 DoubleSpinBox::keyPressEvent | ( | QKeyEvent * | event | ) |
References Gui::ExpressionBinding::isBound().
◆ paintEvent()
void DoubleSpinBox::paintEvent | ( | QPaintEvent * | event | ) |
References Gui::ExpressionBinding::hasExpression().
◆ resizeEvent()
void DoubleSpinBox::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:
- Sources/FreeCAD/src/Gui/SpinBox.h
- Sources/FreeCAD/src/Gui/SpinBox.cpp