BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
materialeditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/materialeditor/materialeditor.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_MATERIALEDITOR_MATERIALEDITOR_H
16 #define BORNAGAIN_GUI2_MATERIALEDITOR_MATERIALEDITOR_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 namespace gui2 {
22 
23 class ApplicationModels;
24 class MaterialEditorActions;
26 class MaterialEditorWidget;
27 
28 //! Material editor.
29 
30 class DAREFLCORE_EXPORT MaterialEditor : public QWidget {
31  Q_OBJECT
32 
33 public:
34  MaterialEditor(QWidget* parent = nullptr);
36 
37  void setModels(ApplicationModels* models);
38 
39  QSize sizeHint() const override;
40  QSize minimumSizeHint() const override;
41 
42 private:
43  MaterialEditorActions* m_actions{nullptr};
44  MaterialEditorWidget* m_editorWidget{nullptr};
45  MaterialEditorToolBar* m_toolBar{nullptr};
46 };
47 
48 } // namespace gui2
49 
50 #endif // BORNAGAIN_GUI2_MATERIALEDITOR_MATERIALEDITOR_H
Toolbar for MaterialEditor.
Main class to holds all models of GUI session.
Handles user actions applied to material table.
Material editor toolbar.
Widget to hold material table (MaterialTreeView) and all corresponding models and delegates.
Material editor.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20