|
Mantid
|
Attribute visitor to create a QtProperty. More...
Public Member Functions | |
| CreateAttributePropertyForFunctionTreeView (FunctionTreeView *browser, QtProperty *parent, std::string const &attName) | |
Public Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty > | |
| FunctionTreeView::AProperty | operator() (const bool &b) const |
| implements static_visitor's operator() for bool | |
| FunctionTreeView::AProperty | operator() (const double &d) const |
| implements static_visitor's operator() for double | |
| FunctionTreeView::AProperty | operator() (const int &i) const |
| implements static_visitor's operator() for int | |
| FunctionTreeView::AProperty | operator() (const std::string &str) const |
| implements static_visitor's operator() for std::string | |
| FunctionTreeView::AProperty | operator() (const std::vector< double > &v) const |
| implements static_visitor's operator() for vector | |
| virtual | ~ConstAttributeVisitor ()=default |
| Virtual destructor. | |
Protected Member Functions | |
| FunctionTreeView::AProperty | apply (const bool &b) const override |
| Create bool property. | |
| FunctionTreeView::AProperty | apply (const double &d) const override |
| Create double property. | |
| FunctionTreeView::AProperty | apply (const int &i) const override |
| Create int property. | |
| FunctionTreeView::AProperty | apply (const std::string &str) const override |
| Create string property. | |
| FunctionTreeView::AProperty | apply (const std::vector< double > &v) const override |
| Create vector property. | |
Protected Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty > | |
| void | evaluateValidator (T1 &inputData) const |
| Evaluates the validator associated with attribute this visitor is to visit. | |
Private Attributes | |
| QString | m_attName |
| FunctionTreeView * | m_browser |
| QtProperty * | m_parent |
Additional Inherited Members | |
Protected Attributes inherited from Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty > | |
| Mantid::Kernel::IValidator_sptr | m_validator |
| Validator against which to evaluate attribute value to set. | |
Attribute visitor to create a QtProperty.
Depending on the attribute type the appropriate apply() method is used.
Definition at line 475 of file FunctionTreeView.cpp.
|
inline |
Definition at line 478 of file FunctionTreeView.cpp.
References m_browser, MantidQt::MantidWidgets::FunctionTreeView::m_functionManager, and m_parent.
|
inlineoverrideprotectedvirtual |
Create bool property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty >.
Definition at line 532 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::addProperty(), m_attName, MantidQt::MantidWidgets::FunctionTreeView::m_attributeBoolManager, m_browser, and m_parent.
|
inlineoverrideprotectedvirtual |
Create double property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty >.
Definition at line 515 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::addProperty(), Mantid::Geometry::d, m_attName, MantidQt::MantidWidgets::FunctionTreeView::m_attributeDoubleManager, m_browser, and m_parent.
|
inlineoverrideprotectedvirtual |
Create int property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty >.
Definition at line 523 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::addProperty(), m_attName, MantidQt::MantidWidgets::FunctionTreeView::m_attributeIntManager, m_browser, and m_parent.
|
inlineoverrideprotectedvirtual |
Create string property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty >.
Definition at line 489 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::addProperty(), m_attName, MantidQt::MantidWidgets::FunctionTreeView::m_attributeStringManager, m_browser, MantidQt::MantidWidgets::FunctionTreeView::m_filenameManager, MantidQt::MantidWidgets::FunctionTreeView::m_formulaManager, m_parent, and MantidQt::MantidWidgets::FunctionTreeView::m_workspaceManager.
|
inlineoverrideprotectedvirtual |
Create vector property.
Implements Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty >.
Definition at line 540 of file FunctionTreeView.cpp.
References MantidQt::MantidWidgets::FunctionTreeView::addProperty(), MantidQt::MantidWidgets::FunctionTreeView::AProperty::item, m_attName, MantidQt::MantidWidgets::FunctionTreeView::m_attributeSizeManager, MantidQt::MantidWidgets::FunctionTreeView::m_attributeVectorDoubleManager, MantidQt::MantidWidgets::FunctionTreeView::m_attributeVectorManager, MantidQt::MantidWidgets::FunctionTreeView::m_browser, m_browser, and m_parent.
|
private |
|
private |
Definition at line 565 of file FunctionTreeView.cpp.
Referenced by apply(), apply(), apply(), apply(), apply(), and CreateAttributePropertyForFunctionTreeView().
|
private |
Definition at line 566 of file FunctionTreeView.cpp.
Referenced by apply(), apply(), apply(), apply(), apply(), and CreateAttributePropertyForFunctionTreeView().