// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include #include #include #include "../../reader/JFJochReaderImage.h" #include "../charts/JFJochSimpleChartView.h" // Per-image profile plot (azimuthal 1D, Wilson, I/sigma, spots, fluorescence). It has no selector // of its own — the host (dataset-info dock) drives the plot type via setPlotType, reusing its one // combo box. class JFJochViewerSidePanelChart : public QWidget { Q_OBJECT JFJochSimpleChartView *azint_plot = nullptr; std::shared_ptr image; int plot_type_ = 0; void redrawPlot(); signals: void writeStatusBar(QString string, int timeout_ms = 0); public: JFJochViewerSidePanelChart(QWidget *parent); // The available per-image plots as (label, code), so the host can fill its own combo. static QList> PlotTypes(); public slots: void loadImage(std::shared_ptr image); void setPlotType(int code); };