BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
simplotcontroller.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/quicksimeditor/simplotcontroller.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_QUICKSIMEDITOR_SIMPLOTCONTROLLER_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_SIMPLOTCONTROLLER_H
17 
18 #include "darefl_export.h"
19 #include <QObject>
20 #include <memory>
21 
22 namespace ModelView {
23 class ModelHasChangedController;
24 }
25 
26 namespace gui2 {
27 
28 class ApplicationModels;
29 
30 //! Updates reference curve in JobItem when BeamItem is changed.
31 
32 class DAREFLCORE_EXPORT SimPlotController : public QObject {
33  Q_OBJECT
34 
35 public:
36  SimPlotController(QObject* parent = nullptr);
38 
39  void setModels(ApplicationModels* models);
40 
41 private:
42  void onInstrumentChange();
43 
44  ApplicationModels* m_models{nullptr};
45  std::unique_ptr<ModelView::ModelHasChangedController> m_instrumentChangedController;
46 };
47 
48 } // namespace gui2
49 
50 #endif // BORNAGAIN_GUI2_QUICKSIMEDITOR_SIMPLOTCONTROLLER_H
Main class to holds all models of GUI session.
Updates reference curve in JobItem when BeamItem is changed.
std::unique_ptr< ModelView::ModelHasChangedController > m_instrumentChangedController
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