43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCHVIEWERWINDOW_H
|
|
#define JFJOCHVIEWERWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include "JFJochViewerMenu.h"
|
|
#include "JFJochViewerToolbar.h"
|
|
#include "../reader/JFJochHDF5Reader.h"
|
|
#include "JFJochImageReadingWorker.h"
|
|
#include "JFJochViewerDatasetInfo.h"
|
|
|
|
class JFJochViewerWindow : public QMainWindow {
|
|
Q_OBJECT
|
|
const QString stylesheet = "background-color: rgb(255, 235, 230);";
|
|
public:
|
|
explicit JFJochViewerWindow(QWidget *parent = nullptr, bool dbus = true, const QString &file = "");
|
|
~JFJochViewerWindow() override;
|
|
|
|
|
|
private:
|
|
JFJochViewerToolbar *toolBar;
|
|
JFJochViewerMenu *menuBar;
|
|
JFJochViewerDatasetInfo *dataset_info;
|
|
JFJochImageReadingWorker *reading_worker;
|
|
|
|
QThread *reading_thread;
|
|
|
|
public slots:
|
|
void LoadFile(const QString &filename, qint64 image_number, qint64 summation);
|
|
void LoadImage(qint64 image_number, qint64 summation);
|
|
|
|
signals:
|
|
void LoadFileRequest(const QString &filename, qint64 image_number, qint64 summation);
|
|
void LoadImageRequest(int64_t image_number, int64_t summation);
|
|
};
|
|
|
|
|
|
|
|
#endif //JFJOCHVIEWERWINDOW_H
|