BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PolarizationAnalysisEditor.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/PolarizationAnalysisEditor.h
6 //! @brief Defines class PolarizationAnalysisEditor
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_POLARIZATIONANALYSISEDITOR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_POLARIZATIONANALYSISEDITOR_H
17 
19 
20 class ComponentEditor;
22 class BeamItem;
23 class DetectorItem;
24 class QGridLayout;
25 class ColumnResizer;
26 
27 //! Polarization analysis editor (beam polarization, analyzer properies) for GISASInstrumentEditor.
28 //! Operates on GISASInstrumentItem.
29 
31  Q_OBJECT
32 
33 public:
34  PolarizationAnalysisEditor(ColumnResizer* columnResizer, QWidget* parent = nullptr);
35 
36 protected:
37  void subscribeToItem();
38  void unsubscribeFromItem();
39 
40 private:
42  BeamItem* beamItem();
44  void updateAnalyserEditor();
45 
50  QGridLayout* m_gridLayout;
51 };
52 
53 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_POLARIZATIONANALYSISEDITOR_H
Defines class ItemComboWidget.
The ColumnResizer class provides vertically aligned widgets from diferent layouts.
Definition: ColumnResizer.h:37
Component editor for SessionItem.
Polarization analysis editor (beam polarization, analyzer properies) for GISASInstrumentEditor.
PolarizationAnalysisEditor(ColumnResizer *columnResizer, QWidget *parent=nullptr)
GISASInstrumentItem * instrumentItem()
void updateAnalyserEditor()
Updates analyser editor to display properties of currently selected detector (spherical/rectangular).
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.