BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
GISASDetectorEditor.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/GISASDetectorEditor.h
6 //! @brief Defines class GISASDetectorEditor
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_GISASDETECTOREDITOR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_GISASDETECTOREDITOR_H
17 
19 
20 class ComponentEditor;
21 class DetectorPresenter;
22 class Instrument2DItem;
23 
24 //! GISAS detector editor. Provides selector between available detector types
25 //! (spherical/rectangular) and stack to show proper editor.
26 //! Operates on GISASInstrumentItem.
27 
29  Q_OBJECT
30 
31 public:
32  GISASDetectorEditor(QWidget* parent = nullptr);
33 
34 protected:
35  void subscribeToItem();
36  void unsubscribeFromItem();
37 
38 private:
41 
44 };
45 
46 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_GISASDETECTOREDITOR_H
Defines class ItemComboWidget.
Component editor for SessionItem.
Contains stack of detector editors and the logic to show proper editor for certain type of detector i...
GISAS detector editor.
ComponentEditor * m_detectorTypeEditor
DetectorPresenter * m_detectorPresenter
GISASDetectorEditor(QWidget *parent=nullptr)
void updateDetectorPresenter()
Shows detector editor corresponding to the currently selected detector in detectorGroup.
Instrument2DItem * instrumentItem()
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.