BornAgain  1.19.79
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/View/Plot2D/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_VIEW_PLOT2D_INTENSITYDATAWIDGET_H
16 #define BORNAGAIN_GUI_VIEW_PLOT2D_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 //! (ItemPropertyWidget) of intensity data item.
31 
33  Q_OBJECT
34 
35 public:
36  IntensityDataWidget(QWidget* parent = nullptr);
37 
38  void setItem(SessionItem* jobItem) override;
39 
40  QList<QAction*> actionList() override;
41 
42 private slots:
43  void onContextMenuRequest(const QPoint& point);
44  void onFFTAction();
45 
46 private:
48 
53 };
54 
55 #endif // BORNAGAIN_GUI_VIEW_PLOT2D_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. Contains own model to hold Inte...
Widget to edit properties of an IntensityDataItem.
A common widget to display color map (IntensityDataCanvas) and properties (ItemPropertyWidget) of int...
QList< QAction * > actionList() override
IntensityDataCanvas * m_intensityCanvas
IntensityDataPropertyWidget * m_propertyWidget
void onContextMenuRequest(const QPoint &point)
IntensityDataWidget(QWidget *parent=nullptr)
void setItem(SessionItem *jobItem) override
QAction * m_togglePropertiesAction
IntensityDataFFTPresenter * m_fftPresenter
IntensityDataItem * intensityDataItem()
The SessionItemWidget class is a base for all widgets representing the content of SessionItem....
Base class for a GUI data item.
Definition: SessionItem.h:204