BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceForm.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/View/SampleDesigner/InterferenceForm.h
6
//! @brief Defines class InterferenceForm
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_INTERFERENCEFORM_H
16
#define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_INTERFERENCEFORM_H
17
18
#include <QGroupBox>
19
20
class
ParticleItem
;
21
class
SampleEditorController
;
22
class
ParticleLayoutItem
;
23
class
GroupBoxCollapser
;
24
class
QComboBox;
25
26
//! Form for editing interference functions
27
class
InterferenceForm
:
public
QGroupBox {
28
Q_OBJECT
29
public
:
30
InterferenceForm
(QWidget* parent,
ParticleLayoutItem
*
layoutItem
,
SampleEditorController
* ec);
31
32
ParticleLayoutItem
*
layoutItem
()
const
;
33
void
onInterferenceTypeChanged
();
34
35
private
:
36
void
createInterferenceWidgets
();
37
void
updateTitle
();
38
39
GroupBoxCollapser
*
m_collapser
=
nullptr
;
40
QComboBox*
m_interferenceTypeCombo
;
41
ParticleLayoutItem
*
m_layoutItem
;
42
SampleEditorController
*
m_ec
;
43
};
44
45
46
#endif
// BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_INTERFERENCEFORM_H
GroupBoxCollapser
Add-on to group boxes to make them collapsible.
Definition:
GroupBoxCollapser.h:34
InterferenceForm
Form for editing interference functions.
Definition:
InterferenceForm.h:27
InterferenceForm::onInterferenceTypeChanged
void onInterferenceTypeChanged()
Definition:
InterferenceForm.cpp:60
InterferenceForm::layoutItem
ParticleLayoutItem * layoutItem() const
Definition:
InterferenceForm.cpp:55
InterferenceForm::m_collapser
GroupBoxCollapser * m_collapser
Definition:
InterferenceForm.h:39
InterferenceForm::updateTitle
void updateTitle()
Definition:
InterferenceForm.cpp:123
InterferenceForm::InterferenceForm
InterferenceForm(QWidget *parent, ParticleLayoutItem *layoutItem, SampleEditorController *ec)
Definition:
InterferenceForm.cpp:27
InterferenceForm::m_interferenceTypeCombo
QComboBox * m_interferenceTypeCombo
Definition:
InterferenceForm.h:40
InterferenceForm::m_layoutItem
ParticleLayoutItem * m_layoutItem
Definition:
InterferenceForm.h:41
InterferenceForm::createInterferenceWidgets
void createInterferenceWidgets()
Definition:
InterferenceForm.cpp:70
InterferenceForm::m_ec
SampleEditorController * m_ec
Definition:
InterferenceForm.h:42
ParticleItem
Definition:
ParticleItem.h:26
ParticleLayoutItem
Definition:
ParticleLayoutItem.h:28
SampleEditorController
Class to modify a sample from the layer oriented sample editor.
Definition:
SampleEditorController.h:50
GUI
View
SampleDesigner
InterferenceForm.h
Generated by
1.9.1