21 #ifndef __qSlicerScriptedLoadableModuleFactory_h 22 #define __qSlicerScriptedLoadableModuleFactory_h 26 #include <ctkAbstractFileBasedFactory.h> 31 #include "qSlicerBaseQTGUIExport.h" 33 class qSlicerScriptedLoadableModuleFactoryPrivate;
46 public ctkAbstractFileBasedFactory<qSlicerAbstractCoreModule>
50 typedef ctkAbstractFileBasedFactory<qSlicerAbstractCoreModule>
Superclass;
54 bool registerScript(
const QString& key,
const QFileInfo& file);
57 void registerItems()
override;
60 QScopedPointer<qSlicerScriptedLoadableModuleFactoryPrivate>
d_ptr;
62 bool isValidFile(
const QFileInfo& file)
const override;
63 ctkAbstractFactoryItem<qSlicerAbstractCoreModule>*
64 createFactoryFileBasedItem()
override;
qSlicerAbstractCoreModule * instanciator() override
ctkAbstractFileBasedFactory< qSlicerAbstractCoreModule > Superclass
QScopedPointer< qSlicerScriptedLoadableModuleFactoryPrivate > d_ptr
qSlicerAbstractCoreModule is the base class of any module in Slicer.