color_widget_plugin_collection.cpp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. * \file
  3. *
  4. * \author Mattia Basaglia
  5. *
  6. * \copyright Copyright (C) 2013-2020 Mattia Basaglia
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #include "color_widget_plugin_collection.hpp"
  23. #include "color_preview_plugin.hpp"
  24. #include "color_wheel_plugin.hpp"
  25. #include "gradient_slider_plugin.hpp"
  26. #include "hue_slider_plugin.hpp"
  27. #include "color_selector_plugin.hpp"
  28. #include "color_list_plugin.hpp"
  29. #include "swatch_plugin.hpp"
  30. #include "color_palette_widget_plugin.hpp"
  31. #include "color_2d_slider_plugin.hpp"
  32. #include "color_line_edit_plugin.hpp"
  33. #include "gradient_editor_plugin.hpp"
  34. // add new plugin headers above this line
  35. ColorWidgets_PluginCollection::ColorWidgets_PluginCollection(QObject *parent) :
  36. QObject(parent)
  37. {
  38. widgets.push_back(new ColorPreview_Plugin(this));
  39. widgets.push_back(new ColorWheel_Plugin(this));
  40. widgets.push_back(new GradientSlider_Plugin(this));
  41. widgets.push_back(new HueSlider_Plugin(this));
  42. widgets.push_back(new ColorSelector_Plugin(this));
  43. widgets.push_back(new ColorListWidget_Plugin(this));
  44. widgets.push_back(new Swatch_Plugin(this));
  45. widgets.push_back(new ColorPaletteWidget_Plugin(this));
  46. widgets.push_back(new Color2DSlider_Plugin(this));
  47. widgets.push_back(new ColorLineEdit_Plugin(this));
  48. widgets.push_back(new GradientEditor_Plugin(this));
  49. // add new plugins above this line
  50. }
  51. QList<QDesignerCustomWidgetInterface *> ColorWidgets_PluginCollection::customWidgets() const
  52. {
  53. return widgets;
  54. }