ctkVTKScalarBarWidgetPlugin.cpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0.txt
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. // CTK includes
  15. #include "ctkVTKScalarBarWidget.h"
  16. #include "ctkVTKScalarBarWidgetPlugin.h"
  17. //-----------------------------------------------------------------------------
  18. ctkVTKScalarBarWidgetPlugin::ctkVTKScalarBarWidgetPlugin(QObject *_parent):QObject(_parent)
  19. {
  20. }
  21. //-----------------------------------------------------------------------------
  22. QWidget *ctkVTKScalarBarWidgetPlugin::createWidget(QWidget *parentWidget)
  23. {
  24. ctkVTKScalarBarWidget* newWidget = new ctkVTKScalarBarWidget(parentWidget);
  25. return newWidget;
  26. }
  27. //-----------------------------------------------------------------------------
  28. QString ctkVTKScalarBarWidgetPlugin::domXml() const
  29. {
  30. return "<widget class=\"ctkVTKScalarBarWidget\" \
  31. name=\"VTKScalarBar\">\n"
  32. "</widget>\n";
  33. }
  34. //-----------------------------------------------------------------------------
  35. QString ctkVTKScalarBarWidgetPlugin::includeFile() const
  36. {
  37. return "ctkVTKScalarBarWidget.h";
  38. }
  39. //-----------------------------------------------------------------------------
  40. bool ctkVTKScalarBarWidgetPlugin::isContainer() const
  41. {
  42. return false;
  43. }
  44. //-----------------------------------------------------------------------------
  45. QString ctkVTKScalarBarWidgetPlugin::name() const
  46. {
  47. return "ctkVTKScalarBarWidget";
  48. }