BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
itemstreeviewinterface.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/itemstreeviewinterface.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_ITEMSTREEVIEWINTERFACE_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_ITEMSTREEVIEWINTERFACE_H
17 
18 #include "mvvm/view_export.h"
19 #include <QWidget>
20 
21 class QTreeView;
22 
23 namespace ModelView {
24 
25 class SessionModel;
26 
27 //! Saves and restores list of SessionModel's to/from disk using json format.
28 
29 class MVVM_VIEW_EXPORT ItemsTreeViewInterface : public QWidget {
30  Q_OBJECT
31 
32 public:
33  virtual void setSessionModel(SessionModel* model) = 0;
34 
35  virtual QTreeView* treeView() const = 0;
36 };
37 
38 } // namespace ModelView
39 
40 #endif // BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_ITEMSTREEVIEWINTERFACE_H
Saves and restores list of SessionModel's to/from disk using json format.
virtual void setSessionModel(SessionModel *model)=0
virtual QTreeView * treeView() const =0
Main class to hold hierarchy of SessionItem objects.
Definition: sessionmodel.h:37
materialitems.h Collection of materials to populate MaterialModel.