ctkExtensionFactory.h 965 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. All rights reserved.
  5. Distributed under a BSD License. See LICENSE.txt file.
  6. This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the above copyright notice for more information.
  9. =========================================================================*/
  10. #ifndef __ctkExtensionFactory_h
  11. #define __ctkExtensionFactory_h
  12. // Qt includes
  13. #include <QtDesigner/QExtensionFactory>
  14. // CTK includes
  15. #include "CTKWidgetsPluginsExport.h"
  16. class QExtensionManager;
  17. class CTK_WIDGETS_PLUGINS_EXPORT ctkExtensionFactory: public QExtensionFactory
  18. {
  19. Q_OBJECT
  20. public:
  21. ctkExtensionFactory(QExtensionManager *parent = 0);
  22. protected:
  23. QObject *createExtension(QObject *object, const QString &iid, QObject *parent) const;
  24. };
  25. #endif