BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DepthProbeInstrumentEditor Class Reference

Description

Definition at line 22 of file DepthProbeInstrumentEditor.h.

Inheritance diagram for DepthProbeInstrumentEditor:
[legend]
Collaboration diagram for DepthProbeInstrumentEditor:
[legend]

Signals

void dataChanged ()
 

Public Member Functions

 DepthProbeInstrumentEditor (QWidget *parent, DepthProbeInstrumentItem *item)
 

Constructor & Destructor Documentation

◆ DepthProbeInstrumentEditor()

DepthProbeInstrumentEditor::DepthProbeInstrumentEditor ( QWidget *  parent,
DepthProbeInstrumentItem item 
)

Definition at line 27 of file DepthProbeInstrumentEditor.cpp.

29  : QWidget(parent)
30 {
31  ASSERT(instrument);
32  auto* layout = new QVBoxLayout(this);
33  layout->setContentsMargins(0, 0, 0, 0);
34 
35  auto* parametersGroupBox = new QGroupBox(this);
36  parametersGroupBox->setTitle("Parameters");
37  auto* vLayout = new QVBoxLayout(parametersGroupBox);
38  vLayout->setContentsMargins(30, 8, 0, 0);
39 
40  auto* m_wavelengthEditor =
42  this, instrument->beamItem()->wavelengthItem());
43  vLayout->addWidget(m_wavelengthEditor);
44 
45  auto* inclinationEditor =
46  new InclinationAnglesEditor(this, instrument->beamItem()->inclinationAngleItem());
47  vLayout->addWidget(inclinationEditor);
48 
49  auto* depthAxisEditor = new AxisPropertyEditor(this, "Depth axis", &instrument->zAxis());
50  vLayout->addWidget(depthAxisEditor);
51 
52  GroupBoxCollapser::installIntoGroupBox(parametersGroupBox);
53  layout->addWidget(parametersGroupBox);
54 
55  auto* polMatricesAnalysisEditor = new PolarizationAnalysisEditor(this, instrument);
56  layout->addWidget(polMatricesAnalysisEditor);
57 
58  layout->addStretch();
59 
60  connect(m_wavelengthEditor, &DistributionEditor::distributionChanged, this,
62  connect(inclinationEditor, &InclinationAnglesEditor::dataChanged, this,
64  connect(depthAxisEditor, &AxisPropertyEditor::dataChanged, this,
66  connect(polMatricesAnalysisEditor, &PolarizationAnalysisEditor::dataChanged, this,
68 }
Use this to edit an AxisProperty.
DistributionSelector as above but contained in a GroupBox with a title and a button to open the distr...
void distributionChanged()
static GroupBoxCollapser * installIntoGroupBox(QGroupBox *groupBox, bool expanded=true)
Editor for the case where there is no single inclination angle.
Polarization analysis editor (beam polarization, analyzer properties) for instrument editors....
configuration to control how the user can enter a mean value

References DepthProbeInstrumentItem::beamItem(), AxisPropertyEditor::dataChanged(), dataChanged(), InclinationAnglesEditor::dataChanged(), PolarizationAnalysisEditor::dataChanged(), DistributionEditor::distributionChanged(), SpecularBeamItem::inclinationAngleItem(), GroupBoxCollapser::installIntoGroupBox(), and GUI::ID::Symmetric.

Here is the call graph for this function:

Member Function Documentation

◆ dataChanged


The documentation for this class was generated from the following files: