BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ProjectionsWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Projection/ProjectionsWidget.h
6 //! @brief Defines class ProjectionsWidget
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_PROJECTION_PROJECTIONSWIDGET_H
16 #define BORNAGAIN_GUI_VIEW_PROJECTION_PROJECTIONSWIDGET_H
17 
20 
21 class ProjectionsPlot;
22 class QTabWidget;
23 
24 //! Holds tabs of vertical and horizontal projections, located at the bottom of ProjectionsEditor.
25 
27  Q_OBJECT
28 
29 public:
31 
32  ProjectionsWidget(QWidget* parent = nullptr);
33  void setItem(SessionItem* intensityItem) override;
34 
35 signals:
36  void changeActivityRequest(MaskEditorFlags::Activity value);
37 
38 public slots:
39  void onActivityModeChanged(MaskEditorFlags::Activity value);
40  void onMarginsChanged(double left, double right);
41 
42 private slots:
43  void onTabChanged(int tab_index);
44 
45 private:
46  void setConnected(bool isConnected);
47 
50  QTabWidget* m_tabWidget;
51 };
52 
53 #endif // BORNAGAIN_GUI_VIEW_PROJECTION_PROJECTIONSWIDGET_H
Defines class MaskEditorFlags.
Defines class ItemComboWidget.
A customplot based widget to display projections of IntensityDataItem on X,Y axes.
Holds tabs of vertical and horizontal projections, located at the bottom of ProjectionsEditor.
void changeActivityRequest(MaskEditorFlags::Activity value)
ProjectionsWidget(QWidget *parent=nullptr)
void onActivityModeChanged(MaskEditorFlags::Activity value)
ProjectionsPlot * m_yProjection
void onTabChanged(int tab_index)
void setConnected(bool isConnected)
QTabWidget * m_tabWidget
ProjectionsPlot * m_xProjection
void onMarginsChanged(double left, double right)
void setItem(SessionItem *intensityItem) override
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