BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MaterialInplaceForm.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/SampleDesigner/MaterialInplaceForm.h
6 //! @brief Defines class MaterialInplaceForm
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2021
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MATERIALINPLACEFORM_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MATERIALINPLACEFORM_H
17 
18 #include <QWidget>
19 
20 class ItemWithMaterial;
22 class QGridLayout;
23 class MaterialItem;
24 
25 //! Form to select a material and to edit it in-place
26 class MaterialInplaceForm : public QWidget {
27  Q_OBJECT
28 public:
29  MaterialInplaceForm(QWidget* parent, ItemWithMaterial* item, SampleEditorController* ec);
30 
32  void updateValues();
33 
34 private:
35  void selectMaterial();
36  void createWidgets();
37  void onMaterialChanged();
38 
41  QGridLayout* m_layout;
42 };
43 
44 
45 #endif // BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MATERIALINPLACEFORM_H
Form to select a material and to edit it in-place.
ItemWithMaterial * m_item
SampleEditorController * m_ec
ItemWithMaterial * itemWithMaterial() const
MaterialInplaceForm(QWidget *parent, ItemWithMaterial *item, SampleEditorController *ec)
Class to modify a sample from the layer oriented sample editor.