ctkDynamicSpacerPlugin.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. // CTK includes
  11. #include "ctkDynamicSpacerPlugin.h"
  12. #include "ctkDynamicSpacer.h"
  13. // --------------------------------------------------------------------------
  14. ctkDynamicSpacerPlugin::ctkDynamicSpacerPlugin(QObject *_parent)
  15. : QObject(_parent)
  16. {
  17. }
  18. // --------------------------------------------------------------------------
  19. QWidget *ctkDynamicSpacerPlugin::createWidget(QWidget *_parent)
  20. {
  21. ctkDynamicSpacer* _widget = new ctkDynamicSpacer(_parent);
  22. return _widget;
  23. }
  24. // --------------------------------------------------------------------------
  25. QString ctkDynamicSpacerPlugin::domXml() const
  26. {
  27. return "<widget class=\"ctkDynamicSpacer\" name=\"CTKSpacer\">\n"
  28. "</widget>\n";
  29. }
  30. // --------------------------------------------------------------------------
  31. QIcon ctkDynamicSpacerPlugin::icon() const
  32. {
  33. return QIcon(":/Icons/vspacer.png");
  34. }
  35. // --------------------------------------------------------------------------
  36. QString ctkDynamicSpacerPlugin::includeFile() const
  37. {
  38. return "ctkDynamicSpacer.h";
  39. }
  40. // --------------------------------------------------------------------------
  41. bool ctkDynamicSpacerPlugin::isContainer() const
  42. {
  43. return false;
  44. }
  45. // --------------------------------------------------------------------------
  46. QString ctkDynamicSpacerPlugin::name() const
  47. {
  48. return "ctkDynamicSpacer";
  49. }