HomePhabricator
Diffusion MITK 7b8c4c8af97d

Remove duplicated UpdateStatusBar logic

Description

Remove duplicated UpdateStatusBar logic

Summary:
Remove update-function from the DisplayActionEventBroadcast

Fix T19470: The DisplayActionEventBroadcast should not be responsible
for the update.
Additionally the logic is duplicated at several places so this is a first
step for cleaning things up.

Remove status-bar update from the StdMultiWidget

The logic is duplicated at several places so this is another
step for cleaning things up.

Remove unused CrosshairPositionEvent

Remove unnecessary includes and comments

Additionally remove ';' for a clean code style.

Remove status-bar update from the ImageNavigatorView

The logic is duplicated at several places so this is another
step for cleaning things up.

Test Plan:
manual testing

  • test interaction and see if pointer position / index are updated correctly
  • point click / crosshair movement
  • slice changes (wheel)
  • changed geometry (e.g. new node)
  • image navigator slider / spinbox changes

Reviewers: floca, s434n, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II, kislinsk

Reviewed By: floca, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II, kislinsk

Subscribers: kislinsk, s434n, floca, kalali

Maniphest Tasks: T19470, T25105, T25043

Differential Revision: https://phabricator.mitk.org/D686