BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
EnvironmentEditor.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/EnvironmentEditor.h
6 //! @brief Defines class EnvironmentEditor
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_ENVIRONMENTEDITOR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_ENVIRONMENTEDITOR_H
17 
19 
20 class ComponentEditor;
21 class QGridLayout;
22 class InstrumentItem;
23 class ColumnResizer;
24 
25 //! Environment editor (i.e. background) for instrument editors.
26 //! Operates on InstrumentItem.
27 
29  Q_OBJECT
30 
31 public:
32  EnvironmentEditor(ColumnResizer* columnResizer, QWidget* parent = nullptr);
33 
34 protected:
35  void subscribeToItem();
36  void unsubscribeFromItem();
37 
38 private:
42  QGridLayout* m_gridLayout;
43 };
44 
45 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INSTRUMENTWIDGETS_ENVIRONMENTEDITOR_H
Defines class ItemComboWidget.
The ColumnResizer class provides vertically aligned widgets from diferent layouts.
Definition: ColumnResizer.h:37
Component editor for SessionItem.
Environment editor (i.e.
QGridLayout * m_gridLayout
ComponentEditor * m_backgroundEditor
InstrumentItem * instrumentItem()
EnvironmentEditor(ColumnResizer *columnResizer, QWidget *parent=nullptr)
ColumnResizer * m_columnResizer
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.