Files
Jungfraujoch/viewer/windows/JFJochViewerImageListWindow.h
T

48 lines
1.4 KiB
C++

// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#ifndef JFJOCH_JFJOCHVIEWERIMAGELISTWINDOW_H
#define JFJOCH_JFJOCHVIEWERIMAGELISTWINDOW_H
#include <QMainWindow>
#include <QTableView>
#include <QStandardItemModel>
#include <QSortFilterProxyModel>
#include "JFJochHelperWindow.h"
#include "../../reader/JFJochReader.h"
class JFJochViewerImageListWindow : public JFJochHelperWindow {
Q_OBJECT
QTableView *tableView;
QStandardItemModel *tableModel;
QSortFilterProxyModel *proxyModel;
void setupTableModel();
void addDataRow(int imageNumber, double backgroundEstimate,
const QString &indexingResult, int spotCount,
double resolutionEstimate, int64_t max_value,
double image_scale_factor,
double image_scale_cc_percent,
double image_scale_b);
void clearAllData();
public:
explicit JFJochViewerImageListWindow(QWidget *parent = nullptr);
signals:
void imageSelected(int64_t image_number, int64_t summation);
public slots:
void datasetLoaded(std::shared_ptr<const JFJochReaderDataset> dataset) override;
void imageLoaded(std::shared_ptr<const JFJochReaderImage> image) override;
private slots:
void onTableRowDoubleClicked(const QModelIndex &index);
};
#endif //JFJOCH_JFJOCHVIEWERIMAGELISTWINDOW_H