BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SpecularPlotCanvas.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SpecularDataWidgets/SpecularPlotCanvas.h
6 //! @brief Defines class ColorMapCanvas
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_SPECULARDATAWIDGETS_SPECULARPLOTCANVAS_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SPECULARDATAWIDGETS_SPECULARPLOTCANVAS_H
17 
19 
20 class FontScalingEvent;
21 class PlotStatusLabel;
22 class QCustomPlot;
23 class SpecularPlot;
24 
25 //! The SpecularPlotCanvas class contains SpecularPlot for specular data presentation, and provides
26 //! status string appearance.
27 
29  Q_OBJECT
30 
31 public:
32  explicit SpecularPlotCanvas(QWidget* parent = nullptr);
33 
34  void setItem(SessionItem* specularDataItem) override;
35 
37  QCustomPlot* customPlot();
38 
39  void setStatusLabelEnabled(bool flag);
40 
41 public slots:
42  void onStatusString(const QString& name);
43 
44 private:
48 };
49 
50 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_SPECULARDATAWIDGETS_SPECULARPLOTCANVAS_H
Defines class ItemComboWidget.
Provides event filter for ScientificPlot.
The PlotStatusLabel class shows status string as reported by DescriptedPlot in a frame.
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.
The SpecularPlotCanvas class contains SpecularPlot for specular data presentation,...
FontScalingEvent * m_canvasEvent
SpecularPlotCanvas(QWidget *parent=nullptr)
void setItem(SessionItem *specularDataItem) override
void onStatusString(const QString &name)
SpecularPlot * specularPlot()
PlotStatusLabel * m_statusLabel
QCustomPlot * customPlot()
void setStatusLabelEnabled(bool flag)
SpecularPlot * m_plot
The SpecularPlot class presents 1D intensity data from SpecularDataItem.
Definition: SpecularPlot.h:32
SpecularDataItem * specularDataItem(SessionItem *parent)
Returns SpecularDataItem contained as a child in givent parent.
QString const & name(EShape k)
Definition: particles.cpp:21