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

Description

Definition at line 26 of file SpecularInstrumentEditor.h.

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

Signals

void dataChanged ()
 

Public Member Functions

 SpecularInstrumentEditor (QWidget *parent, SpecularInstrumentItem *instrument, InstrumentsEditController *ec)
 

Private Attributes

InstrumentEditController m_ec
 

Constructor & Destructor Documentation

◆ SpecularInstrumentEditor()

SpecularInstrumentEditor::SpecularInstrumentEditor ( QWidget *  parent,
SpecularInstrumentItem instrument,
InstrumentsEditController ec 
)

Definition at line 22 of file SpecularInstrumentEditor.cpp.

25  : QWidget(parent)
26  , m_ec(ec, instrument)
27 {
28  ASSERT(instrument);
29  auto* layout = new QVBoxLayout(this);
30  layout->setContentsMargins(0, 0, 0, 0);
31 
32  auto* beamEditor = new SpecularBeamEditor(this, instrument->beamItem(), &m_ec);
33  layout->addWidget(beamEditor);
34 
35  auto* polMatricesAnalysisEditor = new PolarizationAnalysisEditor(this, instrument);
36  layout->addWidget(polMatricesAnalysisEditor);
37 
38  auto* environmentEditor = new EnvironmentEditor(this, instrument);
39  layout->addWidget(environmentEditor);
40 
41  layout->addStretch();
42 
43  connect(beamEditor, &SpecularBeamEditor::dataChanged, this,
45  connect(polMatricesAnalysisEditor, &PolarizationAnalysisEditor::dataChanged, this,
47  connect(environmentEditor, &EnvironmentEditor::dataChanged, this,
49 }
Environment editor (i.e. background) for instrument editors. Operates on InstrumentItem.
Polarization analysis editor (beam polarization, analyzer properties) for instrument editors....
Specular beam editor. Operates on SpecularBeamItem.
InstrumentEditController m_ec
SpecularBeamItem * beamItem() const override

References SpecularInstrumentItem::beamItem(), EnvironmentEditor::dataChanged(), PolarizationAnalysisEditor::dataChanged(), SpecularBeamEditor::dataChanged(), dataChanged(), and m_ec.

Here is the call graph for this function:

Member Function Documentation

◆ dataChanged

Member Data Documentation

◆ m_ec

InstrumentEditController SpecularInstrumentEditor::m_ec
private

Definition at line 37 of file SpecularInstrumentEditor.h.

Referenced by SpecularInstrumentEditor().


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