BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
applicationmodels.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/model/applicationmodels.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 Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI2_MODEL_APPLICATIONMODELS_H
16 #define BORNAGAIN_GUI2_MODEL_APPLICATIONMODELS_H
17 
18 #include "darefl_export.h"
20 #include <memory>
21 
22 namespace ModelView {
23 class SessionModel;
24 }
25 
26 namespace gui2 {
27 
28 class MaterialModel;
29 class SampleModel;
30 class SLDElementModel;
31 class SLDElementController;
32 class JobModel;
33 class ExperimentalDataModel;
34 class InstrumentModel;
35 
36 //! Main class to holds all models of GUI session.
37 
38 class DAREFLCORE_EXPORT ApplicationModels : public ModelView::ApplicationModelsInterface {
39 public:
42 
43  MaterialModel* materialModel();
44  SampleModel* sampleModel();
45  SLDElementModel* sldViewModel();
46  JobModel* jobModel();
47  ExperimentalDataModel* experimentalDataModel();
48  InstrumentModel* instrumentModel();
49 
50  std::vector<ModelView::SessionModel*> persistent_models() const override;
51 
52  std::vector<ModelView::SessionModel*> application_models() const;
53 
54 private:
55  struct ApplicationModelsImpl;
56  std::unique_ptr<ApplicationModelsImpl> p_impl;
57 };
58 
59 } // namespace gui2
60 
61 #endif // BORNAGAIN_GUI2_MODEL_APPLICATIONMODELS_H
Defines class CLASS?
Interface to access application's model list for further manipulation.
Main model to hold sample items.
Definition: SampleModel.h:24
Main class to holds all models of GUI session.
std::unique_ptr< ApplicationModelsImpl > p_impl
The model to store imported reflectometry data.
Model to store specular instruments settings.
The model to store results of (possibly) multiple reflectometry simulation, and all viewports,...
Definition: jobmodel.h:36
Model to hold MaterialItems.
Definition: materialmodel.h:35
The model of the sld layer visual representation.
Model to hold layers and multi-layers.
Definition: samplemodel.h:24
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20