ctkWidgetsPlugins.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 __ctkWidgetsPlugins_h
  11. #define __ctkWidgetsPlugins_h
  12. // Qt includes
  13. #include <QDesignerCustomWidgetCollectionInterface>
  14. // CTK includes
  15. #include "CTKWidgetsPluginsExport.h"
  16. #include "ctkCollapsibleButtonPlugin.h"
  17. #include "ctkCollapsibleGroupBoxPlugin.h"
  18. #include "ctkColorPickerButtonPlugin.h"
  19. #include "ctkCoordinatesWidgetPlugin.h"
  20. #include "ctkDoubleRangeSliderPlugin.h"
  21. #include "ctkDoubleSliderPlugin.h"
  22. #include "ctkDynamicSpacerPlugin.h"
  23. #include "ctkFittedTextBrowserPlugin.h"
  24. #include "ctkMenuButtonPlugin.h"
  25. #include "ctkRangeSliderPlugin.h"
  26. #include "ctkRangeWidgetPlugin.h"
  27. #include "ctkTitleComboBoxPlugin.h"
  28. #include "ctkTreeComboBoxPlugin.h"
  29. #include "ctkSliderSpinBoxWidgetPlugin.h"
  30. /// \class Group the plugins in one library
  31. class CTK_WIDGETS_PLUGINS_EXPORT ctkWidgetsPlugins : public QObject,
  32. public QDesignerCustomWidgetCollectionInterface
  33. {
  34. Q_OBJECT
  35. Q_INTERFACES(QDesignerCustomWidgetCollectionInterface);
  36. public:
  37. QList<QDesignerCustomWidgetInterface*> customWidgets() const
  38. {
  39. QList<QDesignerCustomWidgetInterface *> plugins;
  40. plugins << new ctkCollapsibleButtonPlugin
  41. << new ctkCollapsibleGroupBoxPlugin
  42. << new ctkColorPickerButtonPlugin
  43. << new ctkCoordinatesWidgetPlugin
  44. << new ctkDoubleRangeSliderPlugin
  45. << new ctkDoubleSliderPlugin
  46. << new ctkDynamicSpacerPlugin
  47. << new ctkFittedTextBrowserPlugin
  48. << new ctkMenuButtonPlugin
  49. << new ctkRangeSliderPlugin
  50. << new ctkRangeWidgetPlugin
  51. << new ctkTitleComboBoxPlugin
  52. << new ctkTreeComboBoxPlugin
  53. << new ctkSliderSpinBoxWidgetPlugin;
  54. return plugins;
  55. }
  56. };
  57. #endif