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

Description

Definition at line 22 of file SphericalDetectorEditor.h.

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

Signals

void dataChanged ()
 

Public Member Functions

 SphericalDetectorEditor (QWidget *parent, SphericalDetectorItem *item)
 

Constructor & Destructor Documentation

◆ SphericalDetectorEditor()

SphericalDetectorEditor::SphericalDetectorEditor ( QWidget *  parent,
SphericalDetectorItem item 
)

Definition at line 21 of file SphericalDetectorEditor.cpp.

22  : QWidget(parent)
23 {
24  ASSERT(item);
25  auto* grid = new QGridLayout(this);
26  grid->setColumnStretch(0, 1);
27  grid->setColumnStretch(1, 1);
28  grid->setColumnStretch(2, 1);
29 
30  auto* phiAxisEditor = new AxisPropertyEditor(this, u8"\u03c6 axis", &item->phiAxis());
31  grid->addWidget(phiAxisEditor, 1, 0);
32 
33  auto* alphaAxisEditor = new AxisPropertyEditor(this, u8"\u03b1 axis", &item->alphaAxis());
34  grid->addWidget(alphaAxisEditor, 1, 1);
35 
36  auto* resolutionFunctionEditor =
38  grid->addWidget(resolutionFunctionEditor, 1, 2);
39 
40  grid->setRowStretch(2, 1);
41 
42  connect(phiAxisEditor, &AxisPropertyEditor::dataChanged, this,
44 
45  connect(alphaAxisEditor, &AxisPropertyEditor::dataChanged, this,
47 
48  connect(resolutionFunctionEditor, &ResolutionFunctionEditor::dataChanged, this,
50 }
Use this to edit an AxisProperty.
Widget for selecting the resolution function of a detector (combo box) and input of the corresponding...

References AxisPropertyEditor::dataChanged(), ResolutionFunctionEditor::dataChanged(), dataChanged(), and ResolutionFunctionEditor::Degree.

Member Function Documentation

◆ dataChanged

void SphericalDetectorEditor::dataChanged ( )
signal

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