BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
layereditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/layereditor/layereditor.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_LAYEREDITOR_LAYEREDITOR_H
16 #define BORNAGAIN_GUI2_LAYEREDITOR_LAYEREDITOR_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 namespace ModelView {
22 class AbstractViewModel;
23 }
24 
25 namespace gui2 {
26 
27 class ApplicationModels;
28 class LayerEditorActions;
29 class LayerEditorToolBar;
30 class LayerEditorWidget;
31 
32 //! Layer editor.
33 
34 class DAREFLCORE_EXPORT LayerEditor : public QWidget {
35  Q_OBJECT
36 
37 public:
38  LayerEditor(QWidget* parent = nullptr);
40 
41  void setModels(ApplicationModels* models);
42 
43  QSize sizeHint() const override;
44  QSize minimumSizeHint() const override;
45  void selectionChanged();
46 
47 private:
48  LayerEditorActions* m_actions{nullptr};
49  LayerEditorWidget* m_editorWidget{nullptr};
50  LayerEditorToolBar* m_toolBar{nullptr};
51 };
52 
53 } // namespace gui2
54 
55 #endif // BORNAGAIN_GUI2_LAYEREDITOR_LAYEREDITOR_H
Main class to holds all models of GUI session.
Handles user actions applied to layer tree.
Layer editor toolbar.
Widget to hold layer tree (LayerTreeView) and all corresponding models and delegates.
Layer editor.
Definition: layereditor.h:34
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