BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Abstract widget base class to contain a selection, defined by a SelectionDescriptor.
This abstract base class contains only the selection combo box and the infrastructure to call the SampleEditorController to change the current selection. A derived class has to implement the showing of the contents (method createContent).
Definition at line 30 of file SelectionContainerForm.h.
Public Member Functions | |
virtual void | createContent ()=0 |
Protected Member Functions | |
AbstractSelectionContainerForm (QWidget *parent, SampleEditorController *ec) | |
template<typename T > | |
void | initUI (const SelectionDescriptor< T > &d) |
Protected Attributes | |
QComboBox * | m_combo |
SampleEditorController * | m_ec |
QGridLayout * | m_gridLayout |
Private Member Functions | |
void | clear () |
Remove all descriptors from the layout. More... | |
|
inlineprotected |
Definition at line 35 of file SelectionContainerForm.h.
|
inlineprivate |
Remove all descriptors from the layout.
Definition at line 66 of file SelectionContainerForm.h.
References GUI::Util::Layout::clearLayout(), and m_gridLayout.
Referenced by initUI().
|
pure virtual |
Implemented in LatticeTypeSelectionForm, and SelectionContainerForm.
Referenced by initUI(), and SampleEditorController::setCurrentIndex().
|
inlineprotected |
Definition at line 42 of file SelectionContainerForm.h.
References clear(), createContent(), SelectionDescriptor< T >::currentIndex(), WheelEventEater::install(), m_combo, m_ec, m_gridLayout, SelectionDescriptor< T >::options, and SampleEditorController::setCurrentIndex().
Referenced by LatticeTypeSelectionForm::LatticeTypeSelectionForm(), and SelectionContainerForm::SelectionContainerForm().
|
protected |
Definition at line 76 of file SelectionContainerForm.h.
Referenced by initUI().
|
protected |
Definition at line 77 of file SelectionContainerForm.h.
Referenced by SelectionContainerForm::createContent(), LatticeTypeSelectionForm::createContent(), and initUI().
|
protected |
Definition at line 75 of file SelectionContainerForm.h.
Referenced by clear(), SelectionContainerForm::createContent(), LatticeTypeSelectionForm::createContent(), and initUI().