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

ENH: Support restoring SliceViewAnnotations enabled state #7176

Merged

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Aug 17, 2023

Also simplify setting of checkbox state in SliceViewAnnotations


This pull request was created while working on this issue:

@jcfr

This comment was marked as outdated.

@jcfr jcfr force-pushed the support-restoring-slice-view-annotations-enabled-state branch from ff4bf23 to 4a149d2 Compare August 18, 2023 00:48
@jcfr
Copy link
Member Author

jcfr commented Aug 18, 2023

CheckList

Status: Updated topic works as expected

  • No error after deleting main settings file, starting Slicer and selecting DataProbe
  • Start Slicer, disable, exit and restart. Confirm UI is still disabled
  • Click on "Restore Default"

@jcfr
Copy link
Member Author

jcfr commented Aug 18, 2023

@lassoan @pieper Any reason we should not restore the enabled state as well ?

@jcfr jcfr added the Type: Enhancement Improvement to functionality label Aug 18, 2023
@pieper
Copy link
Member

pieper commented Aug 18, 2023

@lassoan @pieper Any reason we should not restore the enabled state as well ?

I'm not sure without looking in more detail but if you think it should be restored then I'm okay with it.

@lassoan
Copy link
Contributor

lassoan commented Aug 19, 2023

Slice view annotations is a mess. It was a quick prototype that got integrated to have this important feature in Slicer, but the design is really fragile and limited. We would need to rebuild it from scratch, using proper MRML-based design and flexibility and extensibility in mind, as overlay on image corners is very important space for displaying information.

@pieper
Copy link
Member

pieper commented Aug 19, 2023

Many viewers also use these as UI controls/widgets too (e.g. control reslice rotation or window/level tools by clicking on the corresponding corner annotation can be logical and discoverable).

@jcfr jcfr force-pushed the support-restoring-slice-view-annotations-enabled-state branch from 4a149d2 to d11a1c6 Compare September 13, 2023 13:52
@jcfr
Copy link
Member Author

jcfr commented Sep 13, 2023

CheckList

Status: Updated topic works as expected ✅

  • No error after deleting main settings file, starting Slicer and selecting DataProbe
  • Start Slicer, disable, exit and restart. Confirm UI is still disabled
  • Click on "Restore Default"

Also simplify setting of checkbox state in SliceViewAnnotations
@jcfr jcfr force-pushed the support-restoring-slice-view-annotations-enabled-state branch from d11a1c6 to 6822a6f Compare September 27, 2023 20:18
@jcfr jcfr enabled auto-merge (rebase) September 27, 2023 20:18
Copy link
Contributor

@sjh26 sjh26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jcfr jcfr merged commit 5b0bcad into Slicer:main Sep 28, 2023
5 checks passed
@jcfr jcfr deleted the support-restoring-slice-view-annotations-enabled-state branch September 28, 2023 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improvement to functionality
Development

Successfully merging this pull request may close these issues.

None yet

4 participants