HomePhabricator
Diffusion MITK 966e84892cf1

Confirm before tool exit

Description

Confirm before tool exit

Summary:
Introducing confirm before a segmentation tool exit feature. The feature is implemented in Totalsegmentator.

As discussed in D912, the ConfirmExit method is kept generic and moved to mitk::Tool class.
The method is overrided in the TotalSegmentator tool class where it checks if a Preview was generated or not using a class variable.
A generic confirmation dialogbox is introduced in the QmitkToolSelectionBox::toolButtonClicked method to reduce redundancy.

Test Plan:

  1. Load an image on Workbench and goto Segmentation View > 3D tool > TotalSegmentator
  2. Click "Run TotalSegmentator" -> wait until segmentation mask preview is rendered.
  3. Click on any other tool icon eg. GrowCut -> A pop up window asks to confirm the action
  4. (1) Click "Yes" -> GrowCut tool UI is launched as usual.
  5. (2) Click "No" -> GrowCut tool is not launched. We stay in TotalSegmentator as before.

Reviewers: floca, kislinsk, O1 MITK Reviewer Group I

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

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

Details

Provenance
a178nAuthored on Tue, Apr 16, 12:05 PM
a178nPushed on Wed, Apr 17, 9:47 AM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITK7bc53a62a36f: Update qmessage box text
rMITK3b10b122973e: T28796 Refactor_multi_label_morph_ops
Branches
Unknown
Tags
Unknown

Event Timeline

a178n added an edge: Restricted Differential Revision.