/**
* This file was autogenerated by makekdewidgets. 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>
#include <QDesignerCustomWidgetInterface>
#include <qplugin.h>
#include <qdebug.h>

#include <kcomponentdata.h>
#include <classpreviews.h>
#include <kwebview.h>


class KWebViewPlugin : public QObject, public QDesignerCustomWidgetInterface
{
	Q_OBJECT
	Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
	KWebViewPlugin(QObject *parent = 0) :
		QObject(parent), mInitialized(false) {}
	virtual ~KWebViewPlugin() {}
	
	bool isContainer() const { return false; }
	bool isInitialized() const { return mInitialized; }
	QIcon icon() const { return QIcon(QLatin1String(":/pics/kwebview.png")); }
	QString codeTemplate() const { return QLatin1String("");}
	QString domXml() const { return QDesignerCustomWidgetInterface::domXml(); }
	QString group() const { return QLatin1String("Views (KDE)"); }
	QString includeFile() const { return QLatin1String("kwebview.h"); }
	QString name() const { return QLatin1String("KWebView"); }
	QString toolTip() const { return QLatin1String("KDE WebKit View"); }
	QString whatsThis() const { return QLatin1String("A WebKit view with KDE integration."); }

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

private:
	bool mInitialized;
};


class KDEWebKitWidgets : public QObject, public QDesignerCustomWidgetCollectionInterface
{
	Q_OBJECT
	Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
public:
	KDEWebKitWidgets(QObject *parent = 0);
	virtual ~KDEWebKitWidgets() {}
	QList<QDesignerCustomWidgetInterface*> customWidgets() const { return m_plugins; } 
	
private:
	QList<QDesignerCustomWidgetInterface*> m_plugins;
};

Q_EXPORT_PLUGIN2(KDEWebKitWidgets, KDEWebKitWidgets)

KDEWebKitWidgets::KDEWebKitWidgets(QObject *parent)
	: QObject(parent){
	(void) new KComponentData("makekdewidgets");
		m_plugins.append( new KWebViewPlugin(this) );

}

#include </usr/src/ports/kdelibs/kdelibs-4.14.38-3.i686/build/kdewidgets/kdewebkitwidgets.moc>

