ctkTitleComboBoxPlugin.cpp 1.8 KB

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