BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
propertyitem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/model/mvvm/model/propertyitem.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_MODEL_PROPERTYITEM_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_MODEL_PROPERTYITEM_H
17 
18 #include "mvvm/model/sessionitem.h"
19 
20 namespace ModelView {
21 
22 class RealLimits;
23 
24 //! Item to carry concrete editable entity (e.g. 'double' value with limits).
25 //! Intended for use as a child or CompountItem, not expected to have own children.
26 
27 class MVVM_MODEL_EXPORT PropertyItem : public SessionItem {
28 public:
29  PropertyItem();
30 
31  PropertyItem* setDisplayName(const std::string& name) override;
32 
33  PropertyItem* setLimits(const RealLimits& value);
34 };
35 
36 } // namespace ModelView
37 
38 #endif // BORNAGAIN_MVVM_MODEL_MVVM_MODEL_PROPERTYITEM_H
Item to carry concrete editable entity (e.g.
Definition: propertyitem.h:27
Limits for double.
Definition: reallimits.h:25
The main object representing an editable/displayable/serializable entity.
Definition: sessionitem.h:38
Limits for a real fit parameter.
Definition: RealLimits.h:24
materialitems.h Collection of materials to populate MaterialModel.
QString const & name(EShape k)
Definition: particles.cpp:21
Defines class CLASS?