#include <ExpressionBinding.h>
◆ ExpressionBinding()
ExpressionBinding::ExpressionBinding |
( |
| ) |
|
◆ ~ExpressionBinding()
ExpressionBinding::~ExpressionBinding |
( |
| ) |
|
|
virtual |
◆ apply() [1/2]
bool ExpressionBinding::apply |
( |
| ) |
|
|
virtual |
Reimplemented in Gui::InputField.
References apply(), Gui::Command::getObjectCmd(), getPath(), App::Property::isReadOnly(), and App::ObjectIdentifier::toEscapedString().
Referenced by apply(), Gui::InputField::apply(), Gui::PropertyEditor::VectorLineEdit::apply(), Gui::QuantitySpinBox::apply(), Gui::UIntSpinBox::apply(), Gui::IntSpinBox::apply(), Gui::DoubleSpinBox::apply(), and Gui::ExpLineEdit::apply().
◆ apply() [2/2]
bool ExpressionBinding::apply |
( |
const std::string & |
propName | ) |
|
|
virtual |
Reimplemented in Gui::InputField, Gui::PropertyEditor::VectorLineEdit, Gui::QuantitySpinBox, Gui::UIntSpinBox, Gui::IntSpinBox, Gui::DoubleSpinBox, and Gui::ExpLineEdit.
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::InputField, Gui::PropertyEditor::PropertyItem, Gui::QuantitySpinBox, Gui::ExpressionSpinBox, and Gui::ExpLineEdit.
References draftgeoutils.faces::bind(), App::Property::canonicalPath(), expressionChange(), App::PropertyExpressionEngine::expressionChanged, expressionchanged, App::DocumentObject::ExpressionEngine, App::DocumentObject::getDocument(), App::ObjectIdentifier::getProperty(), objectDeleted(), and objectdeleted.
Referenced by Gui::InputField::bind(), Gui::PropertyEditor::PropertyItem::bind(), Gui::QuantitySpinBox::bind(), Gui::ExpressionSpinBox::bind(), Gui::ExpLineEdit::bind(), bind(), and Gui::ExpressionBindingPy::bind().
◆ bind() [2/2]
◆ expressionChange()
◆ getEscapedExpressionString()
std::string ExpressionBinding::getEscapedExpressionString |
( |
| ) |
const |
|
protected |
◆ getExpression()
std::shared_ptr< App::Expression > ExpressionBinding::getExpression |
( |
| ) |
const |
|
protected |
References App::PropertyExpressionEngine::ExpressionInfo::expression, App::DocumentObject::getExpression(), and isBound().
Referenced by Gui::QuantitySpinBox::event(), Gui::PropertyEditor::PropertyItem::expressionAsString(), Gui::QuantitySpinBox::focusInEvent(), getExpressionString(), hasExpression(), Gui::InputField::newInput(), Gui::ExpressionSpinBox::onChange(), Gui::QuantitySpinBox::openFormulaDialog(), Gui::ExpressionSpinBox::openFormulaDialog(), Gui::ExpLineEdit::resizeEvent(), Gui::ExpressionSpinBox::showValidExpression(), and Gui::ExpressionSpinBox::updateExpression().
◆ getExpressionString()
std::string ExpressionBinding::getExpressionString |
( |
bool |
no_throw = true | ) |
const |
|
protected |
◆ getIcon()
QPixmap ExpressionBinding::getIcon |
( |
const char * |
name, |
|
|
const QSize & |
size |
|
) |
| const |
◆ getPath()
◆ hasExpression()
bool ExpressionBinding::hasExpression |
( |
| ) |
const |
References getExpression(), and isBound().
Referenced by apply(), Gui::PropertyEditor::PropertyItem::data(), Gui::ExpressionSpinBox::drawControl(), Gui::PropertyEditor::PropertyItem::expressionAsString(), Gui::PropertyEditor::PropertyItem::hasAnyExpression(), Gui::ExpressionBindingPy::hasExpression(), Gui::ExpLineEdit::keyPressEvent(), Gui::PropertyEditor::PropertyItem::onChange(), Gui::PropertyEditor::PropertyStringItem::setValue(), Gui::PropertyEditor::PropertyFontItem::setValue(), Gui::PropertyEditor::PropertyIntegerItem::setValue(), Gui::PropertyEditor::PropertyIntegerConstraintItem::setValue(), Gui::PropertyEditor::PropertyFloatItem::setValue(), Gui::PropertyEditor::PropertyUnitItem::setValue(), Gui::PropertyEditor::PropertyFloatConstraintItem::setValue(), Gui::PropertyEditor::PropertyBoolItem::setValue(), Gui::PropertyEditor::PropertyVectorItem::setValue(), Gui::PropertyEditor::PropertyVectorDistanceItem::setValue(), Gui::PropertyEditor::PropertyMatrixItem::setValue(), Gui::PropertyEditor::PropertyPlacementItem::setValue(), Gui::PropertyEditor::PropertyEnumItem::setValue(), Gui::PropertyEditor::PropertyStringListItem::setValue(), Gui::PropertyEditor::PropertyFloatListItem::setValue(), Gui::PropertyEditor::PropertyIntegerListItem::setValue(), Gui::PropertyEditor::PropertyColorItem::setValue(), Gui::PropertyEditor::PropertyMaterialItem::setValue(), Gui::PropertyEditor::PropertyMaterialListItem::setValue(), Gui::PropertyEditor::PropertyFileItem::setValue(), Gui::PropertyEditor::PropertyPathItem::setValue(), Gui::PropertyEditor::PropertyTransientFileItem::setValue(), Gui::PropertyEditor::PropertyIntegerItem::toString(), Gui::PropertyEditor::PropertyIntegerConstraintItem::toString(), Gui::PropertyEditor::PropertyFloatItem::toString(), Gui::PropertyEditor::PropertyUnitItem::toString(), Gui::PropertyEditor::PropertyVectorItem::toString(), Gui::PropertyEditor::PropertyVectorListItem::toString(), Gui::PropertyEditor::PropertyVectorDistanceItem::toString(), Gui::PropertyEditor::PropertyRotationItem::value(), and Gui::PropertyEditor::PropertyPlacementItem::value().
◆ isBound()
bool ExpressionBinding::isBound |
( |
| ) |
const |
Referenced by apply(), Gui::QuantitySpinBox::apply(), Gui::QuantitySpinBox::boundToName(), Gui::PropertyEditor::PropertyItem::createExpressionEditor(), Gui::QuantitySpinBox::event(), Gui::QuantitySpinBox::focusInEvent(), getExpression(), Gui::ExpressionSpinBox::handleKeyEvent(), hasExpression(), Gui::ExpressionBindingPy::isBound(), Gui::InputField::newInput(), Gui::ExpressionSpinBox::onChange(), Gui::QuantitySpinBox::openFormulaDialog(), Gui::ExpressionSpinBox::openFormulaDialog(), Gui::PropertyEditor::PropertyEnumItem::propertyBound(), Gui::ExpLineEdit::resizeEvent(), Gui::QuantitySpinBox::setExpression(), Gui::ExpressionSpinBox::setExpression(), Gui::ExpLineEdit::setExpression(), and Gui::ExpressionSpinBox::updateExpression().
◆ makeLabel()
void ExpressionBinding::makeLabel |
( |
QLineEdit * |
parent | ) |
|
|
protected |
◆ objectDeleted()
◆ onChange()
virtual void Gui::ExpressionBinding::onChange |
( |
| ) |
|
|
protectedvirtual |
◆ setAutoApply()
void Gui::ExpressionBinding::setAutoApply |
( |
bool |
value | ) |
|
◆ setExpression()
void Gui::ExpressionBinding::setExpression |
( |
std::shared_ptr< App::Expression > |
expr | ) |
|
|
protectedvirtual |
Reimplemented in Gui::QuantitySpinBox, Gui::ExpressionSpinBox, and Gui::ExpLineEdit.
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::PropertyEditor::PropertyItem::onChange(), Gui::QuantitySpinBox::setExpression(), Gui::ExpressionSpinBox::setExpression(), and Gui::ExpLineEdit::setExpression().
◆ unbind()
void ExpressionBinding::unbind |
( |
| ) |
|
◆ defaultPalette
QPalette Gui::ExpressionBinding::defaultPalette |
|
protected |
◆ expressionchanged
boost::signals2::scoped_connection Gui::ExpressionBinding::expressionchanged |
|
protected |
◆ iconHeight
int Gui::ExpressionBinding::iconHeight |
|
protected |
◆ iconLabel
Referenced by Gui::QuantitySpinBox::bind(), Gui::ExpressionSpinBox::bind(), Gui::ExpLineEdit::bind(), Gui::ExpressionSpinBox::clearExpression(), Gui::ExpLineEdit::ExpLineEdit(), Gui::ExpressionSpinBox::ExpressionSpinBox(), Gui::InputField::InputField(), makeLabel(), Gui::InputField::newInput(), Gui::InputField::resizeEvent(), Gui::ExpLineEdit::resizeEvent(), Gui::ExpressionSpinBox::resizeWidget(), Gui::ExpLineEdit::setExpression(), Gui::ExpressionSpinBox::showInvalidExpression(), Gui::ExpressionSpinBox::showValidExpression(), and Gui::InputField::updateIconLabel().
◆ m_autoApply
bool Gui::ExpressionBinding::m_autoApply |
|
protected |
◆ objectdeleted
boost::signals2::scoped_connection Gui::ExpressionBinding::objectdeleted |
|
protected |
The documentation for this class was generated from the following files:
- FreeCAD/src/Gui/ExpressionBinding.h
- FreeCAD/src/Gui/ExpressionBinding.cpp