Skip to content

Commit

Permalink
BUG: Enable/disable the Segmentation tab when "Select All Series"/"De…
Browse files Browse the repository at this point in the history
…select All Series" buttons are clicked. Fixes issue SlicerProstate#111.
  • Loading branch information
brikeats authored and Christian Herz committed Mar 2, 2016
1 parent 8ad5788 commit f16980f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mpReview.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(self, parent):
def runTest(self):
return


class mpReviewWidget(ScriptedLoadableModuleWidget, ModuleWidgetMixin):

PIRADS_VIEWFORM_URL = 'https://docs.google.com/forms/d/1Xwhvjn_HjRJAtgV5VruLCDJ_eyj1C-txi8HWn8VyXa4/viewform'
Expand Down Expand Up @@ -1839,10 +1840,12 @@ def propagateSelected(self):
def selectAllSeries(self):
for item in self.seriesItems:
item.setCheckState(2)
self.setTabsEnabled([2], True)

def deselectAllSeries(self):
for item in self.seriesItems:
item.setCheckState(0)
self.setTabsEnabled([2], False)

def onTranslate(self):
if self.ignoreTranslate:
Expand Down

0 comments on commit f16980f

Please sign in to comment.