BornAgain  1.19.0
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 M:\BornAgain\GUI\coregui\DataLoaders/AutomaticMultiColumnDataLoader1DProperties.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_COREGUI_DATALOADERS_AUTOMATICMULTICOLUMNDATALOADER1DPROPERTIES_H
16 #define BORNAGAIN_GUI_COREGUI_DATALOADERS_AUTOMATICMULTICOLUMNDATALOADER1DPROPERTIES_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 {
28 }
29 
30 //! Properties widget for the QREDataLoader
31 
32 class QREDataLoaderProperties : public QWidget {
33  Q_OBJECT
34 public:
36 
37  Ui::QREDataLoaderProperties* m_ui;
38 
39  //! Factors shall not be supported. However, since the requirements have been there,
40  //! they are only deactivated. Call allowFactors(true) to enable them.
41  void allowFactors(bool b);
42 
43  double factor(int dataType) const;
44 
45  QSpinBox* columnSpinBox(int dataType) const;
46  QDoubleSpinBox* factorSpinBox(int dataType) const;
47 
48 signals:
50 
51 private:
52  void updateErrorEnabling(bool enabled);
54  QLabel* factorLabel(int dataType) const;
55 
56  // factors shall not be supported. However, since the requirements have been there,
57  // they are only deactivated. Call allowFactors(true) to enable them.
59 
60  static const int columnColumn = 3;
61  static const int factorLabelColumn = 4;
62  static const int factorColumn = factorLabelColumn + 1;
63 };
64 
65 #endif // BORNAGAIN_GUI_COREGUI_DATALOADERS_AUTOMATICMULTICOLUMNDATALOADER1DPROPERTIES_H
Properties widget for the QREDataLoader.
QLabel * factorLabel(int dataType) const
void updateErrorEnabling(bool enabled)
double factor(int dataType) const
void allowFactors(bool b)
Factors shall not be supported.
QSpinBox * columnSpinBox(int dataType) const
QDoubleSpinBox * factorSpinBox(int dataType) const
Ui::QREDataLoaderProperties * m_ui