Import 2017-06-07 23:51:09: master 638cb327

Author Committer Branch Timestamp Parent
mwoehlke mwoehlke master 2014-05-30 18:43:14 master 37a58f15
Changeset

ENH: Allow loading modules [from Python]

Move qSlicerAbstractModuleFactoryManager::registerModule(QFileInfo) from
protected to public Q_INVOKABLE, so that users (Python users in
particular) can manually register additional modules at run time. Add
new (also public Q_INVOKABLE) method to qSlicerModuleFactoryManager
allowing users to request that a specific list of modules be loaded (and
instantiated, if necessary).

This allows e.g. a user at the Python console to dynamically load a
module that is not in the search paths at run time, without modifying
the search paths. In particular, this will be useful to the Extension
Wizard module.

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

mod - Base/QTCore/qSlicerAbstractModuleFactoryManager.h Diff File
mod - Base/QTCore/qSlicerModuleFactoryManager.cxx Diff File
mod - Base/QTCore/qSlicerModuleFactoryManager.h Diff File