BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines info for GroupProperty, i.e. More...
Classes | |
struct | TypeAndLabel |
Public Member Functions | |
GroupInfo (const QString &groupType="", bool is_sorted=true) | |
void | add (const QString &itemType, const QString &itemLabel) |
QString | defaultType () const |
QString | groupType () const |
bool | isValid () |
QStringList | itemLabels () const |
QStringList | itemTypes () const |
void | setDefaultType (const QString &modelType) |
Private Member Functions | |
bool | containsType (const QString &itemType) const |
Default model type for given group (i.e. FFCylinder for formfactor group) More... | |
Private Attributes | |
bool | is_sorted |
QString | m_defaultItemType |
Unique group name for GroupInfoCatalog. More... | |
QString | m_groupType |
Info will be sorted if true, otherwise order of insertion will be preserved. More... | |
QVector< TypeAndLabel > | m_info |
Defines info for GroupProperty, i.e.
collection of model types, their labels and the name of default item's modelType.
Definition at line 25 of file GroupInfo.h.
|
explicit |
Definition at line 18 of file GroupInfo.cpp.
void GroupInfo::add | ( | const QString & | itemType, |
const QString & | itemLabel | ||
) |
Definition at line 23 of file GroupInfo.cpp.
References containsType(), groupType(), is_sorted, and m_info.
Referenced by GroupInfoCatalog::GroupInfoCatalog().
|
private |
Default model type for given group (i.e. FFCylinder for formfactor group)
Definition at line 83 of file GroupInfo.cpp.
References m_info.
Referenced by add(), and setDefaultType().
QString GroupInfo::defaultType | ( | ) | const |
Definition at line 40 of file GroupInfo.cpp.
References m_defaultItemType, and m_info.
Referenced by GroupItemController::GroupItemController().
QString GroupInfo::groupType | ( | ) | const |
Definition at line 55 of file GroupInfo.cpp.
References m_groupType.
Referenced by add(), and GroupInfoCatalog::addInfo().
bool GroupInfo::isValid | ( | ) |
Definition at line 78 of file GroupInfo.cpp.
References m_groupType.
QStringList GroupInfo::itemLabels | ( | ) | const |
Definition at line 69 of file GroupInfo.cpp.
References m_info.
Referenced by GroupItemController::itemLabels().
QStringList GroupInfo::itemTypes | ( | ) | const |
Definition at line 60 of file GroupInfo.cpp.
References m_info.
Referenced by GroupItemController::itemTypes().
void GroupInfo::setDefaultType | ( | const QString & | modelType | ) |
Definition at line 47 of file GroupInfo.cpp.
References containsType(), and m_defaultItemType.
Referenced by GroupInfoCatalog::GroupInfoCatalog().
|
private |
Definition at line 55 of file GroupInfo.h.
Referenced by add().
|
private |
Unique group name for GroupInfoCatalog.
Definition at line 51 of file GroupInfo.h.
Referenced by defaultType(), and setDefaultType().
|
private |
Info will be sorted if true, otherwise order of insertion will be preserved.
Definition at line 53 of file GroupInfo.h.
Referenced by groupType(), and isValid().
|
private |
Definition at line 56 of file GroupInfo.h.
Referenced by add(), containsType(), defaultType(), itemLabels(), and itemTypes().