Files
Jungfraujoch/viewer/JFJochViewerSidePanelChart.h
2025-10-01 22:54:40 +02:00

40 lines
1.1 KiB
C++

// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#ifndef JFJOCH_JFJOCHVIEWERSIDEPANELCHART_H
#define JFJOCH_JFJOCHVIEWERSIDEPANELCHART_H
#include <QWidget>
#include <QComboBox>
#include <QStackedWidget>
#include "../reader/JFJochReaderImage.h"
#include "widgets/JFJochSimpleChartView.h"
#include "widgets/JFJochOneOverResSqChartView.h"
#include "widgets/JFJochAzIntImageView.h"
class JFJochViewerSidePanelChart : public QWidget {
Q_OBJECT
QStackedWidget *stack = nullptr;
JFJochSimpleChartView *azint_plot = nullptr;
JFJochAzIntImageView *azint_image = nullptr;
JFJochOneOverResSqChartView *one_over_d_sq_plot = nullptr;
std::shared_ptr<const JFJochReaderImage> image;
QComboBox *combo_box;
void redrawPlot();
private slots:
void comboBoxSelected(int val);
public:
JFJochViewerSidePanelChart(QWidget *parent);
public slots:
void loadImage(std::shared_ptr<const JFJochReaderImage> image);
};
#endif //JFJOCH_JFJOCHVIEWERSIDEPANELCHART_H