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
:
36
void
createResolutionWidgets
();
37
38
private
:
39
Unit
m_unit
;
40
DetectorItem
*
m_item
;
41
QFormLayout*
m_formLayout
;
42
};
43
44
#endif
// BORNAGAIN_GUI_VIEW_INSTRUMENT_RESOLUTIONFUNCTIONEDITOR_H
Unit
Unit
Defines units, mainly to be able to convert between units.
Definition:
Unit.h:26
DetectorItem
Definition:
DetectorItems.h:29
ResolutionFunctionEditor
Widget for selecting the resolution function of a detector (combo box) and input of the corresponding...
Definition:
ResolutionFunctionEditor.h:26
ResolutionFunctionEditor::dataChanged
void dataChanged()
ResolutionFunctionEditor::createResolutionWidgets
void createResolutionWidgets()
Definition:
ResolutionFunctionEditor.cpp:46
ResolutionFunctionEditor::ResolutionFunctionEditor
ResolutionFunctionEditor(Unit unit, QWidget *parent, DetectorItem *item)
Definition:
ResolutionFunctionEditor.cpp:24
ResolutionFunctionEditor::m_unit
Unit m_unit
Definition:
ResolutionFunctionEditor.h:39
ResolutionFunctionEditor::m_item
DetectorItem * m_item
Definition:
ResolutionFunctionEditor.h:40
ResolutionFunctionEditor::Unit
Unit
Definition:
ResolutionFunctionEditor.h:29
ResolutionFunctionEditor::Degree
@ Degree
Definition:
ResolutionFunctionEditor.h:29
ResolutionFunctionEditor::Millimeter
@ Millimeter
Definition:
ResolutionFunctionEditor.h:29
ResolutionFunctionEditor::m_formLayout
QFormLayout * m_formLayout
Definition:
ResolutionFunctionEditor.h:41
GUI
View
Instrument
ResolutionFunctionEditor.h
Generated by
1.9.1