Mantid
|
Attribute visitor to create a QtProperty. More...
Public Member Functions | |
CreateAttributePropertyForFunctionTreeView (FunctionTreeView *browser, QtProperty *parent, const QString &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 More... | |
FunctionTreeView::AProperty | operator() (const double &d) const |
implements static_visitor's operator() for double More... | |
FunctionTreeView::AProperty | operator() (const int &i) const |
implements static_visitor's operator() for int More... | |
FunctionTreeView::AProperty | operator() (const std::string &str) const |
implements static_visitor's operator() for std::string More... | |
FunctionTreeView::AProperty | operator() (const std::vector< double > &v) const |
implements static_visitor's operator() for vector More... | |
virtual | ~ConstAttributeVisitor ()=default |
Virtual destructor. More... | |
Protected Member Functions | |
FunctionTreeView::AProperty | apply (const bool &b) const override |
Create bool property. More... | |
FunctionTreeView::AProperty | apply (const double &d) const override |
Create double property. More... | |
FunctionTreeView::AProperty | apply (const int &i) const override |
Create int property. More... | |
FunctionTreeView::AProperty | apply (const std::string &str) const override |
Create string property. More... | |
FunctionTreeView::AProperty | apply (const std::vector< double > &v) const override |
Create vector property. More... | |
Protected Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< FunctionTreeView::AProperty > | |
virtual FunctionTreeView::AProperty | apply (const bool &i) const=0 |
Implement this mathod to access attribute as bool. More... | |
virtual FunctionTreeView::AProperty | apply (const double &d) const=0 |
Implement this mathod to access attribute as double. More... | |
virtual FunctionTreeView::AProperty | apply (const int &i) const=0 |
Implement this mathod to access attribute as int. More... | |
virtual FunctionTreeView::AProperty | apply (const std::string &str) const=0 |
Implement this mathod to access attribute as string. More... | |
virtual FunctionTreeView::AProperty | apply (const std::vector< double > &) const=0 |
Implement this mathod to access attribute as vector. More... | |
void | evaluateValidator (T1 &inputData) const |
Evaluates the validator associated with attribute this visitor is to visit. More... | |
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. More... | |
Attribute visitor to create a QtProperty.
Depending on the attribute type the appropriate apply() method is used.
Definition at line 469 of file FunctionTreeView.cpp.
|
inline |
Definition at line 472 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 525 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 509 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 517 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 483 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 533 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 |
Definition at line 560 of file FunctionTreeView.cpp.
Referenced by apply().
|
private |
Definition at line 558 of file FunctionTreeView.cpp.
Referenced by apply(), and CreateAttributePropertyForFunctionTreeView().
|
private |
Definition at line 559 of file FunctionTreeView.cpp.
Referenced by apply(), and CreateAttributePropertyForFunctionTreeView().