// DO NOT EDIT! Generated from ecm_add_qtdesignerplugin()

#include <QDesignerCustomWidgetCollectionInterface>
#include <QDesignerCustomWidgetInterface>
#include <QObject>
#include <QIcon>
#include <QString>
#include <TextCustomEditor/RichTextEditorWidget>
#include <TextCustomEditor/PlainTextEditorWidget>

class TextCustomEditor__RichTextEditorWidgetQtDesignerWidgetFactory
    : public QObject
    , public QDesignerCustomWidgetInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetInterface)

public:
    explicit TextCustomEditor__RichTextEditorWidgetQtDesignerWidgetFactory(QObject *parent = nullptr)
        : QObject(parent)
        , m_initialized(false)
    {}

    ~TextCustomEditor__RichTextEditorWidgetQtDesignerWidgetFactory() override {}
    
public: // QDesignerCustomWidgetInterface API
    bool isInitialized() const override { return m_initialized; }

    bool isContainer() const override { return false; }
    QIcon icon() const override { return QIcon(); }
    QString group() const override { return QStringLiteral("Input (KDE-PIM)"); }
    QString includeFile() const override { return QStringLiteral("TextCustomEditor/RichTextEditorWidget"); }
    QString name() const override { return QStringLiteral("TextCustomEditor::RichTextEditorWidget"); }
    QString toolTip() const override { return QStringLiteral("A RichTextEditor (KDE-PIM)"); }
    QString whatsThis() const override { return QStringLiteral("A RichTextEditor."); }

    QWidget* createWidget(QWidget* parent) override
    {
        return new TextCustomEditor::RichTextEditorWidget(parent);
    }

    void initialize(QDesignerFormEditorInterface* core) override 
    {
        Q_UNUSED(core);

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

class TextCustomEditor__PlainTextEditorWidgetQtDesignerWidgetFactory
    : public QObject
    , public QDesignerCustomWidgetInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetInterface)

public:
    explicit TextCustomEditor__PlainTextEditorWidgetQtDesignerWidgetFactory(QObject *parent = nullptr)
        : QObject(parent)
        , m_initialized(false)
    {}

    ~TextCustomEditor__PlainTextEditorWidgetQtDesignerWidgetFactory() override {}
    
public: // QDesignerCustomWidgetInterface API
    bool isInitialized() const override { return m_initialized; }

    bool isContainer() const override { return false; }
    QIcon icon() const override { return QIcon(); }
    QString group() const override { return QStringLiteral("Input (KDE-PIM)"); }
    QString includeFile() const override { return QStringLiteral("TextCustomEditor/PlainTextEditorWidget"); }
    QString name() const override { return QStringLiteral("TextCustomEditor::PlainTextEditorWidget"); }
    QString toolTip() const override { return QStringLiteral("A PlainTextEditor (KDE-PIM)"); }
    QString whatsThis() const override { return QStringLiteral("A PlainTextEditor."); }

    QWidget* createWidget(QWidget* parent) override
    {
        return new TextCustomEditor::PlainTextEditorWidget(parent);
    }

    void initialize(QDesignerFormEditorInterface* core) override 
    {
        Q_UNUSED(core);

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

class TextCustomEditorQtDesignerWidgetCollection
    : public QObject
    , public QDesignerCustomWidgetCollectionInterface
{
    Q_OBJECT
    Q_INTERFACES(
        QDesignerCustomWidgetCollectionInterface
    )

    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")

public:
    explicit TextCustomEditorQtDesignerWidgetCollection(QObject* parent = nullptr);

public: // QDesignerCustomWidgetCollectionInterface API
    QList<QDesignerCustomWidgetInterface*> customWidgets() const override;

private:
    QList<QDesignerCustomWidgetInterface*> m_widgetFactories;
};

TextCustomEditorQtDesignerWidgetCollection::TextCustomEditorQtDesignerWidgetCollection(QObject* parent)
    : QObject(parent)
{
    m_widgetFactories = QList<QDesignerCustomWidgetInterface*>{
        new TextCustomEditor__RichTextEditorWidgetQtDesignerWidgetFactory(this),
        new TextCustomEditor__PlainTextEditorWidgetQtDesignerWidgetFactory(this),
    };
}

QList<QDesignerCustomWidgetInterface*> TextCustomEditorQtDesignerWidgetCollection::customWidgets() const
{
    return m_widgetFactories;
}

#include "designerplugin.moc"
