BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IntensityDataPropertyWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/IntensityDataWidgets/IntensityDataPropertyWidget.h
6 //! @brief Defines class IntensityDataPropertyWidget
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_INTENSITYDATAWIDGETS_INTENSITYDATAPROPERTYWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_INTENSITYDATAPROPERTYWIDGET_H
17 
19 
20 class IntensityDataItem;
21 class ComponentEditor;
22 class SessionItem;
23 
24 //! The IntensityDataPropertyWidget shows ComponentEditor for given IntensityDataItem.
25 
27  Q_OBJECT
28 public:
29  explicit IntensityDataPropertyWidget(QWidget* parent = 0);
30 
31  QSize sizeHint() const;
32  QSize minimumSizeHint() const;
33 
34  QList<QAction*> actionList();
35 
36 public slots:
37  void onTogglePanelAction();
38 
39 protected:
40  virtual void subscribeToItem();
41  virtual void unsubscribeFromItem();
42  void contextMenuEvent(QContextMenuEvent*);
43 
44 private:
47 };
48 
49 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_INTENSITYDATAPROPERTYWIDGET_H
Defines class ItemComboWidget.
Component editor for SessionItem.
The IntensityDataPropertyWidget shows ComponentEditor for given IntensityDataItem.
void contextMenuEvent(QContextMenuEvent *)
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.