BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IntensityDataWidget.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/IntensityDataWidget.h
6 //! @brief Defines class IntensityDataWidget
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_INTENSITYDATAWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_INTENSITYDATAWIDGET_H
17 
19 #include <memory>
20 
21 class SessionItem;
24 class IntensityDataItem;
25 class QAction;
26 class QContextMenuEvent;
28 
29 //! A common widget to display color map (IntensityDataCanvas) and properties
30 //! (IntensityDataPropertyWidget) of intensity data item.
31 
33  Q_OBJECT
34 
35 public:
36  IntensityDataWidget(QWidget* parent = 0);
37 
38  void setItem(SessionItem* jobItem);
39 
40  QList<QAction*> actionList();
41 
42 private slots:
43  void onContextMenuRequest(const QPoint& point);
44  void onFFTAction();
45 
46 private:
48 
52 };
53 
54 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INTENSITYDATAWIDGETS_INTENSITYDATAWIDGET_H
Defines class ItemComboWidget.
The IntensityDataCanvas class represents IntensityDataItem as color map, provides standard actions (r...
Provides support in Fast Fourier transformation of IntensityDataItem.
The IntensityDataPropertyWidget shows ComponentEditor for given IntensityDataItem.
A common widget to display color map (IntensityDataCanvas) and properties (IntensityDataPropertyWidge...
IntensityDataCanvas * m_intensityCanvas
IntensityDataPropertyWidget * m_propertyWidget
void setItem(SessionItem *jobItem)
void onContextMenuRequest(const QPoint &point)
IntensityDataWidget(QWidget *parent=0)
QList< QAction * > actionList()
IntensityDataFFTPresenter * m_fftPresenter
IntensityDataItem * intensityDataItem()
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.