BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
PolarizationAnalysisEditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Instrument/PolarizationAnalysisEditor.h
6 //! @brief Defines class PolarizationAnalysisEditor
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 
15 #ifndef BORNAGAIN_GUI_VIEW_INSTRUMENT_POLARIZATIONANALYSISEDITOR_H
16 #define BORNAGAIN_GUI_VIEW_INSTRUMENT_POLARIZATIONANALYSISEDITOR_H
17 
18 #include <QGroupBox>
19 
20 class InstrumentItem;
21 class DoubleSpinBox;
22 class DoubleDescriptor;
23 class QFormLayout;
24 class VectorDescriptor;
25 
26 //! Polarization analysis editor (beam polarization, analyzer properties) for instrument editors.
27 //! Operates on Instrument2DItem.
28 
29 class PolarizationAnalysisEditor : public QGroupBox {
30  Q_OBJECT
31 
32 public:
33  PolarizationAnalysisEditor(QWidget* parent, InstrumentItem* instrument);
34 
35 signals:
36  void dataChanged();
37 
38 private:
39  DoubleSpinBox* createSpinBox(QWidget* parent, const DoubleDescriptor& d);
40  void addVector(QFormLayout* parentLayout, const VectorDescriptor& d);
41 
43 };
44 
45 #endif // BORNAGAIN_GUI_VIEW_INSTRUMENT_POLARIZATIONANALYSISEDITOR_H
Describes properties of a double value which are necessary to allow GUI representation,...
SpinBox for DoubleDescriptors, supporting units.
Definition: DoubleSpinBox.h:22
Abstract base class for instrument-specific item classes.
Polarization analysis editor (beam polarization, analyzer properties) for instrument editors....
DoubleSpinBox * createSpinBox(QWidget *parent, const DoubleDescriptor &d)
void addVector(QFormLayout *parentLayout, const VectorDescriptor &d)
PolarizationAnalysisEditor(QWidget *parent, InstrumentItem *instrument)
Describes properties of a 3D vector, consisting of three double values.