#include <ExpressionBinding.h>

Public Member Functions

virtual bool apply ()
 
virtual bool apply (const std::string &propName)
 
bool autoApply () const
 
virtual void bind (const App::ObjectIdentifier &_path)
 
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 ()
 

Protected Member Functions

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 ()
 
virtual void setExpression (boost::shared_ptr< App::Expression > expr)
 

Protected Attributes

QPalette defaultPalette
 
boost::signals2::scoped_connection expressionchanged
 
int iconHeight
 
QLabeliconLabel
 
bool m_autoApply
 
boost::signals2::scoped_connection objectdeleted
 

Constructor & Destructor Documentation

◆ ExpressionBinding()

ExpressionBinding::ExpressionBinding ( )

◆ ~ExpressionBinding()

ExpressionBinding::~ExpressionBinding ( )
virtual

Member Function Documentation

◆ apply() [1/2]

◆ apply() [2/2]

◆ autoApply()

bool Gui::ExpressionBinding::autoApply ( ) const

◆ bind() [1/2]

◆ bind() [2/2]

void ExpressionBinding::bind ( const App::Property prop)
virtual

Reimplemented in Gui::PropertyEditor::PropertyItem.

References bind().

◆ expressionChange()

void ExpressionBinding::expressionChange ( const App::ObjectIdentifier id)
protected

References onChange().

Referenced by bind().

◆ getEscapedExpressionString()

std::string ExpressionBinding::getEscapedExpressionString ( ) const
protected

◆ getExpression()

◆ getExpressionString()

std::string ExpressionBinding::getExpressionString ( bool  no_throw = true) const
protected

◆ getIcon()

◆ getPath()

◆ hasExpression()

◆ isBound()

◆ objectDeleted()

void ExpressionBinding::objectDeleted ( const App::DocumentObject obj)
protected

References unbind().

Referenced by bind().

◆ onChange()

virtual void Gui::ExpressionBinding::onChange ( )
protectedvirtual

◆ setAutoApply()

◆ setExpression()

◆ unbind()

void ExpressionBinding::unbind ( )

References expressionchanged, and objectdeleted.

Referenced by objectDeleted().

Member Data Documentation

◆ defaultPalette

◆ expressionchanged

boost::signals2::scoped_connection Gui::ExpressionBinding::expressionchanged
protected

Referenced by bind(), and unbind().

◆ iconHeight

◆ iconLabel

◆ m_autoApply

bool Gui::ExpressionBinding::m_autoApply
protected

◆ objectdeleted

boost::signals2::scoped_connection Gui::ExpressionBinding::objectdeleted
protected

Referenced by bind(), and unbind().


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