/**
* 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 <ksysguardprocesslist.h>
#include <KTextEditVT.h>


class KSysGuardProcessListPlugin : public QObject, public QDesignerCustomWidgetInterface
{
	Q_OBJECT
	Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
	KSysGuardProcessListPlugin(QObject *parent = 0) :
		QObject(parent), mInitialized(false) {}
	virtual ~KSysGuardProcessListPlugin() {}
	
	bool isContainer() const { return false; }
	bool isInitialized() const { return mInitialized; }
	QIcon icon() const { return QIcon(QLatin1String(":/pics/ksysguardprocesslist.png")); }
	QString codeTemplate() const { return QLatin1String("");}
	QString domXml() const { return QDesignerCustomWidgetInterface::domXml(); }
	QString group() const { return QLatin1String("KSysGuard (KDE)"); }
	QString includeFile() const { return QLatin1String("ksysguardprocesslist.h"); }
	QString name() const { return QLatin1String("KSysGuardProcessList"); }
	QString toolTip() const { return QLatin1String("A list of processes (programs) running."); }
	QString whatsThis() const { return QLatin1String("A widget for showing all the processes running along with their memory usage and other details."); }

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

private:
	bool mInitialized;
};


class KTextEditVTPlugin : public QObject, public QDesignerCustomWidgetInterface
{
	Q_OBJECT
	Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
	KTextEditVTPlugin(QObject *parent = 0) :
		QObject(parent), mInitialized(false) {}
	virtual ~KTextEditVTPlugin() {}
	
	bool isContainer() const { return false; }
	bool isInitialized() const { return mInitialized; }
	QIcon icon() const { return QIcon(QLatin1String(":/pics/ktexteditvt.png")); }
	QString codeTemplate() const { return QLatin1String("");}
	QString domXml() const { return QDesignerCustomWidgetInterface::domXml(); }
	QString group() const { return QLatin1String("KSysGuard (KDE)"); }
	QString includeFile() const { return QLatin1String("KTextEditVT.h"); }
	QString name() const { return QLatin1String("KTextEditVT"); }
	QString toolTip() const { return QLatin1String("A text box suitable for displaying output from VT console-based programs."); }
	QString whatsThis() const { return QLatin1String("A widget for displaying out from console based programs.  Some VT100 style commands are interpreted (For example to change the color) as well as some non-printable characters (backspace/delete etc will delete the last character.).  For example the output from 'ls --color' can be displayed."); }

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

private:
	bool mInitialized;
};


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

Q_EXPORT_PLUGIN2(KSysGuardWidgets, KSysGuardWidgets)

KSysGuardWidgets::KSysGuardWidgets(QObject *parent)
	: QObject(parent){
	(void) new KComponentData("makekdewidgets");
		m_plugins.append( new KSysGuardProcessListPlugin(this) );
		m_plugins.append( new KTextEditVTPlugin(this) );

}

#include </usr/src/ports/kde-workspace/kde-workspace-4.11.21-1.i686/build/libs/ksysguard/processui/ksysguardwidgets.moc>

