22 const QString SphericalDetectorPresentation =
"Spherical";
23 const QString RectangularDetectorPresentation =
"Rectangular";
28 registerWidget(SphericalDetectorPresentation, create_new<SphericalDetectorEditor>);
29 registerWidget(RectangularDetectorPresentation, create_new<RectangularDetectorEditor>);
38 if (
currentItem()->modelType() ==
"SphericalDetector")
39 return SphericalDetectorPresentation;
40 else if (
currentItem()->modelType() ==
"RectangularDetector")
41 return RectangularDetectorPresentation;
43 throw GUIHelpers::Error(
"DetectorPresenter::itemPresentation() -> Error. Wrong item "
51 return QStringList() << SphericalDetectorPresentation << RectangularDetectorPresentation;
Defines class DetectorPresenter.
Defines class GUIHelpers functions.
Defines class RectangularDetectorEditor.
Defines class SessionItem.
Defines class SphericalDetectorEditor.
QStringList activePresentationList(SessionItem *item) override
Returns list of active presentations for given item.
QString itemPresentation() const override
Presentation which should be shown for current item.
DetectorPresenter(QWidget *parent=nullptr)