BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ComponentUtils.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/PropertyEditor/ComponentUtils.h
6 //! @brief Defines ComponentUtils namespace
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_VIEWS_PROPERTYEDITOR_COMPONENTUTILS_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_PROPERTYEDITOR_COMPONENTUTILS_H
17 
18 #include <QList>
19 #include <QStringList>
20 
21 class SessionItem;
22 
23 //! Contains collection of utility functions to support editing of SessionItem's components.
24 
25 namespace ComponentUtils {
26 
27 //! Returns list of strings representing modelTypes suitable for editing in component editors.
28 QStringList propertyRelatedTypes();
29 
30 //! Returns list of SessionItem's children suitable for editing in property editors.
31 QList<const SessionItem*> componentItems(const SessionItem& item);
32 
33 } // namespace ComponentUtils
34 
35 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_PROPERTYEDITOR_COMPONENTUTILS_H
Contains collection of utility functions to support editing of SessionItem's components.
QList< const SessionItem * > componentItems(const SessionItem &item)
Returns list of SessionItem's children suitable for editing in property editors.
QStringList propertyRelatedTypes()
Returns list of strings representing modelTypes suitable for editing in component editors.