BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
customlayertreeeditorfactory.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/layereditor/customlayertreeeditorfactory.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_CUSTOMLAYERTREEEDITORFACTORY_H
16 #define BORNAGAIN_GUI2_LAYEREDITOR_CUSTOMLAYERTREEEDITORFACTORY_H
17 
18 #include "darefl_export.h"
20 
21 namespace gui2 {
22 
23 class ApplicationModels;
24 
25 //! Custom editor factory for LayerTreeView. Substitutes default ExternalProperty editor
26 //! with custom one, which will offer the choice between all defined materials.
27 
29 public:
32 
33  std::unique_ptr<ModelView::CustomEditor> createEditor(const QModelIndex& index) const;
34 
35 private:
37 };
38 
39 } // namespace gui2
40 
41 #endif // BORNAGAIN_GUI2_LAYEREDITOR_CUSTOMLAYERTREEEDITORFACTORY_H
Default editor factory for cell editors in Qt trees and tables.
Main class to holds all models of GUI session.
Custom editor factory for LayerTreeView.
Defines class CLASS?
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20