Import 2017-06-07 23:51:09: master abd8faf1

Author Committer Branch Timestamp Parent
lassoan lassoan master 2017-03-22 16:19:33 master 14e5b76d
Changeset

ENH: Made segment editor effects list customizable

editorWidget.setEffectNameOrder defines the order of effects.
If editorWidget.unorderedEffectsVisible is set to False then only those effects will be shown
that are listed in editorWidget.setEffectNameOrder.

editorWidget = slicer.modules.segmenteditor.widgetRepresentation().self().editor
editorWidget.setEffectNameOrder(['Draw', 'Scissors', 'Islands'])
editorWidget.unorderedEffectsVisible = False

git-svn-id: http://svn.slicer.org/Slicer4/trunk@25862 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorEffectFactory.cxx Diff File
mod - Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorEffectFactory.h Diff File
mod - Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx Diff File
mod - Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.h Diff File