|
Mantid
|
Visitor setting new attribute value. More...
Public Member Functions | |
| SetAttributeProperty (FitPropertyBrowser *browser, QtProperty *prop) | |
Public Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< T > | |
| T | operator() (const bool &b) const |
| implements static_visitor's operator() for bool | |
| T | operator() (const double &d) const |
| implements static_visitor's operator() for double | |
| T | operator() (const int &i) const |
| implements static_visitor's operator() for int | |
| T | operator() (const std::string &str) const |
| implements static_visitor's operator() for std::string | |
| T | operator() (const std::vector< double > &v) const |
| implements static_visitor's operator() for vector | |
| virtual | ~ConstAttributeVisitor ()=default |
| Virtual destructor. | |
Protected Member Functions | |
| void | apply (const bool &b) const override |
| Set bool property. | |
| void | apply (const double &d) const override |
| Set double property. | |
| void | apply (const int &i) const override |
| Set int property. | |
| void | apply (const std::string &str) const override |
| Set string property. | |
| void | apply (const std::vector< double > &) const override |
| Set vector property. | |
Protected Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< T > | |
| template<typename T1 > | |
| void | evaluateValidator (T1 &inputData) const |
| Evaluates the validator associated with attribute this visitor is to visit. | |
Private Attributes | |
| FitPropertyBrowser * | m_browser |
| QtProperty * | m_prop |
Additional Inherited Members | |
Protected Attributes inherited from Mantid::API::IFunction::ConstAttributeVisitor< T > | |
| Mantid::Kernel::IValidator_sptr | m_validator = Mantid::Kernel::IValidator_sptr() |
| Validator against which to evaluate attribute value to set. | |
Visitor setting new attribute value.
Depending on the attribute type the appropriate apply method is used.
Definition at line 777 of file PropertyHandler.cpp.
|
inline |
Definition at line 779 of file PropertyHandler.cpp.
|
inlineoverrideprotectedvirtual |
Set bool property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< T >.
Definition at line 801 of file PropertyHandler.cpp.
References MantidQt::MantidWidgets::FitPropertyBrowser::m_boolManager, m_browser, MantidQt::MantidWidgets::FitPropertyBrowser::m_changeSlotsEnabled, and m_prop.
|
inlineoverrideprotectedvirtual |
Set double property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< T >.
Definition at line 789 of file PropertyHandler.cpp.
References Mantid::Geometry::d, m_browser, MantidQt::MantidWidgets::FitPropertyBrowser::m_changeSlotsEnabled, MantidQt::MantidWidgets::FitPropertyBrowser::m_doubleManager, and m_prop.
|
inlineoverrideprotectedvirtual |
Set int property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< T >.
Definition at line 795 of file PropertyHandler.cpp.
References m_browser, MantidQt::MantidWidgets::FitPropertyBrowser::m_changeSlotsEnabled, MantidQt::MantidWidgets::FitPropertyBrowser::m_intManager, and m_prop.
|
inlineoverrideprotectedvirtual |
Set string property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< T >.
Definition at line 783 of file PropertyHandler.cpp.
References m_browser, MantidQt::MantidWidgets::FitPropertyBrowser::m_changeSlotsEnabled, m_prop, and MantidQt::MantidWidgets::FitPropertyBrowser::setStringPropertyValue().
|
inlineoverrideprotectedvirtual |
Set vector property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< T >.
Definition at line 807 of file PropertyHandler.cpp.
|
private |
|
private |