BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
quicksimeditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/quicksimeditor/quicksimeditor.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_QUICKSIMEDITOR_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_QUICKSIMEDITOR_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 namespace gui2 {
22 
23 class JobModel;
24 class ApplicationModels;
25 class QuickSimController;
26 class QuickSimEditorToolBar;
27 class SimPlotController;
28 class SimPlotWidget;
29 
30 //! Quick reflectivity simulations.
31 
32 class DAREFLCORE_EXPORT QuickSimEditor : public QWidget {
33  Q_OBJECT
34 
35 public:
36  QuickSimEditor(QWidget* parent = nullptr);
38 
39  void setModels(ApplicationModels* models);
40 
41  QSize sizeHint() const override;
42  QSize minimumSizeHint() const override;
43 
44 private:
45  void setup_toolbar_connections();
46  void setup_controller_connections();
47 
48  ApplicationModels* m_appModels{nullptr};
49  QuickSimController* m_simController{nullptr};
50  SimPlotController* m_plotController{nullptr};
51  SimPlotWidget* m_plotWidget{nullptr};
52  QuickSimEditorToolBar* m_toolBar{nullptr};
53 };
54 
55 } // namespace gui2
56 
57 #endif // BORNAGAIN_GUI2_QUICKSIMEDITOR_QUICKSIMEDITOR_H
Main class to holds all models of GUI session.
Provides quick reflectometry simulations on any change of SampleModel and MaterialModel.
Toolbar for QuickSimEditor.
Quick reflectivity simulations.
Updates reference curve in JobItem when BeamItem is changed.
Presents simulation results together with reference experimental data on two canvas.
Definition: simplotwidget.h:32
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20