45 lines
1.3 KiB
C++
45 lines
1.3 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 "../../reader/JFJochReader.h"
|
|
|
|
class JFJochViewerImageListWindow : public QMainWindow {
|
|
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);
|
|
|
|
void clearAllData();
|
|
void closeEvent(QCloseEvent *event) override;
|
|
public:
|
|
explicit JFJochViewerImageListWindow(QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
void closing();
|
|
void imageSelected(int64_t image_number, int64_t summation);
|
|
|
|
public slots:
|
|
void open();
|
|
void datasetLoaded(std::shared_ptr<const JFJochReaderDataset> dataset);
|
|
void imageLoaded(std::shared_ptr<const JFJochReaderImage> image);
|
|
private slots:
|
|
void onTableRowDoubleClicked(const QModelIndex &index);
|
|
};
|
|
|
|
|
|
|
|
#endif //JFJOCH_JFJOCHVIEWERIMAGELISTWINDOW_H
|