BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GISASInstrumentEditor.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Instrument/GISASInstrumentEditor.cpp
6 //! @brief Implements class GISASInstrumentEditor
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 
21 
22 #include <QVBoxLayout>
23 
25  : QWidget(parent)
26 {
27  ASSERT(instrument);
28  auto* layout = new QVBoxLayout(this);
29  layout->setContentsMargins(0, 0, 0, 0);
30 
31  auto* beamEditor = new GISASBeamEditor(this, instrument->beamItem());
32  layout->addWidget(beamEditor);
33 
34  auto* detectorEditor = new DetectorEditor(this, instrument);
35  layout->addWidget(detectorEditor);
36 
37  auto* polMatricesAnalysisEditor = new PolarizationAnalysisEditor(this, instrument);
38  layout->addWidget(polMatricesAnalysisEditor);
39 
40  auto* environmentEditor = new EnvironmentEditor(this, instrument);
41  layout->addWidget(environmentEditor);
42 
43  layout->addStretch();
44 
46  connect(detectorEditor, &DetectorEditor::dataChanged, this,
48  connect(polMatricesAnalysisEditor, &PolarizationAnalysisEditor::dataChanged, this,
50  connect(environmentEditor, &EnvironmentEditor::dataChanged, this,
52 }
Defines class DetectorEditor.
Defines class EnvironmentEditor.
Defines class GISASBeamEditor.
Defines class GISASInstrumentEditor.
Defines class InstrumentItem and all its children.
Defines class PolarizationAnalysisEditor.
Contains stack of detector editors and the logic to show proper editor for certain type of detector i...
void dataChanged()
Environment editor (i.e. background) for instrument editors. Operates on InstrumentItem.
GISAS beam editor. Operates on GISASInstrumentItem.
GISASInstrumentEditor(QWidget *parent, GISASInstrumentItem *instrument)
virtual BeamItem * beamItem() const
Polarization analysis editor (beam polarization, analyzer properties) for instrument editors....