Declutter the side and settings panels (review items a–f): - New CollapsibleSection widget (slim navy header + coral rule + chevron). - Inspector: Image features / Resolution rings / ROI are now collapsible and start folded (ROI auto-expands when ROIs change); drop the Data-analysis and Powder-calibration sections (they live in the hero buttons and settings dock). - Settings dock: move Geometry to a shared section above the MX/AzInt toggle (both communities need it); add Detector tilt (PONI rot1/rot2, deg) and rename "Beam center" -> "Beam origin" with PONI/XDS tooltips; show the space-group number and resolved Hermann–Mauguin symbol on one line; wrap sections in accordions, anchored top with a bottom stretch so expanding one does not shift the others. - Toolbar: drop the redundant "Image number" label. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
65 lines
1.9 KiB
C++
65 lines
1.9 KiB
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QWidget>
|
|
#include <QLineEdit>
|
|
#include <QCheckBox>
|
|
|
|
#include "widgets/JFJochViewerROIList.h"
|
|
#include "../reader/JFJochReader.h"
|
|
#include "charts/JFJochSimpleChartView.h"
|
|
#include "widgets/ResolutionRingWidget.h"
|
|
|
|
class CollapsibleSection;
|
|
|
|
class JFJochViewerSidePanel : public QWidget {
|
|
Q_OBJECT
|
|
|
|
JFJochViewerROIList *roi_list = nullptr;
|
|
ResolutionRingWidget *res_rings = nullptr;
|
|
CollapsibleSection *roiSection = nullptr; // auto-expands when ROIs change
|
|
|
|
signals:
|
|
void showSpots(bool input);
|
|
void setFeatureColor(QColor input);
|
|
void setSpotColor(QColor input);
|
|
void showHighestPixels(int32_t v);
|
|
void showSaturatedPixels(bool input);
|
|
void showPredictions(bool input);
|
|
void highlightIceRings(bool input);
|
|
void showROILabels(bool input);
|
|
void showROIFill(bool input);
|
|
void roisChanged(ROIDefinition rois);
|
|
void selectedROIChanged(QString name);
|
|
void downloadROIs();
|
|
void uploadROIs();
|
|
void maskFromROI(QString name, bool add);
|
|
void findBeamCenter(const UnitCell &input, bool guess);
|
|
void analyze();
|
|
|
|
void imageLoaded(std::shared_ptr<const JFJochReaderImage> image);
|
|
|
|
void writeStatusBar(QString string, int timeout_ms = 0);
|
|
|
|
void ringModeSet(JFJochDiffractionImage::RingMode mode);
|
|
void resRingsSet(QVector<float> v);
|
|
public:
|
|
JFJochViewerSidePanel(QWidget *parent);
|
|
public slots:
|
|
void loadImage(std::shared_ptr<const JFJochReaderImage> image);
|
|
void SetRings(QVector<float> v);
|
|
void selectROIInList(QString name);
|
|
|
|
private slots:
|
|
void spotsToggled(bool input);
|
|
void predictionsToggled(bool input);
|
|
void highlightIceRingsToggled(bool input);
|
|
void saturatedPixelsToggled(bool input);
|
|
};
|
|
|
|
|
|
|