Files
Jungfraujoch/viewer/JFJochViewerSidePanelChart.h
2025-09-08 20:28:59 +02:00

38 lines
969 B
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/JFJochAzIntImageView.h"
class JFJochViewerSidePanelChart : public QWidget {
Q_OBJECT
QStackedWidget *stack = nullptr;
JFJochSimpleChartView *azint_plot = nullptr;
JFJochAzIntImageView *azint_image = 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