BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Property to carry text, color and identifier. More...
Public Member Functions | |
ExternalProperty () | |
ExternalProperty (std::string text, QColor color, std::string id={}) | |
QColor | color () const |
std::string | identifier () const |
bool | isValid () const |
bool | operator!= (const ExternalProperty &other) const |
bool | operator< (const ExternalProperty &other) const |
bool | operator== (const ExternalProperty &other) const |
std::string | text () const |
Static Public Member Functions | |
static ExternalProperty | undefined () |
Private Attributes | |
QColor | m_color |
std::string | m_identifier |
std::string | m_text |
Property to carry text, color and identifier.
Can be used to link items with each other.
Definition at line 28 of file externalproperty.h.
|
default |
Referenced by undefined().
ExternalProperty::ExternalProperty | ( | std::string | text, |
QColor | color, | ||
std::string | id = {} |
||
) |
Definition at line 21 of file externalproperty.cpp.
QColor ExternalProperty::color | ( | ) | const |
Definition at line 36 of file externalproperty.cpp.
References m_color.
Referenced by ModelView::Utils::DecorationRole(), and TEST_F().
std::string ExternalProperty::identifier | ( | ) | const |
Definition at line 41 of file externalproperty.cpp.
References m_identifier.
Referenced by TEST_F(), gui2::SLDElementController::updateSLDFromView(), and gui2::SLDElementController::updateToView().
bool ExternalProperty::isValid | ( | ) | const |
Definition at line 46 of file externalproperty.cpp.
References m_color, m_identifier, and m_text.
Referenced by TEST_F().
bool ExternalProperty::operator!= | ( | const ExternalProperty & | other | ) | const |
Definition at line 56 of file externalproperty.cpp.
bool ExternalProperty::operator< | ( | const ExternalProperty & | other | ) | const |
bool ExternalProperty::operator== | ( | const ExternalProperty & | other | ) | const |
std::string ExternalProperty::text | ( | ) | const |
|
static |
Definition at line 26 of file externalproperty.cpp.
References ExternalProperty().
Referenced by gui2::ExperimentalScanItem::ExperimentalScanItem(), gui2::LayerItem::LayerItem(), gui2::Utils::FindProperty(), and gui2::MaterialModel::material_property().
|
private |
Definition at line 49 of file externalproperty.h.
Referenced by color(), isValid(), operator<(), and operator==().
|
private |
Definition at line 50 of file externalproperty.h.
Referenced by identifier(), isValid(), operator<(), and operator==().
|
private |
Definition at line 48 of file externalproperty.h.
Referenced by isValid(), operator<(), operator==(), and text().