Import 2017-06-07 23:51:09: master 671595bb

Author Committer Branch Timestamp Parent
jcfr jcfr master 2014-07-29 19:59:34 master 539a4044
Changeset

ENH: Added developer mode and base classes for scripted modules

  • Added "Enable developer mode" option in the application settings
    (Developer section, next to Enable QtTesting)

  • Added base classes for scripted module, widget, logic, and test: they
    make scripted modules simpler and shorter and also more functions and
    helper methods can be added in the future without changing each scripted
    module
    Module handles selftest registration
    Widget handles reload&test (shown on GUI only in developer mode)
    ** Logic and Test contains delayDisplay utility function

  • As an example, updated ScriptedLoadableModuleTemplate and SurfaceToolbox to use the new base classes

From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

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

mod - Applications/SlicerApp/qSlicerAppMainWindow.cxx Diff File
mod - Base/Python/CMakeLists.txt Diff File
add - Base/Python/slicer/ScriptedLoadableModule.py Diff File
mod - Base/Python/slicer/slicerqt.py Diff File
mod - Base/QTGUI/CMakeLists.txt Diff File
mod - Base/QTGUI/Resources/Translations/qSlicerBaseQTGUI_fr.ts Diff File
mod - Base/QTGUI/qSlicerApplication.cxx Diff File
mod - Extensions/Testing/ScriptedLoadableExtensionTemplate/ScriptedLoadableModuleTemplate/ScriptedLoadableModuleTemplate.py Diff File
mod - Modules/Scripted/SurfaceToolbox/SurfaceToolbox.py Diff File
mod - Utilities/Templates/Modules/Scripted/TemplateKey.py Diff File