21 #include <QVBoxLayout>
25 , m_detectorTypeEditor(
29 auto mainLayout =
new QVBoxLayout;
32 mainLayout->addStretch();
33 setLayout(mainLayout);
39 [
this](
const QString&
name) {
#define ASSERT(condition)
Defines ComponentEditor class.
Defines classes DetectorItems.
Defines class DetectorPresenter.
Defines class GISASDetectorEditor.
Defines InstrumentItems classes.
Component editor for SessionItem.
void setItem(SessionItem *item)
Contains stack of detector editors and the logic to show proper editor for certain type of detector i...
ComponentEditor * m_detectorTypeEditor
void unsubscribeFromItem()
DetectorPresenter * m_detectorPresenter
GISASDetectorEditor(QWidget *parent=nullptr)
void updateDetectorPresenter()
Shows detector editor corresponding to the currently selected detector in detectorGroup.
Instrument2DItem * instrumentItem()
static const QString P_DETECTOR
void setOnPropertyChange(std::function< void(QString)> f, const void *caller=0)
ModelMapper * mapper()
Returns the current model mapper of this item. Creates new one if necessary.
QString const & name(EShape k)