ctkCoordinatesWidgetPlugin.cpp 1.9 KB

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