Commit 4c10317c authored by dpace's avatar dpace
Browse files

ENH: Expose pause effect and resume effect functions for editor widget

- ModuleWidgets using embedded editor widgets can pause/resume effects when they are shown/hidden

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15619 3bd1e089-480b-0410-8dfb-8563597acbee
parent 887a26a7
......@@ -78,13 +78,19 @@ class EditorWidget:
# merge nodes, most likely according to a widget within the caller
# resume the current effect, if we left the editor and re-entered
if self.toolsBox:
self.toolsBox.resumeEffect()
self.resumeEffect()
def exit(self):
self.pauseEffect()
def pauseEffect(self):
if self.toolsBox:
self.toolsBox.pauseEffect()
def resumeEffect(self):
if self.toolsBox:
self.toolsBox.resumeEffect()
# TODO need similar functionality as exit() to cancel brushes when widget is destroyed
# sets the node for the volume to be segmented
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment