#include <ExpressionBinding.h>
◆ ExpressionBinding()
ExpressionBinding::ExpressionBinding |
( |
| ) |
|
◆ ~ExpressionBinding()
ExpressionBinding::~ExpressionBinding |
( |
| ) |
|
◆ apply() [1/2]
bool ExpressionBinding::apply |
( |
| ) |
|
|
virtual |
Reimplemented in Gui::InputField, and Gui::UIntSpinBox.
References Gui::Command::getObjectCmd(), getPath(), App::Property::isReadOnly(), and App::ObjectIdentifier::toEscapedString().
Referenced by Gui::UIntSpinBox::apply(), Gui::IntSpinBox::apply(), Gui::QuantitySpinBox::apply(), Gui::InputField::apply(), Gui::DoubleSpinBox::apply(), Gui::ExpLineEdit::apply(), and Gui::PropertyEditor::VectorLineEdit::apply().
◆ apply() [2/2]
bool ExpressionBinding::apply |
( |
const std::string & |
propName | ) |
|
|
virtual |
Reimplemented in Gui::PropertyEditor::VectorLineEdit, Gui::ExpLineEdit, Gui::DoubleSpinBox, Gui::InputField, Gui::QuantitySpinBox, Gui::IntSpinBox, and Gui::UIntSpinBox.
References App::Application::closeActiveTransaction(), Gui::Command::Doc, App::Application::getActiveTransaction(), App::GetApplication(), App::DocumentObject::getDocument(), getEscapedExpressionString(), App::Document::getName(), App::DocumentObject::getNameInDocument(), App::PropertyString::getValue(), hasExpression(), isBound(), App::DocumentObject::Label, and App::Application::setActiveTransaction().
Referenced by Gui::ExpressionBindingPy::apply().
◆ autoApply()
bool Gui::ExpressionBinding::autoApply |
( |
| ) |
const |
◆ bind() [1/2]
Reimplemented in Gui::ExpLineEdit, Gui::DoubleSpinBox, Gui::InputField, Gui::QuantitySpinBox, Gui::IntSpinBox, Gui::PropertyEditor::PropertyItem, and Gui::UIntSpinBox.
References App::Property::canonicalPath(), connection, expressionChange(), App::PropertyExpressionEngine::expressionChanged, App::DocumentObject::ExpressionEngine, and App::ObjectIdentifier::getProperty().
Referenced by bind(), Gui::ExpressionBindingPy::bind(), Gui::UIntSpinBox::bind(), Gui::PropertyEditor::PropertyItem::bind(), Gui::IntSpinBox::bind(), Gui::QuantitySpinBox::bind(), Gui::InputField::bind(), Gui::DoubleSpinBox::bind(), and Gui::ExpLineEdit::bind().
◆ bind() [2/2]
◆ expressionChange()
◆ getEscapedExpressionString()
std::string ExpressionBinding::getEscapedExpressionString |
( |
| ) |
const |
|
protected |
◆ getExpression()
boost::shared_ptr< App::Expression > ExpressionBinding::getExpression |
( |
| ) |
const |
|
protected |
References App::PropertyExpressionEngine::ExpressionInfo::expression, App::DocumentObject::getExpression(), and isBound().
Referenced by Gui::QuantitySpinBox::event(), Gui::QuantitySpinBox::focusInEvent(), getExpressionString(), hasExpression(), Gui::InputField::newInput(), Gui::UIntSpinBox::onChange(), Gui::QuantitySpinBox::openFormulaDialog(), Gui::UIntSpinBox::resizeEvent(), Gui::IntSpinBox::resizeEvent(), Gui::QuantitySpinBox::resizeEvent(), Gui::DoubleSpinBox::resizeEvent(), and Gui::ExpLineEdit::resizeEvent().
◆ getExpressionString()
std::string ExpressionBinding::getExpressionString |
( |
bool |
no_throw = true | ) |
const |
|
protected |
◆ getIcon()
QPixmap ExpressionBinding::getIcon |
( |
const char * |
name, |
|
|
const QSize & |
size |
|
) |
| const |
References Gui::BitmapFactory(), DraftVecUtils::find(), and Gui::BitmapFactoryInst::pixmapFromSvg().
Referenced by Gui::DoubleSpinBox::DoubleSpinBox(), Gui::ExpLineEdit::ExpLineEdit(), Gui::IntSpinBox::IntSpinBox(), Gui::UIntSpinBox::onChange(), Gui::QuantitySpinBox::QuantitySpinBox(), Gui::UIntSpinBox::resizeEvent(), Gui::IntSpinBox::resizeEvent(), Gui::QuantitySpinBox::resizeEvent(), Gui::DoubleSpinBox::resizeEvent(), Gui::ExpLineEdit::resizeEvent(), Gui::UIntSpinBox::UIntSpinBox(), ArchAxis.AxisSystemTaskPanel::update(), ArchSectionPlane.SectionPlaneTaskPanel::update(), and ArchComponent.ComponentTaskPanel::update().
◆ getPath()
◆ hasExpression()
bool ExpressionBinding::hasExpression |
( |
| ) |
const |
◆ isBound()
bool ExpressionBinding::isBound |
( |
| ) |
const |
Referenced by apply(), Gui::QuantitySpinBox::apply(), Gui::QuantitySpinBox::boundToName(), Gui::QuantitySpinBox::event(), Gui::QuantitySpinBox::focusInEvent(), getExpression(), hasExpression(), Gui::ExpressionBindingPy::isBound(), Gui::UIntSpinBox::keyPressEvent(), Gui::IntSpinBox::keyPressEvent(), Gui::DoubleSpinBox::keyPressEvent(), Gui::InputField::newInput(), Gui::QuantitySpinBox::openFormulaDialog(), Gui::UIntSpinBox::resizeEvent(), Gui::IntSpinBox::resizeEvent(), Gui::QuantitySpinBox::resizeEvent(), Gui::DoubleSpinBox::resizeEvent(), Gui::ExpLineEdit::resizeEvent(), Gui::UIntSpinBox::setExpression(), Gui::IntSpinBox::setExpression(), Gui::DoubleSpinBox::setExpression(), and Gui::ExpLineEdit::setExpression().
◆ onChange()
virtual void Gui::ExpressionBinding::onChange |
( |
| ) |
|
|
protectedvirtual |
◆ setAutoApply()
void Gui::ExpressionBinding::setAutoApply |
( |
bool |
value | ) |
|
◆ setExpression()
void Gui::ExpressionBinding::setExpression |
( |
boost::shared_ptr< App::Expression > |
expr | ) |
|
|
protectedvirtual |
Reimplemented in Gui::ExpLineEdit, Gui::DoubleSpinBox, Gui::QuantitySpinBox, Gui::IntSpinBox, and Gui::UIntSpinBox.
References App::Application::closeActiveTransaction(), App::DocumentObject::ExpressionEngine, App::Application::getActiveTransaction(), App::GetApplication(), App::PropertyString::getValue(), App::DocumentObject::Label, App::Application::setActiveTransaction(), App::PropertyExpressionEngine::setValue(), and App::PropertyExpressionEngine::validateExpression().
Referenced by Gui::InputField::newInput(), Gui::UIntSpinBox::setExpression(), Gui::IntSpinBox::setExpression(), Gui::QuantitySpinBox::setExpression(), Gui::DoubleSpinBox::setExpression(), and Gui::ExpLineEdit::setExpression().
◆ connection
boost::signals2::scoped_connection Gui::ExpressionBinding::connection |
|
protected |
◆ defaultPalette
QPalette Gui::ExpressionBinding::defaultPalette |
|
protected |
Referenced by Gui::DoubleSpinBox::DoubleSpinBox(), Gui::ExpLineEdit::ExpLineEdit(), Gui::IntSpinBox::IntSpinBox(), Gui::UIntSpinBox::onChange(), Gui::QuantitySpinBox::QuantitySpinBox(), Gui::UIntSpinBox::resizeEvent(), Gui::IntSpinBox::resizeEvent(), Gui::QuantitySpinBox::resizeEvent(), Gui::DoubleSpinBox::resizeEvent(), Gui::ExpLineEdit::resizeEvent(), and Gui::UIntSpinBox::UIntSpinBox().
◆ iconHeight
int Gui::ExpressionBinding::iconHeight |
|
protected |
Referenced by Gui::DoubleSpinBox::DoubleSpinBox(), Gui::ExpLineEdit::ExpLineEdit(), Gui::IntSpinBox::IntSpinBox(), Gui::QuantitySpinBox::minimumSizeHint(), Gui::UIntSpinBox::onChange(), Gui::QuantitySpinBox::QuantitySpinBox(), Gui::UIntSpinBox::resizeEvent(), Gui::IntSpinBox::resizeEvent(), Gui::QuantitySpinBox::resizeEvent(), Gui::DoubleSpinBox::resizeEvent(), Gui::ExpLineEdit::resizeEvent(), Gui::QuantitySpinBox::sizeHint(), and Gui::UIntSpinBox::UIntSpinBox().
◆ iconLabel
QLabel* Gui::ExpressionBinding::iconLabel |
|
protected |
Referenced by Gui::UIntSpinBox::bind(), Gui::IntSpinBox::bind(), Gui::QuantitySpinBox::bind(), Gui::DoubleSpinBox::bind(), Gui::ExpLineEdit::bind(), Gui::DoubleSpinBox::DoubleSpinBox(), Gui::ExpLineEdit::ExpLineEdit(), Gui::InputField::InputField(), Gui::IntSpinBox::IntSpinBox(), Gui::InputField::newInput(), Gui::UIntSpinBox::onChange(), Gui::QuantitySpinBox::QuantitySpinBox(), Gui::UIntSpinBox::resizeEvent(), Gui::IntSpinBox::resizeEvent(), Gui::QuantitySpinBox::resizeEvent(), Gui::DoubleSpinBox::resizeEvent(), Gui::InputField::resizeEvent(), Gui::ExpLineEdit::resizeEvent(), Gui::UIntSpinBox::setExpression(), Gui::IntSpinBox::setExpression(), Gui::DoubleSpinBox::setExpression(), Gui::ExpLineEdit::setExpression(), Gui::UIntSpinBox::UIntSpinBox(), and Gui::InputField::updateIconLabel().
◆ m_autoApply
bool Gui::ExpressionBinding::m_autoApply |
|
protected |
The documentation for this class was generated from the following files:
- src/Gui/ExpressionBinding.h
- src/Gui/ExpressionBinding.cpp