BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The form for a spherical axis: contains the bare bone widgets for the user to enter the number of bins and to select the range in degrees (minimum & maximum) The input widgets will be inserted in the form given in the constructor.
Definition at line 29 of file SphericalAxisEditor.h.
Signals | |
void | dataChanged () |
Public Member Functions | |
SphericalAxisForm (QFormLayout *form, QWidget *parent) | |
void | setEnabled (bool enabled) |
void | setItem (BasicAxisItem *item) |
void | updateData () |
Reload UI from data. More... | |
Private Slots | |
void | onMaximumValueChanged (double value) |
void | onMinimumValueChanged (double value) |
void | onNbinsValueChanged (int value) |
Private Attributes | |
BasicAxisItem * | m_item |
QDoubleSpinBox * | m_maximumSpinBox |
QDoubleSpinBox * | m_minimumSpinBox |
QSpinBox * | m_nbinsSpinBox |
SphericalAxisForm::SphericalAxisForm | ( | QFormLayout * | form, |
QWidget * | parent | ||
) |
Definition at line 22 of file SphericalAxisEditor.cpp.
References m_maximumSpinBox, m_minimumSpinBox, m_nbinsSpinBox, onMaximumValueChanged(), onMinimumValueChanged(), and onNbinsValueChanged().
|
signal |
|
privateslot |
Definition at line 97 of file SphericalAxisEditor.cpp.
References dataChanged(), m_item, m_minimumSpinBox, BasicAxisItem::max(), BasicAxisItem::min(), and BasicAxisItem::setUpperBound().
Referenced by SphericalAxisForm().
|
privateslot |
Definition at line 87 of file SphericalAxisEditor.cpp.
References dataChanged(), m_item, m_maximumSpinBox, BasicAxisItem::max(), BasicAxisItem::min(), and BasicAxisItem::setLowerBound().
Referenced by SphericalAxisForm().
|
privateslot |
Definition at line 79 of file SphericalAxisEditor.cpp.
References BasicAxisItem::binCount(), dataChanged(), m_item, and BasicAxisItem::setBinCount().
Referenced by SphericalAxisForm().
void SphericalAxisForm::setEnabled | ( | bool | enabled | ) |
Definition at line 56 of file SphericalAxisEditor.cpp.
References m_maximumSpinBox, m_minimumSpinBox, and m_nbinsSpinBox.
Referenced by InclinationAnglesEditor::onAxisTypeSelected(), and setItem().
void SphericalAxisForm::setItem | ( | BasicAxisItem * | item | ) |
Definition at line 49 of file SphericalAxisEditor.cpp.
References m_item, setEnabled(), and updateData().
Referenced by InclinationAnglesEditor::onAxisTypeSelected().
void SphericalAxisForm::updateData | ( | ) |
Reload UI from data.
Definition at line 63 of file SphericalAxisEditor.cpp.
References BasicAxisItem::binCount(), m_item, m_maximumSpinBox, m_minimumSpinBox, m_nbinsSpinBox, BasicAxisItem::max(), and BasicAxisItem::min().
Referenced by setItem(), and InclinationAnglesEditor::updateIndicators().
|
private |
Definition at line 51 of file SphericalAxisEditor.h.
Referenced by onMaximumValueChanged(), onMinimumValueChanged(), onNbinsValueChanged(), setItem(), and updateData().
|
private |
Definition at line 50 of file SphericalAxisEditor.h.
Referenced by SphericalAxisForm(), onMinimumValueChanged(), setEnabled(), and updateData().
|
private |
Definition at line 49 of file SphericalAxisEditor.h.
Referenced by SphericalAxisForm(), onMaximumValueChanged(), setEnabled(), and updateData().
|
private |
Definition at line 48 of file SphericalAxisEditor.h.
Referenced by SphericalAxisForm(), setEnabled(), and updateData().