BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Widget to edit properties of an IntensityDataItem.
Definition at line 33 of file IntensityDataPropertyWidget.h.
Public Member Functions | |
IntensityDataPropertyWidget (QWidget *parent=nullptr) | |
~IntensityDataPropertyWidget () | |
const JobItem * | jobItem () const |
void | setItem (IntensityDataItem *mainItem, IntensityDataItem *realItem=nullptr) |
Private Member Functions | |
QWidget * | createCheckBox (const QString &title, function< bool()> getter, function< void(bool)> setter) |
QWidget * | createCheckBox (const QString &title, SessionItem *item) |
QWidget * | createComboBox (SelectionDescriptor< QString > d) |
QWidget * | createDoubleSpinbox (DoubleDescriptor d) |
QWidget * | createTextEdit (SessionItem *item) |
void | updateUIValues () |
Private Attributes | |
IntensityDataItem * | m_item |
QFormLayout * | m_mainLayout |
QList< function< void()> > | m_updaters |
QWidget * | parent |
|
explicit |
Definition at line 30 of file IntensityDataPropertyWidget.cpp.
References m_mainLayout.
IntensityDataPropertyWidget::~IntensityDataPropertyWidget | ( | ) |
Definition at line 44 of file IntensityDataPropertyWidget.cpp.
References m_item, SessionItem::mapper(), and ModelMapper::unsubscribe().
|
private |
Definition at line 167 of file IntensityDataPropertyWidget.cpp.
References m_updaters.
|
private |
Definition at line 161 of file IntensityDataPropertyWidget.cpp.
References SessionItem::setValue(), and SessionItem::value().
Referenced by setItem().
|
private |
Definition at line 181 of file IntensityDataPropertyWidget.cpp.
References SelectionDescriptor< T >::currentIndex(), m_updaters, SelectionDescriptor< T >::options, and SelectionDescriptor< T >::setCurrentIndex().
Referenced by setItem().
|
private |
Definition at line 139 of file IntensityDataPropertyWidget.cpp.
References DoubleSpinBox::baseValueChanged(), m_updaters, DoubleDescriptor::set, and DoubleDescriptor::tooltip.
Referenced by setItem().
|
private |
Definition at line 151 of file IntensityDataPropertyWidget.cpp.
References m_updaters, SessionItem::setValue(), and SessionItem::value().
Referenced by setItem().
const JobItem * IntensityDataPropertyWidget::jobItem | ( | ) | const |
Definition at line 130 of file IntensityDataPropertyWidget.cpp.
References SessionItemWidget::currentItem(), and parent.
Referenced by setItem().
void IntensityDataPropertyWidget::setItem | ( | IntensityDataItem * | mainItem, |
IntensityDataItem * | realItem = nullptr |
||
) |
Definition at line 50 of file IntensityDataPropertyWidget.cpp.
References DataItem::axesUnits(), GUI::Util::Layout::clearLayout(), createCheckBox(), createComboBox(), createDoubleSpinbox(), createTextEdit(), IntensityDataItem::gradient(), IntensityDataItem::isInterpolated(), jobItem(), AmplitudeAxisItem::logScaleItem(), m_item, m_mainLayout, m_updaters, SessionItem::mapper(), BasicAxisItem::max(), BasicAxisItem::min(), GUI::RealSpace::Particles::name(), IntensityDataItem::setInterpolated(), ModelMapper::setOnChildPropertyChange(), ModelMapper::setOnItemDestroy(), ModelMapper::setOnPropertyChange(), BasicAxisItem::titleItem(), ModelMapper::unsubscribe(), DataItem::updateAxesUnits(), updateUIValues(), BasicAxisItem::visibilityItem(), IntensityDataItem::xAxisItem(), IntensityDataItem::yAxisItem(), and IntensityDataItem::zAxisItem().
Referenced by IntensityDataWidget::onFFTAction(), MaskEditorPropertyPanel::resetContext(), ProjectionsEditor::resetContext(), ProjectionsEditor::setContext(), IntensityDataWidget::setItem(), MaskEditorPropertyPanel::setMaskContext(), MaskEditorPropertyPanel::setPanelHidden(), and FitComparisonWidget::subscribeToItem().
|
private |
Definition at line 198 of file IntensityDataPropertyWidget.cpp.
References m_updaters.
Referenced by setItem().
|
private |
Definition at line 54 of file IntensityDataPropertyWidget.h.
Referenced by ~IntensityDataPropertyWidget(), and setItem().
|
private |
Definition at line 55 of file IntensityDataPropertyWidget.h.
Referenced by IntensityDataPropertyWidget(), and setItem().
|
private |
Definition at line 56 of file IntensityDataPropertyWidget.h.
Referenced by createCheckBox(), createComboBox(), createDoubleSpinbox(), createTextEdit(), setItem(), and updateUIValues().
|
private |
Definition at line 53 of file IntensityDataPropertyWidget.h.
Referenced by jobItem().