// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include #include #include #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); 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 dataset) override; void imageLoaded(std::shared_ptr image) override; private slots: void onTableRowDoubleClicked(const QModelIndex &index); };