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

Description

Editor for GISAS instruments.

Definition at line 24 of file GISASInstrumentEditor.h.

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

Signals

void dataChanged ()
 

Public Member Functions

 GISASInstrumentEditor (QWidget *parent, GISASInstrumentItem *instrument)
 

Constructor & Destructor Documentation

◆ GISASInstrumentEditor()

GISASInstrumentEditor::GISASInstrumentEditor ( QWidget *  parent,
GISASInstrumentItem instrument 
)

Definition at line 24 of file GISASInstrumentEditor.cpp.

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 }
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.
virtual BeamItem * beamItem() const
Polarization analysis editor (beam polarization, analyzer properties) for instrument editors....

References InstrumentItem::beamItem(), DetectorEditor::dataChanged(), EnvironmentEditor::dataChanged(), GISASBeamEditor::dataChanged(), dataChanged(), and PolarizationAnalysisEditor::dataChanged().

Here is the call graph for this function:

Member Function Documentation

◆ dataChanged


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