BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
Plot1DCanvas.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/PlotComparison/Plot1DCanvas.h
6 //! @brief Defines class Plot1DCanvas
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_PLOTCOMPARISON_PLOT1DCANVAS_H
16 #define BORNAGAIN_GUI_VIEW_PLOTCOMPARISON_PLOT1DCANVAS_H
17 
19 
20 class FontScalingEvent;
21 class PlotStatusLabel;
22 class QCustomPlot;
23 class Plot1D;
24 
25 //! The Plot1DCanvas class contains SpecularPlotWithDataView
26 //! for specular data presentation, and provides
27 //! status string appearance.
28 
30  Q_OBJECT
31 
32 public:
33  explicit Plot1DCanvas(QWidget* parent = nullptr);
34 
35  void setItem(SessionItem* dataItemView) override;
36 
37  Plot1D* plot1D();
38  QCustomPlot* customPlot();
39 
40  void setStatusLabelEnabled(bool flag);
41 
42 public slots:
43  void onStatusString(const QString& name);
44 
45 private:
49 };
50 
51 #endif // BORNAGAIN_GUI_VIEW_PLOTCOMPARISON_PLOT1DCANVAS_H
Defines class ItemComboWidget.
Provides event filter for ScientificPlot. Its goal is to make font size adjustments on resize events.
The Plot1DCanvas class contains SpecularPlotWithDataView for specular data presentation,...
Definition: Plot1DCanvas.h:29
QCustomPlot * customPlot()
void setStatusLabelEnabled(bool flag)
Plot1DCanvas(QWidget *parent=nullptr)
FontScalingEvent * m_canvasEvent
Definition: Plot1DCanvas.h:47
void onStatusString(const QString &name)
Plot1D * m_plot
Definition: Plot1DCanvas.h:46
PlotStatusLabel * m_statusLabel
Definition: Plot1DCanvas.h:48
Plot1D * plot1D()
void setItem(SessionItem *dataItemView) override
The Plot1D class presents data of several 1D DataItems contained in a Data1DViewItem....
Definition: Plot1D.h:32
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....
Base class for a GUI data item.
Definition: SessionItem.h:204
QString const & name(EShape k)
Definition: particles.cpp:20