123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef __ctkSimplePythonQtDecorators_h
- #define __ctkSimplePythonQtDecorators_h
- // CTK includes
- #include <ctkAbstractPythonManager.h>
- #include <ctkCorePythonQtDecorators.h>
- #include <ctkWidgetsPythonQtDecorators.h>
- #include <PythonQt.h>
- // NOTE:
- //
- // For decorators it is assumed that the methods will never be called
- // with the self argument as NULL. The self argument is the first argument
- // for non-static methods.
- //
- class ctkSimplePythonQtDecorators : public QObject
- {
- Q_OBJECT
- public:
- ctkSimplePythonQtDecorators(ctkAbstractPythonManager* pythonManager)
- {
- Q_ASSERT(pythonManager);
- pythonManager->registerPythonQtDecorator(new ctkCorePythonQtDecorators);
- pythonManager->registerPythonQtDecorator(new ctkWidgetsPythonQtDecorators);
- }
- public slots:
-
-
- };
- #endif
|