BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
QREDataLoaderProperties.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Loaders/QREDataLoaderProperties.h
6 //! @brief Defines class AutomaticMultiColumnDataLoader1DProperties
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2021
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_LOADERS_QREDATALOADERPROPERTIES_H
16 #define BORNAGAIN_GUI_VIEW_LOADERS_QREDATALOADERPROPERTIES_H
17 
18 #include <QWidget>
19 
20 class QComboBox;
21 class QDoubleSpinBox;
22 class QSpinBox;
23 class QCheckBox;
24 class QLabel;
25 
26 namespace Ui {
27 
29 }
30 
31 //! Properties widget for the QREDataLoader
32 
33 class QREDataLoaderProperties : public QWidget {
34  Q_OBJECT
35 public:
37 
38  Ui::QREDataLoaderProperties* m_ui;
39 
40  //! Factors shall not be supported. However, since the requirements have been there,
41  //! they are only deactivated. Call allowFactors(true) to enable them.
42  void allowFactors(bool b);
43 
44  double factor(int dataType) const;
45 
46  QSpinBox* columnSpinBox(int dataType) const;
47  QDoubleSpinBox* factorSpinBox(int dataType) const;
48 
49 signals:
51 
52 private:
53  void updateErrorEnabling(bool enabled) const;
55  QLabel* factorLabel(int dataType) const;
56 
57  // factors shall not be supported. However, since the requirements have been there,
58  // they are only deactivated. Call allowFactors(true) to enable them.
60 
61  static const int columnColumn = 3;
62  static const int factorLabelColumn = 4;
63  static const int factorColumn = factorLabelColumn + 1;
64 };
65 
66 #endif // BORNAGAIN_GUI_VIEW_LOADERS_QREDATALOADERPROPERTIES_H
Properties widget for the QREDataLoader.
QLabel * factorLabel(int dataType) const
void updateErrorEnabling(bool enabled) const
double factor(int dataType) const
void allowFactors(bool b)
Factors shall not be supported. However, since the requirements have been there, they are only deacti...
QSpinBox * columnSpinBox(int dataType) const
QDoubleSpinBox * factorSpinBox(int dataType) const
Ui::QREDataLoaderProperties * m_ui