Files
Jungfraujoch/viewer/JFJochViewerDatasetInfo.h
2025-09-24 22:52:31 +02:00

35 lines
1.0 KiB
C++

// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#ifndef JFJOCH_JFJOCHVIEWERDATASETINFO_H
#define JFJOCH_JFJOCHVIEWERDATASETINFO_H
#include <QComboBox>
#include "widgets/JFJochChartView.h"
#include "../reader/JFJochReader.h"
class JFJochViewerDatasetInfo : public QWidget {
Q_OBJECT
QComboBox *combo_box;
JFJochChartView *chart_view;
const std::vector<float> *GetDataset();
std::shared_ptr<const JFJochReaderDataset> dataset;
std::shared_ptr<const JFJochReaderImage> image;
void UpdatePlot();
signals:
void imageSelected(int64_t number, int64_t summation);
public:
explicit JFJochViewerDatasetInfo(QWidget *parent = nullptr);
private slots:
void imageSelectedInChart(int64_t number);
void comboBoxSelected(int val);
public slots:
void datasetLoaded(std::shared_ptr<const JFJochReaderDataset> dataset);
void imageLoaded(std::shared_ptr<const JFJochReaderImage> image);
};
#endif //JFJOCH_JFJOCHVIEWERDATASETINFO_H