BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Tracks property change (axes range, units etc) for the collection of IntensityDataItems and sets same properties for all of them.
Definition at line 27 of file PropertyRepeater.h.
Public Member Functions | |
PropertyRepeater (QObject *parent=nullptr, bool repeat_child_properties=false) | |
~PropertyRepeater () override | |
void | addItem (SessionItem *sessionItem) |
void | clear () |
void | setActive (bool isActive) |
Private Member Functions | |
void | onPropertyChanged (SessionItem *item, const QString &propertyName) |
void | setOnChildPropertyChange (SessionItem *item, const QString &propertyName) |
QVector< SessionItem * > | targetItems (SessionItem *sourceItem) |
Returns list of target items to update their properties. More... | |
Private Attributes | |
bool | m_block_repeater |
QVector< SessionItem * > | m_dataItems |
bool | m_repeat_child_properties |
|
explicit |
Definition at line 18 of file PropertyRepeater.cpp.
|
override |
void PropertyRepeater::addItem | ( | SessionItem * | sessionItem | ) |
Definition at line 31 of file PropertyRepeater.cpp.
References m_dataItems, m_repeat_child_properties, SessionItem::mapper(), GUI::RealSpace::Particles::name(), onPropertyChanged(), setOnChildPropertyChange(), ModelMapper::setOnChildPropertyChange(), ModelMapper::setOnItemDestroy(), and ModelMapper::setOnPropertyChange().
Referenced by FitComparisonController2D::setItem(), and FitComparison1DViewController::setItem().
void PropertyRepeater::clear | ( | ) |
Definition at line 52 of file PropertyRepeater.cpp.
References m_dataItems.
Referenced by FitComparisonController2D::clear(), and FitComparison1DViewController::clear().
|
private |
Definition at line 65 of file PropertyRepeater.cpp.
References SessionItem::getItemValue(), m_block_repeater, and targetItems().
Referenced by addItem().
void PropertyRepeater::setActive | ( | bool | isActive | ) |
Definition at line 60 of file PropertyRepeater.cpp.
References m_block_repeater.
|
private |
Definition at line 78 of file PropertyRepeater.cpp.
References SessionItem::getItemValue(), m_block_repeater, SessionItem::parentItem(), SessionItem::tagFromItem(), and targetItems().
Referenced by addItem().
|
private |
Returns list of target items to update their properties.
Definition at line 95 of file PropertyRepeater.cpp.
References m_dataItems.
Referenced by onPropertyChanged(), and setOnChildPropertyChange().
|
private |
Definition at line 45 of file PropertyRepeater.h.
Referenced by onPropertyChanged(), setActive(), and setOnChildPropertyChange().
|
private |
Definition at line 44 of file PropertyRepeater.h.
Referenced by ~PropertyRepeater(), addItem(), clear(), and targetItems().
|
private |
Definition at line 46 of file PropertyRepeater.h.
Referenced by addItem().