All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m51s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 7m19s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 7m46s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m32s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 8m6s
Build Packages / build:rpm (rocky8) (push) Successful in 8m7s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 7m37s
Build Packages / Generate python client (push) Successful in 17s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 32s
Build Packages / build:rpm (rocky9) (push) Successful in 9m6s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 6m53s
Build Packages / Unit tests (push) Successful in 1h9m39s
This is an UNSTABLE release. * jfjoch_viewer: Minor improvements to the viewer * jfjoch_broker: Change behavior for modular detectors: coordinates of 0-th pixel can be now arbitrary and detector will be cropped to the smallest rectangle limited by module coordinates Reviewed-on: #8 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_RESOLUTIONRINGWIDGET_H
|
|
#define JFJOCH_RESOLUTIONRINGWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QButtonGroup>
|
|
#include <QRadioButton>
|
|
#include <QLineEdit>
|
|
|
|
#include "JFJochDiffractionImage.h"
|
|
|
|
|
|
class ResolutionRingWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
QRadioButton *auto_button;
|
|
QRadioButton *est_button;
|
|
QRadioButton *manual_button;
|
|
QRadioButton *none_button;
|
|
|
|
QButtonGroup *button_group;
|
|
QLineEdit *res_rings_edit = nullptr;
|
|
|
|
public:
|
|
explicit ResolutionRingWidget(QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
void ringModeSet(JFJochDiffractionImage::RingMode mode);
|
|
void resRingsSet(QVector<float> v);
|
|
public slots:
|
|
void setRings(const QVector<float> &v);
|
|
void setRingMode(JFJochDiffractionImage::RingMode mode);
|
|
|
|
private slots:
|
|
void editingFinished();
|
|
void autoButtonClicked();
|
|
void estButtonClicked();
|
|
void manualButtonClicked();
|
|
void noneButtonClicked();
|
|
};
|
|
|
|
|
|
#endif //JFJOCH_RESOLUTIONRINGWIDGET_H
|