ctkSimplePythonQtDecorators.h 806 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __ctkSimplePythonQtDecorators_h
  2. #define __ctkSimplePythonQtDecorators_h
  3. // CTK includes
  4. #include <ctkAbstractPythonManager.h>
  5. #include <ctkCorePythonQtDecorators.h>
  6. #include <ctkWidgetsPythonQtDecorators.h>
  7. #include <PythonQt.h>
  8. // NOTE:
  9. //
  10. // For decorators it is assumed that the methods will never be called
  11. // with the self argument as NULL. The self argument is the first argument
  12. // for non-static methods.
  13. //
  14. class ctkSimplePythonQtDecorators : public QObject
  15. {
  16. Q_OBJECT
  17. public:
  18. ctkSimplePythonQtDecorators(ctkAbstractPythonManager* pythonManager)
  19. {
  20. Q_ASSERT(pythonManager);
  21. pythonManager->registerPythonQtDecorator(new ctkCorePythonQtDecorators);
  22. pythonManager->registerPythonQtDecorator(new ctkWidgetsPythonQtDecorators);
  23. }
  24. public slots:
  25. };
  26. #endif