BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
topitemstreeview.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/view/mvvm/widgets/topitemstreeview.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_VIEW_MVVM_WIDGETS_TOPITEMSTREEVIEW_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_TOPITEMSTREEVIEW_H
17 
19 
20 namespace ModelView {
21 
22 class SessionModel;
23 
24 //! Widget holding standard QTreeView and intended for displaying all top level
25 //! items of SessionModel.
26 
27 //! All property items (i.e. "thickness", "color" etc) will be filtered out, top level items
28 //! (i.e. Layer, MultiLayer, ...) will be presented as simple parent/child tree.
29 
30 class MVVM_VIEW_EXPORT TopItemsTreeView : public ItemsTreeView {
31  Q_OBJECT
32 
33 public:
34  TopItemsTreeView(SessionModel* model, QWidget* parent = nullptr);
36 };
37 
38 } // namespace ModelView
39 
40 #endif // BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_TOPITEMSTREEVIEW_H
Tree view to show items of SessionModel via ViewModel mechanism.
Definition: itemstreeview.h:35
Main class to hold hierarchy of SessionItem objects.
Definition: sessionmodel.h:37
Widget holding standard QTreeView and intended for displaying all top level items of SessionModel.
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.