BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
sldeditoractions.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/sldeditor/sldeditoractions.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_SLDEDITORACTIONS_H
16 #define BORNAGAIN_GUI2_SLDEDITOR_SLDEDITORACTIONS_H
17 
18 #include "darefl_export.h"
19 #include <QObject>
20 #include <memory>
21 
22 namespace gui2 {
23 
24 class SLDElementModel;
25 
26 //! Handles user actions applied to SLDEditor.
27 //! Belongs to SLDEditor.
28 
29 class DAREFLCORE_EXPORT SLDEditorActions : public QObject {
30  Q_OBJECT
31 
32 public:
33  SLDEditorActions(QObject* parent = nullptr);
35 
36  void setModel(SLDElementModel* model);
37 
38 private:
39  struct SLDEditorActionsImpl;
40  std::unique_ptr<SLDEditorActionsImpl> p_impl;
41 };
42 
43 } // namespace gui2
44 
45 #endif // BORNAGAIN_GUI2_SLDEDITOR_SLDEDITORACTIONS_H
Handles user actions applied to SLDEditor.
std::unique_ptr< SLDEditorActionsImpl > p_impl
The model of the sld layer visual representation.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20