BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
GroupItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/GroupItem.h
6 //! @brief Defines class GroupItem
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_GROUPITEM_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_GROUPITEM_H
17 
20 #include <memory>
21 
22 class GroupInfo;
24 
25 class BA_CORE_API_ GroupItem : public SessionItem {
26 public:
27  static const QString T_ITEMS;
28  GroupItem();
30 
31  void setGroupInfo(const GroupInfo& groupInfo);
32  SessionItem* currentItem() const;
33 
34  QString currentType() const;
35 
36  SessionItem* setCurrentType(const QString& modelType);
37 
38  QStringList translateList(const QStringList& list) const;
39 
40  SessionItem* getItemOfType(const QString& type);
41 
42 private:
43  void onValueChange();
44  void updateComboValue();
45  std::unique_ptr<GroupItemController> m_controller;
46 };
47 
48 #endif // BORNAGAIN_GUI_COREGUI_MODELS_GROUPITEM_H
Defines class GroupInfo.
Defines class SessionItem.
Defines info for GroupProperty, i.e.
Definition: GroupInfo.h:25
Provides logic for manipulating items belonging to GroupItem parent.
std::unique_ptr< GroupItemController > m_controller
Definition: GroupItem.h:45
static const QString T_ITEMS
Definition: GroupItem.h:27
virtual QStringList translateList(const QStringList &list) const