21 lines
910 B
C++
21 lines
910 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#include "JFJochViewerAdaptor.h"
|
|
|
|
|
|
void JFJochViewerAdaptor::LoadFile(const QString &filename, int image_number, int summation) {
|
|
// Your logic to handle the filename
|
|
// Forward to parent (JFJochViewerWindow)
|
|
QMetaObject::invokeMethod(parent(), "LoadFile",
|
|
Q_ARG(QString, filename),
|
|
Q_ARG(qint64, static_cast<qint64>(image_number)),
|
|
Q_ARG(qint64, static_cast<qint64>(summation)));
|
|
}
|
|
|
|
void JFJochViewerAdaptor::LoadImage(int image_number, int summation) {
|
|
QMetaObject::invokeMethod(parent(), "LoadImage",
|
|
Q_ARG(qint64, static_cast<qint64>(image_number)),
|
|
Q_ARG(qint64, static_cast<qint64>(summation)));
|
|
}
|