BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
sldeditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/sldeditor/sldeditor.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_SLDEDITOR_SLDEDITOR_H
16 #define BORNAGAIN_GUI2_SLDEDITOR_SLDEDITOR_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 namespace gui2 {
22 class SLDEditorActions;
23 class SLDEditorToolBar;
24 class SLDViewWidget;
25 class ApplicationModels;
26 
27 //! The SLD editor QWidget
28 class DAREFLCORE_EXPORT SLDEditor : public QWidget {
29  Q_OBJECT
30 
31 public:
32  SLDEditor(QWidget* parent = nullptr);
34 
35  void setModels(ApplicationModels* models);
36 
37  QSize sizeHint() const override;
38  QSize minimumSizeHint() const override;
39 
40 private:
41  SLDEditorActions* m_editorActions{nullptr};
42  SLDViewWidget* m_viewWidget{nullptr};
43  SLDEditorToolBar* m_toolBar{nullptr};
44 };
45 
46 } // namespace gui2
47 
48 #endif // BORNAGAIN_GUI2_SLDEDITOR_SLDEDITOR_H
Main class to holds all models of GUI session.
Handles user actions applied to SLDEditor.
Material editor toolbar.
The SLD editor QWidget.
Definition: sldeditor.h:28
~SLDEditor()
The destructor.
The segment QGraphicsViewItem on the Graphicsscene.
Definition: sldviewwidget.h:28
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20