From 979047625585d9522f160b655509c9d50b19dbf9 Mon Sep 17 00:00:00 2001 From: JackEAllen Date: Mon, 10 Feb 2025 13:37:11 +0000 Subject: [PATCH 1/2] Extract ROI GUI Elements Out of spectrum_widget.ui into RoiFormGroupBox.ui Extract ROI form elements out of spectrum_viewer.ui into a new ui file called ROIFOrmWidget.ui and wrap in a QGroupBox called RoiFormGroupBox and place in widgets sub-directory --- .../widgets/spectrum_widgets/ROIFormWidget.ui | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 mantidimaging/gui/widgets/spectrum_widgets/ROIFormWidget.ui diff --git a/mantidimaging/gui/widgets/spectrum_widgets/ROIFormWidget.ui b/mantidimaging/gui/widgets/spectrum_widgets/ROIFormWidget.ui new file mode 100644 index 00000000000..b50f9411e3f --- /dev/null +++ b/mantidimaging/gui/widgets/spectrum_widgets/ROIFormWidget.ui @@ -0,0 +1,287 @@ + + + RoiFormGroupBox + + + + 0 + 0 + 305 + 587 + + + + + 0 + 0 + + + + GroupBox + + + + + + + + + + + + + + + + + 0 + 10 + 302 + 351 + + + + 0 + + + + ROIs + + + + + + ROI Table + + + false + + + false + + + + + + true + + + false + + + + + + + + + <html><head/><body><p>Adds a new row to the table.</p><p>Slice index defaults to the current preview slice index.</p></body></html> + + + Add + + + + + + + false + + + <html><head/><body><p>Removes the selected row from the table.</p></body></html> + + + Remove + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + Export spectrum + + + + + + + + Image + + + + + + Output Mode + + + + + + + + Single Spectrum + + + + + 2D Binned + + + + + + + + Error Mode + + + + + + + + Standard Deviation + + + + + Propagated + + + + + + + + Bin Size + + + + + + + 1 + + + 1000 + + + 10 + + + + + + + Bin Step + + + + + + + 1 + + + 1000 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Export to RITS + + + + + + + + + + 2 + 370 + 301 + 200 + + + + + 0 + 0 + + + + + 16777215 + 200 + + + + ROI Properties + + + + + + + 0 + 0 + + + + + 16777215 + 200 + + + + QAbstractScrollArea::AdjustToContentsOnFirstShow + + + + + + + + + RemovableRowTableView + QTableView +
mantidimaging.gui.widgets
+
+
+ + +
From 055b399d9f0ca19efcb3e3a7c2f935d4847ef960 Mon Sep 17 00:00:00 2001 From: JackEAllen Date: Mon, 10 Feb 2025 13:45:21 +0000 Subject: [PATCH 2/2] Create ExportTabsPlaceholder QWidget for ROIFormWidget.ui componenets to be inserted into Create ExportTabsPlaceholder for ROIFormWidget.ui componenets to later be inserted into. This commit leaves ExportTabsPlaceholder commented out until the dulicate componenets of ROIFOrmWidget.ui have been removed from spectrum_viewer.ui --- mantidimaging/gui/ui/spectrum_viewer.ui | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mantidimaging/gui/ui/spectrum_viewer.ui b/mantidimaging/gui/ui/spectrum_viewer.ui index f59ceaad1d1..22504dfd55a 100644 --- a/mantidimaging/gui/ui/spectrum_viewer.ui +++ b/mantidimaging/gui/ui/spectrum_viewer.ui @@ -446,6 +446,9 @@ +