BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ResolutionFunctionEditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Instrument/ResolutionFunctionEditor.h
6 //! @brief A widget for editing the alignment of a detector
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_RESOLUTIONFUNCTIONEDITOR_H
16 #define BORNAGAIN_GUI_VIEW_INSTRUMENT_RESOLUTIONFUNCTIONEDITOR_H
17 
18 #include <QGroupBox>
19 
20 class DetectorItem;
21 class QFormLayout;
22 
23 //! Widget for selecting the resolution function of a detector (combo box) and input of the
24 //! corresponding values
25 
26 class ResolutionFunctionEditor : public QGroupBox {
27  Q_OBJECT
28 public:
29  enum Unit { Degree, Millimeter };
30  ResolutionFunctionEditor(Unit unit, QWidget* parent, DetectorItem* item);
31 
32 signals:
33  void dataChanged();
34 
35 private:
37 
38 private:
41  QFormLayout* m_formLayout;
42 };
43 
44 #endif // BORNAGAIN_GUI_VIEW_INSTRUMENT_RESOLUTIONFUNCTIONEDITOR_H
Unit
Defines units, mainly to be able to convert between units.
Definition: Unit.h:26
Widget for selecting the resolution function of a detector (combo box) and input of the corresponding...
ResolutionFunctionEditor(Unit unit, QWidget *parent, DetectorItem *item)