/**
* This file was autogenerated by kgendesignerplugin. Any changes will be lost!
* The generated code in this file is licensed under the same license that the
* input file.
*/
#include <QIcon>
#include <QtDesigner/QDesignerContainerExtension>
#if QT_VERSION >= 0x050500
# include <QtUiPlugin/QDesignerCustomWidgetInterface>
#else
# include <QDesignerCustomWidgetInterface>
#endif
#include <qplugin.h>
#include <qdebug.h>

#include <pimcommon/simplestringlisteditor.h>
#include <pimcommon/translatorwidget.h>


class PimCommonSimpleStringListEditorPlugin : public QObject, public QDesignerCustomWidgetInterface
{
       Q_OBJECT
       Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
       PimCommonSimpleStringListEditorPlugin(QObject *parent = nullptr) :
            QObject(parent), mInitialized(false) {}
       virtual ~PimCommonSimpleStringListEditorPlugin() {}
       
       bool isContainer() const Q_DECL_OVERRIDE { return false; }
       bool isInitialized() const Q_DECL_OVERRIDE { return mInitialized; }
       QIcon icon() const Q_DECL_OVERRIDE { return QIcon(QStringLiteral(":/pics/pimcommonsimplestringlisteditor.png")); }
       QString codeTemplate() const Q_DECL_OVERRIDE { return QString(); }
       QString domXml() const Q_DECL_OVERRIDE { return QDesignerCustomWidgetInterface::domXml(); }
       QString group() const Q_DECL_OVERRIDE { return QStringLiteral("Input (KDE-PIM)"); }
       QString includeFile() const Q_DECL_OVERRIDE { return QStringLiteral("pimcommon/simplestringlisteditor.h"); }
       QString name() const Q_DECL_OVERRIDE { return QStringLiteral("PimCommon::SimpleStringListEditor"); }
       QString toolTip() const Q_DECL_OVERRIDE { return QStringLiteral("A listbox with add/remove/move up/down button (KDE-PIM)"); }
       QString whatsThis() const Q_DECL_OVERRIDE { return QStringLiteral("A listbox which lets organize list order."); }

       QWidget* createWidget( QWidget* parent ) Q_DECL_OVERRIDE 
       {
            return new PimCommon::SimpleStringListEditor( parent );
       }
       void initialize(QDesignerFormEditorInterface *core) Q_DECL_OVERRIDE 
       {
            Q_UNUSED(core);
            if (mInitialized) return;
            mInitialized=true;
       }

private:
       bool mInitialized;
};


class PimCommonTranslatorWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
{
       Q_OBJECT
       Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
       PimCommonTranslatorWidgetPlugin(QObject *parent = nullptr) :
            QObject(parent), mInitialized(false) {}
       virtual ~PimCommonTranslatorWidgetPlugin() {}
       
       bool isContainer() const Q_DECL_OVERRIDE { return false; }
       bool isInitialized() const Q_DECL_OVERRIDE { return mInitialized; }
       QIcon icon() const Q_DECL_OVERRIDE { return QIcon(QStringLiteral(":/pics/pimcommontranslatorwidget.png")); }
       QString codeTemplate() const Q_DECL_OVERRIDE { return QString(); }
       QString domXml() const Q_DECL_OVERRIDE { return QDesignerCustomWidgetInterface::domXml(); }
       QString group() const Q_DECL_OVERRIDE { return QStringLiteral("Input (KDE-PIM)"); }
       QString includeFile() const Q_DECL_OVERRIDE { return QStringLiteral("pimcommon/translatorwidget.h"); }
       QString name() const Q_DECL_OVERRIDE { return QStringLiteral("PimCommon::TranslatorWidget"); }
       QString toolTip() const Q_DECL_OVERRIDE { return QStringLiteral("A widget to make translate string (KDE-PIM)"); }
       QString whatsThis() const Q_DECL_OVERRIDE { return QStringLiteral("A widget to make translate string"); }

       QWidget* createWidget( QWidget* parent ) Q_DECL_OVERRIDE 
       {
            return new PimCommon::TranslatorWidget( parent );
       }
       void initialize(QDesignerFormEditorInterface *core) Q_DECL_OVERRIDE 
       {
            Q_UNUSED(core);
            if (mInitialized) return;
            mInitialized=true;
       }

private:
       bool mInitialized;
};


class PimCommonWidgets : public QObject, public QDesignerCustomWidgetCollectionInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
       Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
public:
    PimCommonWidgets(QObject *parent = nullptr);
    virtual ~PimCommonWidgets() {}
    QList<QDesignerCustomWidgetInterface*> customWidgets() const Q_DECL_OVERRIDE { return m_plugins; } 
    
private:
    QList<QDesignerCustomWidgetInterface*> m_plugins;
};

PimCommonWidgets::PimCommonWidgets(QObject *parent)
   : QObject(parent){
                m_plugins.append( new PimCommonSimpleStringListEditorPlugin(this) );
                m_plugins.append( new PimCommonTranslatorWidgetPlugin(this) );

}

#include </builds/chakra/packages/desktop/pimcommon/src/build/src/pimcommon/designer/pimcommonwidgets.moc>

