23 #include <QFormLayout>
27 : QGroupBox(
"Detector parameters", parent)
28 , m_instrument(instrument)
33 auto* detectorTypeCombo =
35 createDetectorWidgets();
Defines class DetectorEditor.
Defines class GroupBoxCollapser.
Defines class InstrumentItem and all its children.
Defines class RectangularDetectorEditor.
Defines class RectangularDetectorItem.
Defines class SphericalDetectorEditor.
Defines class SphericalDetectorItem.
void createDetectorWidgets()
DetectorEditor(QWidget *parent, Instrument2DItem *item)
QFormLayout * m_formLayout
Instrument2DItem * m_instrument
static GroupBoxCollapser * installIntoGroupBox(QGroupBox *groupBox, bool expanded=true)
SelectionDescriptor< DetectorItem * > detectorSelection() const
QComboBox * createSelectionCombo(QWidget *parent, const SelectionDescriptor< T > d, std::function< void(int)> slot=nullptr)
Create a combo box with the information found in a selection descriptor.