BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
instrumentpropertyeditor.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/quicksimeditor/instrumentpropertyeditor.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_QUICKSIMEDITOR_INSTRUMENTPROPERTYEDITOR_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_INSTRUMENTPROPERTYEDITOR_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 namespace ModelView {
22 class PropertyTreeView;
23 }
24 
25 namespace gui2 {
26 
27 class ApplicationModels;
28 
29 //! Widget with InstrumentItem properties.
30 //! Used to modify q-scan parameters, located under QuickSimEditor.
31 
32 class DAREFLCORE_EXPORT InstrumentPropertyEditor : public QWidget {
33  Q_OBJECT
34 
35 public:
36  InstrumentPropertyEditor(QWidget* parent = nullptr);
38 
39  void setModels(ApplicationModels* models);
40 
41  QSize sizeHint() const override;
42  QSize minimumSizeHint() const override;
43 
44 private:
45  ModelView::PropertyTreeView* m_beamPropertyEditor{nullptr};
46 };
47 
48 } // namespace gui2
49 
50 #endif // BORNAGAIN_GUI2_QUICKSIMEDITOR_INSTRUMENTPROPERTYEDITOR_H
Widget holding standard QTreeView and intended for displaying all properties of given SessionItem.
Main class to holds all models of GUI session.
Widget with InstrumentItem properties.
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