gradient_editor_plugin.hpp 1.8 KB

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