BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InstrumentPresenter.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/InstrumentWidgets/InstrumentPresenter.h
6 //! @brief Defines class InstrumentPresenter
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTPRESENTER_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTPRESENTER_H
17 
19 
20 //! Contains stack of instrument editors and the logic to show proper editor for certain type
21 //! of instrument (GISAS, OffSpecular and Specular). Main component of InstrumentEditorWidget.
22 
24  Q_OBJECT
25 
26 public:
27  explicit InstrumentPresenter(QWidget* parent = nullptr);
28 
29 protected:
30  QString itemPresentation() const override;
31  QStringList activePresentationList(SessionItem* item) override;
32 };
33 
34 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_INSTRUMENTPRESENTER_H
Defines class ItemComboWidget.
Contains stack of instrument editors and the logic to show proper editor for certain type of instrume...
QString itemPresentation() const override
Presentation which should be shown for current item.
QStringList activePresentationList(SessionItem *item) override
Returns list of active presentations for given item.
InstrumentPresenter(QWidget *parent=nullptr)
The ItemComboWidget class combines stack of widgets with QComboBox controller to switch between widge...