color_palette_widget_plugin.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #ifndef COLOR_WIDGETS_COLOR_PALETTE_WIDGET_PLUGIN_HPP
  23. #define COLOR_WIDGETS_COLOR_PALETTE_WIDGET_PLUGIN_HPP
  24. #include <QObject>
  25. #include <QtUiPlugin/QDesignerCustomWidgetInterface>
  26. class ColorPaletteWidget_Plugin : public QObject, public QDesignerCustomWidgetInterface
  27. {
  28. Q_OBJECT
  29. Q_INTERFACES(QDesignerCustomWidgetInterface)
  30. public:
  31. ColorPaletteWidget_Plugin(QObject *parent = 0);
  32. void initialize(QDesignerFormEditorInterface *core);
  33. bool isInitialized() const;
  34. QWidget *createWidget(QWidget *parent);
  35. QString name() const;
  36. QString group() const;
  37. QIcon icon() const;
  38. QString toolTip() const;
  39. QString whatsThis() const;
  40. bool isContainer() const;
  41. QString domXml() const;
  42. QString includeFile() const;
  43. private:
  44. bool initialized;
  45. };
  46. #endif // COLOR_WIDGETS_COLOR_PALETTE_WIDGET_PLUGIN_HPP