Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT REVIEW 2378 Part Four: The Phantom XML - Extract ROIFormWidget into Widgets Sub-directory #2496

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JackEAllen
Copy link
Collaborator

Issue Closes #2378

Description

The proposed changes extracts the xml GUI code out of spectrum_viewer.ui and into mantidimaging/gui/widgets/spectrum_widgets/ROIFORMWidget.ui and ROIFormWidget into mantidimaging/gui/widgets/spectrum_widgets/ROIFORMWidget.py

Developer Testing

  • I have verified unit tests pass locally: python -m pytest -vs
  • I have manually tested the Spectrum Viewer ROI properties remain up to date when:
    • Creating new ROIs
    • Renaming ROIs
    • Removing ROIs
    • Selecting an ROI with the intention to rename, then selecting another ROI
    • Swapping tabs between ROI and Image tabs
    • Toggling ROI visibility for various ROIs
    • Toggling ROI visibility and swapping between Image and ROI tab views.

Acceptance Criteria and Reviewer Testing

  • Unit tests pass locally: python -m pytest -vs
  • ROI Properties table values always display the selected ROI
  • ROI table state remains up to date/in-sync with state of ROIs when adding, renaming and removing ROIs.
  • The Selected ROI can only be a visible ROI
  • No change in functional behaviour is introduced when compared to main branch.

Documentation and Additional Notes

  • Release Notes have been updated

…ox.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
… 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
@JackEAllen JackEAllen self-assigned this Feb 10, 2025
@JackEAllen JackEAllen changed the title 2378 Part Four: The Phantom XML - Extract ROIFormWidget into Widgets Sub-directory DO NOT REVIEW 2378 Part Four: The Phantom XML - Extract ROIFormWidget into Widgets Sub-directory Feb 10, 2025
@coveralls
Copy link

Coverage Status

coverage: 73.075%. remained the same
when pulling 055b399 on 2378_PART_FOUR_extract_ROIFORMWidget_into_widgets
into dbede8a on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image Window: Place Spectrum Viewer Table and ROI Properties into a Widget
2 participants