Page MenuHomePhabricator

Hide LevelWindowSlider if a lookuptable is set.
Closed, ResolvedPublic

Description

It is confusing to have GUI elements which do nothing. If a lookuptable property is set by the user, we decided that the slider should not change anything, and thus, be hidden. This bug is used to hide it. Hopefully, we will manage to fix this for the next release.

Event Timeline

If this stuff is in the core, we should maybe just use one bug and write just one core change request, since T12056 and this are closely related.

What is the status of this bug? Please change the target milestone to "AfterNextRelease" if this bug is not relevant or cannot be fixed in time for the 2013-06 release.

This bug could not be fixed for release 2013-06. Setting target milestone to next release

What is the status of this bug? Can it be closed due to the changes of T12056?

Still an issue.

The job is to hide the LevelWindowSlider if he does nothing (i.e. no lookuptable or something like that can be applied).

Now, the level window slider is hidden if no image with an applicable level window is present within the data manager.

Hiding the level window slider is done by adding a property observer to the LevelWindowManager for the "Image Rendering.Mode" property. The LevelWindowManager::Update function is used for callback, subsequently calling LevelWindowManager::SetAutoTopMostImage. Here, the level window slider is hidden (i.e. m_LevelWindowProperty not being set from NULL), if all relevant data nodes use non-level-window "Image Rendering.Mode" property values.

New remote branch pushed: bug-14179-ConditionalLevelWindowSliderDeactivation

Testing implemented as part of bug-15992.

New remote branch pushed: bug-14179-ConditionalLevelWindowSliderDeactivationFix

[7e86fc]: Merge branch 'bug-14179-ConditionalLevelWindowSliderDeactivationFix'

Merged commits:

2013-10-09 15:22:42 Tobias Norajitra [2b84a8]
Added an additional property observer to the LevelWindowManager for the rendering mode property, LevelWindowManager::Update being the proper callback function.

[6afc7b]: Merge branch 'bug-14179-ConditionalLevelWindowSliderDeactivationFix'

Merged commits:

2013-10-09 15:49:44 Tobias Norajitra [16c76e]
COMP: Uninitialized variable fix. Zero pointer return handled.