// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #include #include "../widgets/LiveComboBox.h" #include #include #include "JFJochHelperWindow.h" #include "../image_viewer/JFJochSimpleImage.h" #include "../../reader/JFJochReaderDataset.h" #include "../SimpleImage.h" #include "../widgets/SliderPlusBox.h" class JFJochCalibrationWindow : public JFJochHelperWindow { Q_OBJECT LiveComboBox *calibration_option; QComboBox *color_map_select; SliderPlusBox *foreground_slider; SliderPlusBox *background_slider; QStatusBar *statusBar; std::shared_ptr dataset; JFJochSimpleImage *viewer = nullptr; // LoadMask() is skipped while the window is closed - it only records that a reload is owed, // and showEvent() pays it. bool pending_mask_reload = false; public: JFJochCalibrationWindow(QWidget *parent = nullptr); protected: void showEvent(QShowEvent *event) override; signals: void loadCalibration(QString name); private slots: void LoadMask(); void CalibrationSelected(int val); public slots: void datasetLoaded(std::shared_ptr in_dataset) override; void calibrationLoaded(std::shared_ptr image); void setFeatureColor(QColor input); };