ctkWidgetsAbstractPlugin.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 __ctkWidgetsAbstractPlugin_h
  11. #define __ctkWidgetsAbstractPlugin_h
  12. // Qt includes
  13. #include <QDesignerCustomWidgetInterface>
  14. // CTK includes
  15. #include "CTKWidgetsPluginsExport.h"
  16. class CTK_WIDGETS_PLUGINS_EXPORT ctkWidgetsAbstractPlugin :
  17. public QDesignerCustomWidgetInterface
  18. {
  19. Q_INTERFACES(QDesignerCustomWidgetInterface);
  20. public:
  21. ctkWidgetsAbstractPlugin();
  22. // Do *NOT* reimplement this method.
  23. QString group() const;
  24. // You can reimplement these methods
  25. virtual QIcon icon() const;
  26. virtual QString toolTip() const;
  27. virtual QString whatsThis() const;
  28. virtual void initialize(QDesignerFormEditorInterface *formEditor);
  29. protected:
  30. bool Initialized;
  31. };
  32. #endif