BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
OffspecInstrumentEditor.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Instrument/OffspecInstrumentEditor.cpp
6 //! @brief Implements class OffspecInstrumentEditor
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
20 
21 #include <QVBoxLayout>
22 
24  : QWidget(parent)
25 {
26  ASSERT(instrument)
27  auto* layout = new QVBoxLayout(this);
28  layout->setContentsMargins(0, 0, 0, 0);
29 
30  auto* beamEditor = new OffspecBeamEditor(this, instrument);
31  layout->addWidget(beamEditor);
32 
33  auto* detectorEditor = new DetectorEditor(this, instrument);
34  layout->addWidget(detectorEditor);
35 
36  auto* polMatricesAnalysisEditor = new PolarizationAnalysisEditor(this, instrument);
37  layout->addWidget(polMatricesAnalysisEditor);
38 
39  layout->addStretch();
40 
41  connect(beamEditor, &OffspecBeamEditor::dataChanged, this,
43  connect(detectorEditor, &DetectorEditor::dataChanged, this,
45  connect(polMatricesAnalysisEditor, &PolarizationAnalysisEditor::dataChanged, this,
47 }
Defines class DetectorEditor.
Defines class InstrumentItem and all its children.
Defines class OffspecBeamEditor.
Defines class OffspecInstrumentEditor.
Defines class PolarizationAnalysisEditor.
Contains stack of detector editors and the logic to show proper editor for certain type of detector i...
void dataChanged()
Off-specular beam editor. Operates on OffspecInstrumentItem.
OffspecInstrumentEditor(QWidget *parent, OffspecInstrumentItem *instrument)
Polarization analysis editor (beam polarization, analyzer properties) for instrument editors....