BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
AxisPropertyEditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Instrument/AxisPropertyEditor.h
6 //! @brief Defines class AxisPropertyEditor
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2022
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_INSTRUMENT_AXISPROPERTYEDITOR_H
16 #define BORNAGAIN_GUI_VIEW_INSTRUMENT_AXISPROPERTYEDITOR_H
17 
18 #include <QGroupBox>
19 
20 class QSpinBox;
21 class AxisProperty;
22 class DoubleSpinBox;
23 
24 //! Use this to edit an AxisProperty.
25 //!
26 //! An AxisProperty handles values for a FixedBinAxis. The values will be already written into the
27 //! data element. For each change of values, a signal will be emitted. Use this e.g. to update
28 //! dependent values or to set the document to modified.
29 class AxisPropertyEditor : public QGroupBox {
30  Q_OBJECT
31 public:
32  AxisPropertyEditor(QWidget* parent, const QString& groupTitle, AxisProperty* axisProperty);
33 
34  //! Reload UI from data
35  void updateData();
36 
37 signals:
38  void dataChanged();
39 
40 private:
41  QSpinBox* m_nbinsSpinBox;
45 };
46 
47 
48 #endif // BORNAGAIN_GUI_VIEW_INSTRUMENT_AXISPROPERTYEDITOR_H
Use this to edit an AxisProperty.
AxisPropertyEditor(QWidget *parent, const QString &groupTitle, AxisProperty *axisProperty)
DoubleSpinBox * m_minSpinBox
void updateData()
Reload UI from data.
DoubleSpinBox * m_maxSpinBox
AxisProperty * m_axisProperty
Holds values which can be used to describe a FixedBinAxis.
Definition: AxisProperty.h:38
SpinBox for DoubleDescriptors, supporting units.
Definition: DoubleSpinBox.h:22