BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SamplePropertyWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/SamplePropertyWidget.h
6 //! @brief Defines class SamplePropertyWidget
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLEPROPERTYWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLEPROPERTYWIDGET_H
17 
18 #include <QWidget>
19 
20 class QItemSelectionModel;
21 class QItemSelection;
22 class ComponentEditor;
23 
24 //! Property editor to modify property of the object currently selected on the
25 //! graphics scene. Located in the bottom right corner of SampleView.
26 
27 class SamplePropertyWidget : public QWidget {
28  Q_OBJECT
29 public:
30  SamplePropertyWidget(QItemSelectionModel* selection_model, QWidget* parent = nullptr);
31 
32  QSize sizeHint() const;
33  QSize minimumSizeHint() const;
34 
35  void setSelectionModel(QItemSelectionModel* selection_model);
36 
37 public slots:
38  void selectionChanged(const QItemSelection& selected, const QItemSelection&);
39 
40 private:
41  QItemSelectionModel* m_selection_model;
43 };
44 
45 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SAMPLEPROPERTYWIDGET_H
Component editor for SessionItem.
Property editor to modify property of the object currently selected on the graphics scene.
void selectionChanged(const QItemSelection &selected, const QItemSelection &)
SamplePropertyWidget(QItemSelectionModel *selection_model, QWidget *parent=nullptr)
void setSelectionModel(QItemSelectionModel *selection_model)
ComponentEditor * m_propertyEditor
QItemSelectionModel * m_selection_model