BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Widget to edit properties of a SpecularDataItem or a Data1DViewItem.
Definition at line 35 of file SpecularDataPropertyWidget.h.
Public Member Functions | |
SpecularDataPropertyWidget (QWidget *parent=nullptr) | |
const JobItem * | jobItem () const |
void | setItem (Data1DViewItem *item) |
void | setItem (SpecularDataItem *item) |
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 | setCurrentItem (SessionItem *item) |
void | updateUIValues () |
Private Attributes | |
SessionItem * | m_item |
QFormLayout * | m_mainLayout |
QWidget * | m_parent |
QList< function< void()> > | m_updaters |
|
explicit |
Definition at line 31 of file SpecularDataPropertyWidget.cpp.
References m_mainLayout.
|
private |
Definition at line 159 of file SpecularDataPropertyWidget.cpp.
References m_updaters.
|
private |
Definition at line 153 of file SpecularDataPropertyWidget.cpp.
References SessionItem::setValue(), and SessionItem::value().
Referenced by setCurrentItem().
|
private |
Definition at line 173 of file SpecularDataPropertyWidget.cpp.
References SelectionDescriptor< T >::currentIndex(), m_updaters, SelectionDescriptor< T >::options, and SelectionDescriptor< T >::setCurrentIndex().
Referenced by setCurrentItem().
|
private |
Definition at line 132 of file SpecularDataPropertyWidget.cpp.
References DoubleSpinBox::baseValueChanged(), m_updaters, and DoubleDescriptor::set.
Referenced by setCurrentItem().
|
private |
Definition at line 143 of file SpecularDataPropertyWidget.cpp.
References m_updaters, SessionItem::setValue(), and SessionItem::value().
Referenced by setCurrentItem().
const JobItem * SpecularDataPropertyWidget::jobItem | ( | ) | const |
Definition at line 55 of file SpecularDataPropertyWidget.cpp.
References SessionItemWidget::currentItem(), and m_parent.
Referenced by setCurrentItem().
|
private |
Definition at line 64 of file SpecularDataPropertyWidget.cpp.
References GUI::Util::Layout::clearLayout(), createCheckBox(), createComboBox(), createDoubleSpinbox(), createTextEdit(), jobItem(), AmplitudeAxisItem::logScaleItem(), m_item, m_mainLayout, m_updaters, SessionItem::mapper(), BasicAxisItem::max(), BasicAxisItem::min(), GUI::RealSpace::Particles::name(), ModelMapper::setOnChildPropertyChange(), ModelMapper::setOnPropertyChange(), BasicAxisItem::titleItem(), ModelMapper::unsubscribe(), DataItem::updateAxesUnits(), and updateUIValues().
Referenced by setItem().
void SpecularDataPropertyWidget::setItem | ( | Data1DViewItem * | item | ) |
Definition at line 50 of file SpecularDataPropertyWidget.cpp.
References setCurrentItem().
void SpecularDataPropertyWidget::setItem | ( | SpecularDataItem * | item | ) |
Definition at line 45 of file SpecularDataPropertyWidget.cpp.
References setCurrentItem().
Referenced by SpecularDataWidget::setItem(), and FitComparisonWidget1D::subscribeToItem().
|
private |
Definition at line 190 of file SpecularDataPropertyWidget.cpp.
References m_updaters.
Referenced by setCurrentItem().
|
private |
Definition at line 57 of file SpecularDataPropertyWidget.h.
Referenced by setCurrentItem().
|
private |
Definition at line 58 of file SpecularDataPropertyWidget.h.
Referenced by SpecularDataPropertyWidget(), and setCurrentItem().
|
private |
Definition at line 56 of file SpecularDataPropertyWidget.h.
Referenced by jobItem().
|
private |
Definition at line 59 of file SpecularDataPropertyWidget.h.
Referenced by createCheckBox(), createComboBox(), createDoubleSpinbox(), createTextEdit(), setCurrentItem(), and updateUIValues().