21 #include <qcustomplot.h>
26 , m_reset_view_action(nullptr)
27 , m_save_plot_action(nullptr)
30 auto* vlayout =
new QVBoxLayout(
this);
31 vlayout->setSpacing(0);
32 vlayout->setContentsMargins(0, 0, 0, 0);
35 setStyleSheet(
"background-color:white;");
52 return QSize(500, 400);
57 return QSize(128, 128);
98 if (event->button() == Qt::RightButton)
99 emit customContextMenuRequested(event->globalPos());
116 "x,y axes range will be set to default");
Defines class ProjectDocument.
Defines class SavePlotAssistant.
SessionData * gSessionData
global pointer to the single instance
Defines struct SessionData.
Defines class SpecularDataCanvas.
Defines class SpecularDataItem.
Defines class ColorMapCanvas.
Base class for a GUI data item.
void setItem(SessionItem *intensityItem) override
QList< QAction * > actionList() override
SpecularPlotCanvas * m_plot_canvas
void onMousePress(QMouseEvent *event)
QAction * m_save_plot_action
QSize minimumSizeHint() const override
SpecularDataCanvas(QWidget *parent=nullptr)
QCustomPlot * customPlot()
SpecularDataItem * specularDataItem()
QAction * m_reset_view_action
void enableDeprecatedOnMousePress(bool b)
Enable or disable the onMousePress() handler. For legacy reasons the onMousePress handler is enabled....
QSize sizeHint() const override
void resetView()
Set axes viewport to original data.
The SpecularPlotCanvas class contains SpecularPlot for specular data presentation,...
void setItem(SessionItem *specularDataItem) override
QCustomPlot * customPlot()
void setStatusLabelEnabled(bool flag)
void savePlot(const QString &dirname, QCustomPlot *plot, Datafield *output_data)
std::optional< ProjectDocument * > projectDocument