BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ParameterTreeItems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/ParameterTreeItems.h
6 //! @brief Defines classes for ParameterTreeItems
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_COREGUI_MODELS_PARAMETERTREEITEMS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_PARAMETERTREEITEMS_H
17 
19 
20 //! ParameterTreeItems is a collection of items necessary to form a tuning tree for
21 //! real time widget.
22 
23 //! The ParameterLabelItem class represents a label (string without value, like 'Layer',
24 //! 'MultiLayer') in a parameter tuning tree.
25 
26 class BA_CORE_API_ ParameterLabelItem : public SessionItem {
27 public:
29 };
30 
31 //! The ParameterItem class represent a tuning value in a parameter tuning tree.
32 
33 class BA_CORE_API_ ParameterItem : public SessionItem {
34 public:
35  static const QString P_LINK;
36  static const QString P_BACKUP;
37  static const QString P_DOMAIN;
38  ParameterItem();
39 
40  void propagateValueToLink(double newValue);
41  SessionItem* linkedItem();
42 
43  void restoreFromBackup();
44 };
45 
46 //! The ParameterContainerItem is a top item to hold all ParameterItem, represents an entry
47 //! point to parameter tuning tree. Part of JobItem.
48 
49 class BA_CORE_API_ ParameterContainerItem : public SessionItem {
50 public:
52 };
53 
54 #endif // BORNAGAIN_GUI_COREGUI_MODELS_PARAMETERTREEITEMS_H
Defines class SessionItem.
The ParameterContainerItem is a top item to hold all ParameterItem, represents an entry point to para...
The ParameterItem class represent a tuning value in a parameter tuning tree.
static const QString P_DOMAIN
static const QString P_LINK
static const QString P_BACKUP
ParameterTreeItems is a collection of items necessary to form a tuning tree for real time widget.