|
@@ -1,8 +1,19 @@
|
|
|
|
|
|
+// PythonQT includes
|
|
|
+#include <PythonQt.h>
|
|
|
+
|
|
|
// CTK includes
|
|
|
#include "ctkSimplePythonManager.h"
|
|
|
#include "ctkSimplePythonQtDecorators.h"
|
|
|
|
|
|
+#include "ctkScriptingPythonCoreConfigure.h" // For CTK_WRAP_PYTHONQT_{LIGHT, FULL}
|
|
|
+
|
|
|
+#if defined(CTK_WRAP_PYTHONQT_LIGHT) || defined(CTK_WRAP_PYTHONQT_FULL)
|
|
|
+// PythonQt wrapper initialization methods
|
|
|
+void PythonQt_init_org_commontk_CTKCore(PyObject*);
|
|
|
+void PythonQt_init_org_commontk_CTKWidgets(PyObject*);
|
|
|
+#endif
|
|
|
+
|
|
|
//-----------------------------------------------------------------------------
|
|
|
ctkSimplePythonManager::ctkSimplePythonManager(QObject* _parent) : Superclass(_parent)
|
|
|
{
|
|
@@ -27,6 +38,12 @@ void ctkSimplePythonManager::preInitialization()
|
|
|
{
|
|
|
Superclass::preInitialization();
|
|
|
|
|
|
+#if defined(CTK_WRAP_PYTHONQT_LIGHT) || defined(CTK_WRAP_PYTHONQT_FULL)
|
|
|
+ // Initialize wrappers
|
|
|
+ PythonQt_init_org_commontk_CTKCore(0);
|
|
|
+ PythonQt_init_org_commontk_CTKWidgets(0);
|
|
|
+#endif
|
|
|
+
|
|
|
// Register decorators
|
|
|
this->registerPythonQtDecorator(new ctkSimplePythonQtDecorators(this));
|
|
|
|