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