BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RectangularDetectorEditor.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/RectangularDetectorEditor.h
6 //! @brief Defines class RectangularDetectorEditor
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_RECTANGULARDETECTOREDITOR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_RECTANGULARDETECTOREDITOR_H
17 
20 class ComponentEditor;
21 class QGridLayout;
22 
24  Q_OBJECT
25 
26 public:
27  RectangularDetectorEditor(QWidget* parent = nullptr);
28 
29 public slots:
30  void onPropertyChanged(const QString& propertyName);
31 
32 protected:
33  void subscribeToItem();
34  void unsubscribeFromItem();
36 
37 private:
38  void create_editors();
39  void init_editors();
41 
49  QGridLayout* m_gridLayout;
50 };
51 
52 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_RECTANGULARDETECTOREDITOR_H
Defines class ItemComboWidget.
Component editor for SessionItem.
RectangularDetectorItem * detectorItem()
RectangularDetectorEditor(QWidget *parent=nullptr)
void onPropertyChanged(const QString &propertyName)
ComponentEditor * m_resolutionFunctionEditor
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.