Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::CreateAttributeProperty Class Reference

Attribute visitor to create a QtProperty. More...

Inheritance diagram for MantidQt::MantidWidgets::CreateAttributeProperty:
Mantid::API::IFunction::ConstAttributeVisitor< QtProperty * >

Public Member Functions

 CreateAttributeProperty (FitPropertyBrowser *browser, PropertyHandler *handler, QString name, Mantid::Kernel::IValidator_sptr validator=nullptr)
 
- Public Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< QtProperty * >
QtProperty * operator() (const bool &b) const
 implements static_visitor's operator() for bool More...
 
QtProperty * operator() (const double &d) const
 implements static_visitor's operator() for double More...
 
QtProperty * operator() (const int &i) const
 implements static_visitor's operator() for int More...
 
QtProperty * operator() (const std::string &str) const
 implements static_visitor's operator() for std::string More...
 
QtProperty * operator() (const std::vector< double > &v) const
 implements static_visitor's operator() for vector More...
 
virtual ~ConstAttributeVisitor ()=default
 Virtual destructor. More...
 

Protected Member Functions

QtProperty * apply (const bool &b) const override
 Create bool property. More...
 
QtProperty * apply (const double &d) const override
 Create double property. More...
 
QtProperty * apply (const int &i) const override
 Create int property. More...
 
QtProperty * apply (const std::string &str) const override
 Create string property. More...
 
QtProperty * apply (const std::vector< double > &b) const override
 Create vector property. More...
 
- Protected Member Functions inherited from Mantid::API::IFunction::ConstAttributeVisitor< QtProperty * >
virtual QtProperty * apply (const bool &i) const=0
 Implement this mathod to access attribute as bool. More...
 
virtual QtProperty * apply (const double &d) const=0
 Implement this mathod to access attribute as double. More...
 
virtual QtProperty * apply (const int &i) const=0
 Implement this mathod to access attribute as int. More...
 
virtual QtProperty * apply (const std::string &str) const=0
 Implement this mathod to access attribute as string. More...
 
virtual QtProperty * 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

FitPropertyBrowserm_browser
 
PropertyHandlerm_handler
 
QString m_name
 

Additional Inherited Members

- Protected Attributes inherited from Mantid::API::IFunction::ConstAttributeVisitor< QtProperty * >
Mantid::Kernel::IValidator_sptr m_validator
 Validator against which to evaluate attribute value to set. More...
 

Detailed Description

Attribute visitor to create a QtProperty.

Depending on the attribute type the appropriate apply method is used.

Definition at line 134 of file PropertyHandler.cpp.

Constructor & Destructor Documentation

◆ CreateAttributeProperty()

MantidQt::MantidWidgets::CreateAttributeProperty::CreateAttributeProperty ( FitPropertyBrowser browser,
PropertyHandler handler,
QString  name,
Mantid::Kernel::IValidator_sptr  validator = nullptr 
)
inline

Member Function Documentation

◆ apply() [1/5]

QtProperty * MantidQt::MantidWidgets::CreateAttributeProperty::apply ( const bool &  b) const
inlineoverrideprotectedvirtual

◆ apply() [2/5]

QtProperty * MantidQt::MantidWidgets::CreateAttributeProperty::apply ( const double &  d) const
inlineoverrideprotectedvirtual

◆ apply() [3/5]

QtProperty * MantidQt::MantidWidgets::CreateAttributeProperty::apply ( const int &  i) const
inlineoverrideprotectedvirtual

◆ apply() [4/5]

QtProperty * MantidQt::MantidWidgets::CreateAttributeProperty::apply ( const std::string &  str) const
inlineoverrideprotectedvirtual

◆ apply() [5/5]

QtProperty * MantidQt::MantidWidgets::CreateAttributeProperty::apply ( const std::vector< double > &  b) const
inlineoverrideprotectedvirtual

Member Data Documentation

◆ m_browser

FitPropertyBrowser* MantidQt::MantidWidgets::CreateAttributeProperty::m_browser
private

Definition at line 199 of file PropertyHandler.cpp.

Referenced by apply().

◆ m_handler

PropertyHandler* MantidQt::MantidWidgets::CreateAttributeProperty::m_handler
private

Definition at line 200 of file PropertyHandler.cpp.

Referenced by apply().

◆ m_name

QString MantidQt::MantidWidgets::CreateAttributeProperty::m_name
private

Definition at line 201 of file PropertyHandler.cpp.

Referenced by apply().


The documentation for this class was generated from the following file: