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
;
21
class
SampleEditorController
;
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
31
ItemWithMaterial
*
itemWithMaterial
()
const
;
32
void
updateValues
();
33
34
private
:
35
void
selectMaterial
();
36
void
createWidgets
();
37
void
onMaterialChanged
();
38
39
ItemWithMaterial
*
m_item
;
40
SampleEditorController
*
m_ec
;
41
QGridLayout*
m_layout
;
42
};
43
44
45
#endif
// BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_MATERIALINPLACEFORM_H
ItemWithMaterial
Definition:
ItemWithMaterial.h:26
MaterialInplaceForm
Form to select a material and to edit it in-place.
Definition:
MaterialInplaceForm.h:26
MaterialInplaceForm::m_item
ItemWithMaterial * m_item
Definition:
MaterialInplaceForm.h:39
MaterialInplaceForm::m_ec
SampleEditorController * m_ec
Definition:
MaterialInplaceForm.h:40
MaterialInplaceForm::selectMaterial
void selectMaterial()
Definition:
MaterialInplaceForm.cpp:66
MaterialInplaceForm::itemWithMaterial
ItemWithMaterial * itemWithMaterial() const
Definition:
MaterialInplaceForm.cpp:49
MaterialInplaceForm::updateValues
void updateValues()
Definition:
MaterialInplaceForm.cpp:54
MaterialInplaceForm::createWidgets
void createWidgets()
Definition:
MaterialInplaceForm.cpp:90
MaterialInplaceForm::m_layout
QGridLayout * m_layout
Definition:
MaterialInplaceForm.h:41
MaterialInplaceForm::MaterialInplaceForm
MaterialInplaceForm(QWidget *parent, ItemWithMaterial *item, SampleEditorController *ec)
Definition:
MaterialInplaceForm.cpp:35
MaterialInplaceForm::onMaterialChanged
void onMaterialChanged()
Definition:
MaterialInplaceForm.cpp:131
MaterialItem
Definition:
MaterialItem.h:32
SampleEditorController
Class to modify a sample from the layer oriented sample editor.
Definition:
SampleEditorController.h:50
GUI
View
SampleDesigner
MaterialInplaceForm.h
Generated by
1.9.1