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>
24 lines
679 B
C++
24 lines
679 B
C++
// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
class QToolButton;
|
|
class QLayout;
|
|
|
|
// A slim collapsible section: a clickable navy header with a coral accent rule and a chevron,
|
|
// over a content area that folds away. Used to keep the side and settings panels compact.
|
|
class CollapsibleSection : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit CollapsibleSection(const QString &title, QWidget *parent = nullptr);
|
|
void setContentLayout(QLayout *layout);
|
|
void setExpanded(bool on);
|
|
|
|
private:
|
|
QToolButton *header_;
|
|
QWidget *content_;
|
|
};
|