Files
Jungfraujoch/viewer/widgets/NumericComboBox.h
T
leonarski_f cc3eb8352c v1.0.0-rc.148 (#58)
This is an UNSTABLE release. The release has significant modifications for data processing - in case of troubles go back to 1.0.0-rc.144.

* jfjoch_broker: Improve azimuthal integration (add <I^2> calculation)
* jfjoch_broker: Fixes around indexing, aiming to handle multi-lattice crystals (work in progress, it is not fully integrated)
* jfjoch_writer: Save mean(I), stddev(I), and count(I) for each azimuthal bin

Reviewed-on: #58
2026-06-08 08:30:35 +02:00

29 lines
646 B
C++

// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include <QComboBox>
class NumericComboBox : public QComboBox {
Q_OBJECT
QIntValidator *validator;
public:
NumericComboBox(std::vector<int> options,
int min = 0,
int max = 100,
QWidget *parent = nullptr);
int getValue() const;
void setValue(int value);
signals:
void valueChanged(int value);
private slots:
void onCurrentIndexChanged(int index);
void onEditTextChanged(const QString &text);
};