// DO NOT EDIT! Generated from ecm_add_qtdesignerplugin()

#include <QDesignerCustomWidgetCollectionInterface>
#include <QDesignerCustomWidgetInterface>
#include <QObject>
#include <QIcon>
#include <QString>
#include <KPIMTextEdit/RichTextEditorWidget>
#include <KPIMTextEdit/PlainTextEditorWidget>
#include <KPIMTextEdit/RichTextComposer>
#include <KPIMTextEdit/RichTextComposerWidget>

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

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

    ~KPIMTextEdit__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("KPIMTextEdit/RichTextEditorWidget"); }
    QString name() const override { return QStringLiteral("KPIMTextEdit::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 KPIMTextEdit::RichTextEditorWidget(parent);
    }

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

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

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

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

    ~KPIMTextEdit__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("KPIMTextEdit/PlainTextEditorWidget"); }
    QString name() const override { return QStringLiteral("KPIMTextEdit::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 KPIMTextEdit::PlainTextEditorWidget(parent);
    }

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

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

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

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

    ~KPIMTextEdit__RichTextComposerQtDesignerWidgetFactory() 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("KPIMTextEdit/RichTextComposer"); }
    QString name() const override { return QStringLiteral("KPIMTextEdit::RichTextComposer"); }
    QString toolTip() const override { return QStringLiteral("A RichText Composer (KDE-PIM)"); }
    QString whatsThis() const override { return QStringLiteral("A RichText Composer."); }

    QWidget* createWidget(QWidget* parent) override
    {
        return new KPIMTextEdit::RichTextComposer(parent);
    }

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

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

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

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

    ~KPIMTextEdit__RichTextComposerWidgetQtDesignerWidgetFactory() 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("KPIMTextEdit/RichTextComposerWidget"); }
    QString name() const override { return QStringLiteral("KPIMTextEdit::RichTextComposerWidget"); }
    QString toolTip() const override { return QStringLiteral("A RichText Composer Widget(KDE-PIM)"); }
    QString whatsThis() const override { return QStringLiteral("A RichText Composer Widget."); }

    QWidget* createWidget(QWidget* parent) override
    {
        return new KPIMTextEdit::RichTextComposerWidget(parent);
    }

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

        if (m_initialized) return;

        m_initialized = true;
    }

private:
    bool m_initialized;
};

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

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

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

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

private:
    QList<QDesignerCustomWidgetInterface*> m_widgetFactories;
};

KPimTextEditWidgetsQtDesignerWidgetCollection::KPimTextEditWidgetsQtDesignerWidgetCollection(QObject* parent)
    : QObject(parent)
{
    m_widgetFactories = QList<QDesignerCustomWidgetInterface*>{
        new KPIMTextEdit__RichTextEditorWidgetQtDesignerWidgetFactory(this),
        new KPIMTextEdit__PlainTextEditorWidgetQtDesignerWidgetFactory(this),
        new KPIMTextEdit__RichTextComposerQtDesignerWidgetFactory(this),
        new KPIMTextEdit__RichTextComposerWidgetQtDesignerWidgetFactory(this),
    };
}

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

#include "designerplugin.moc"
