BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
RealDataPresenter.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Import/RealDataPresenter.h
6 //! @brief Defines class RealDataPresenter
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_IMPORT_REALDATAPRESENTER_H
16 #define BORNAGAIN_GUI_VIEW_IMPORT_REALDATAPRESENTER_H
17 
19 
20 class RealDataMaskWidget;
21 class QAction;
22 
23 //! Presents imported data (RealDataItem) using stack of different widgets and combo box in the
24 //! right top corner of ImportDataView, to switch between widgets.
25 
27  Q_OBJECT
28 public:
29  explicit RealDataPresenter(QWidget* parent = nullptr);
30 
31  QList<QAction*> actionList() override;
32 
33 protected:
34  QStringList activePresentationList(SessionItem* item) override;
35 };
36 
37 #endif // BORNAGAIN_GUI_VIEW_IMPORT_REALDATAPRESENTER_H
Defines class ItemComboWidget.
The ItemComboWidget class combines stack of widgets with QComboBox controller to switch between widge...
The RealDataMaskWidget class provides mask editing for RealDataItem on ImportDataView.
Presents imported data (RealDataItem) using stack of different widgets and combo box in the right top...
RealDataPresenter(QWidget *parent=nullptr)
QStringList activePresentationList(SessionItem *item) override
Returns list of active presentations for given item. Active presentation is the one which is present ...
QList< QAction * > actionList() override
Base class for a GUI data item.
Definition: SessionItem.h:204