diff -r da4876bfd822 -r 8b994c917f69 widgets/designerplugins.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/widgets/designerplugins.h Wed Jun 22 21:42:10 2022 +0300 @@ -0,0 +1,49 @@ +#pragma once +#include +#include + +class LDForgeWidgetCollection final : public QObject, public QDesignerCustomWidgetCollectionInterface +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qgis.customwidgets") + Q_INTERFACES(QDesignerCustomWidgetCollectionInterface) + // QDesignerCustomWidgetCollectionInterface interface + QList interfaces; +public: + LDForgeWidgetCollection(QObject* parent = nullptr); + QList customWidgets() const override; +}; + +class Vec3EditorPlugin final : public QObject, public QDesignerCustomWidgetInterface +{ + Q_OBJECT + Q_INTERFACES(QDesignerCustomWidgetInterface) + // QDesignerCustomWidgetInterface interface +public: + Vec3EditorPlugin(QObject* parent) : QObject{parent}{} + QString name() const override; + QString group() const override; + QString toolTip() const override; + QString whatsThis() const override; + QString includeFile() const override; + QIcon icon() const override; + bool isContainer() const override; + QWidget* createWidget(QWidget* parent) override; +}; + +class MatrixEditorPlugin final : public QObject, public QDesignerCustomWidgetInterface +{ + Q_OBJECT + Q_INTERFACES(QDesignerCustomWidgetInterface) + // QDesignerCustomWidgetInterface interface +public: + MatrixEditorPlugin(QObject* parent) : QObject{parent}{} + QString name() const override; + QString group() const override; + QString toolTip() const override; + QString whatsThis() const override; + QString includeFile() const override; + QIcon icon() const override; + bool isContainer() const override; + QWidget* createWidget(QWidget* parent) override; +};