BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
propertyflatview.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/view/mvvm/widgets/propertyflatview.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 Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_PROPERTYFLATVIEW_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_PROPERTYFLATVIEW_H
17 
18 #include "mvvm/view_export.h"
19 #include <QWidget>
20 #include <memory>
21 
22 namespace ModelView {
23 
24 class SessionItem;
25 
26 //! Widget holding grid layout with editors and intended for displaying all properties of given
27 //! SessionItem.
28 
29 class MVVM_VIEW_EXPORT PropertyFlatView : public QWidget {
30  Q_OBJECT
31 
32 public:
33  PropertyFlatView(QWidget* parent = nullptr);
35 
36  void setItem(SessionItem* item);
37 
38 private:
39  struct PropertyFlatViewImpl;
40  std::unique_ptr<PropertyFlatViewImpl> p_impl;
41 };
42 
43 } // namespace ModelView
44 
45 #endif // BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_PROPERTYFLATVIEW_H
Widget holding grid layout with editors and intended for displaying all properties of given SessionIt...
std::unique_ptr< PropertyFlatViewImpl > p_impl
The main object representing an editable/displayable/serializable entity.
Definition: sessionitem.h:38
materialitems.h Collection of materials to populate MaterialModel.