21 #include <QFormLayout> 
   25     : QGroupBox(
"Resolution function", parent)
 
   30     setProperty(
"subgroup", 
true); 
 
   32     m_formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
 
   36             createResolutionWidgets();
 
   57                 [=](
double newValue) {
 
   58                     p->setSigmaX(newValue);
 
   63                 [=](
double newValue) {
 
   64                     p->setSigmaY(newValue);
 
Defines classes DetectorItems.
 
Defines class DoubleSpinBox.
 
Defines class GroupBoxCollapser.
 
A widget for editing the alignment of a detector.
 
Defines family of ResolutionFunctionItem.
 
SelectionDescriptor< ResolutionFunctionItem * > resolutionFunctionSelection() const
 
void baseValueChanged(double newBaseValue)
Emitted whenever the value changes.
 
static GroupBoxCollapser * installIntoGroupBox(QGroupBox *groupBox, bool expanded=true)
 
void createResolutionWidgets()
 
ResolutionFunctionEditor(Unit unit, QWidget *parent, DetectorItem *item)
 
QFormLayout * m_formLayout
 
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.
 
QSpinBox * createSpinBox(QWidget *parent, const UIntDescriptor &d, std::function< void(uint)> slot=nullptr)
Create a spin box with the information found in a UIntDescriptor.