BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
experimentaldatacontroller.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/model/experimentaldatacontroller.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_EXPERIMENTALDATACONTROLLER_H
16 #define BORNAGAIN_GUI2_MODEL_EXPERIMENTALDATACONTROLLER_H
17 
18 #include "darefl_export.h"
21 
22 namespace gui2 {
23 
24 class InstrumentModel;
25 class ExperimentalDataModel;
26 
27 //! Listens for all changes in ExperimentalDataModel and updates properties in InstrumentModel.
28 //! Main task is to update links of ExperimentalScanItem to particular imported graph, when
29 //! ExperimentalDataModel is changing.
30 
31 class DAREFLCORE_EXPORT ExperimentalDataController
32  : public ModelView::ModelListener<ExperimentalDataModel> {
33 public:
35  InstrumentModel* instrument_model);
36 
37 private:
38  void update_all();
39 
40  InstrumentModel* m_instrument_model{nullptr};
41 };
42 
43 } // namespace gui2
44 
45 #endif // BORNAGAIN_GUI2_MODEL_EXPERIMENTALDATACONTROLLER_H
Templated class for all objects willing to listen for changes in concrete SessionModel.
Definition: modellistener.h:26
Listens for all changes in ExperimentalDataModel and updates properties in InstrumentModel.
The model to store imported reflectometry data.
Model to store specular instruments settings.
Defines class CLASS?
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20
Defines class CLASS?