BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
labeldatarowstrategy.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/viewmodel/mvvm/viewmodel/labeldatarowstrategy.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_VIEWMODEL_MVVM_VIEWMODEL_LABELDATAROWSTRATEGY_H
16 #define BORNAGAIN_MVVM_VIEWMODEL_MVVM_VIEWMODEL_LABELDATAROWSTRATEGY_H
17 
19 
20 class QStandardItem;
21 
22 namespace ModelView {
23 
24 class SessionItem;
25 
26 //! Constructs row of QStandardItem's for given SessionItem.
27 //! Row consists of two columns, ViewLabelItem for SessionItem's display role and
28 //! ViewDataItem for Session's item data role.
29 
30 class MVVM_VIEWMODEL_EXPORT LabelDataRowStrategy : public RowStrategyInterface {
31 public:
32  QStringList horizontalHeaderLabels() const override;
33 
34  std::vector<std::unique_ptr<ViewItem>> constructRow(SessionItem*) override;
35 };
36 
37 } // namespace ModelView
38 
39 #endif // BORNAGAIN_MVVM_VIEWMODEL_MVVM_VIEWMODEL_LABELDATAROWSTRATEGY_H
Constructs row of QStandardItem's for given SessionItem.
Base class to construct row of ViewItem's from given SessionItem.
The main object representing an editable/displayable/serializable entity.
Definition: sessionitem.h:38
materialitems.h Collection of materials to populate MaterialModel.
Defines class CLASS?