/**
* This file was autogenerated by maketdewidgets. Any changes will be lost!
* The generated code in this file is licensed under the same license that the
* input file.
*/
#include <tqwidgetplugin.h>

#include <tdeinstance.h>
#include <kmymoney/kmymoneycombo.h>
#include <kmymoney/kmymoneycombo.h>
#include <kmymoney/kmymoneycombo.h>
#include <kmymoney/kmymoneycombo.h>
#include <kmymoney/kmymoneycombo.h>
#include <kmymoney/register.h>
#include <kmymoney/kmymoneycurrencyselector.h>
#include <kmymoney/transactionform.h>
#ifndef EMBED_IMAGES
#include <kstandarddirs.h>
#endif

class CustomWidgetPlugin : public TQWidgetPlugin
{
public:
	CustomWidgetPlugin();
	
	virtual ~CustomWidgetPlugin();
	
	virtual TQStringList keys() const
	{
		TQStringList result;
		for (WidgetInfos::ConstIterator it = m_widgets.begin(); it != m_widgets.end(); ++it)
			result << it.key();
		return result;
	}
	
	virtual TQWidget *create(const TQString &key, TQWidget *parent = 0, const char *name = 0);
	
	virtual TQIconSet iconSet(const TQString &key) const
	{
#ifdef EMBED_IMAGES
		TQPixmap pix(m_widgets[key].iconSet);
#else
		TQPixmap pix(locate( "data", 
			TQString::fromLatin1("customwidgetplugin/pics/") + m_widgets[key].iconSet));
#endif
		return TQIconSet(pix);
	}
	
	virtual bool isContainer(const TQString &key) const { return m_widgets[key].isContainer; }
	
	virtual TQString group(const TQString &key) const { return m_widgets[key].group; }
	
	virtual TQString includeFile(const TQString &key) const { return m_widgets[key].includeFile; }
	
	virtual TQString toolTip(const TQString &key) const { return m_widgets[key].toolTip; }
	
	virtual TQString whatsThis(const TQString &key) const { return m_widgets[key].whatsThis; }
private:
	struct WidgetInfo
	{
		TQString group;
#ifdef EMBED_IMAGES
		TQPixmap iconSet;
#else
		TQString iconSet;
#endif
		TQString includeFile;
		TQString toolTip;
		TQString whatsThis;
		bool isContainer;
	};
	typedef TQMap<TQString, WidgetInfo> WidgetInfos;
	WidgetInfos m_widgets;
};
CustomWidgetPlugin::CustomWidgetPlugin()
{
        WidgetInfo widget;

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneyfrequencycombo_xpm);
#else
	widget.iconSet = TQString::fromLatin1("kmymoneyfrequencycombo.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/kmymoneycombo.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneyFrequencyCombo Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneyFrequencyCombo Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneyFrequencyCombo"), widget);

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneygeneralcombo_xpm);
#else
	widget.iconSet = TQString::fromLatin1("kmymoneygeneralcombo.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/kmymoneycombo.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneyGeneralCombo Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneyGeneralCombo Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneyGeneralCombo"), widget);

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneyoccurenceperiodcombo_xpm);
#else
	widget.iconSet = TQString::fromLatin1("kmymoneyoccurenceperiodcombo.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/kmymoneycombo.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneyOccurencePeriodCombo Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneyOccurencePeriodCombo Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneyOccurencePeriodCombo"), widget);

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneypayeecombo_xpm);
#else
	widget.iconSet = TQString::fromLatin1("kmymoneypayeecombo.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/kmymoneycombo.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneyPayeeCombo Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneyPayeeCombo Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneyPayeeCombo"), widget);

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneyperiodcombo_xpm);
#else
	widget.iconSet = TQString::fromLatin1("kmymoneyperiodcombo.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/kmymoneycombo.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneyPeriodCombo Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneyPeriodCombo Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneyPeriodCombo"), widget);

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneyregister__register_xpm);
#else
	widget.iconSet = TQString::fromLatin1("register.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/register.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneyRegister::Register Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneyRegister::Register Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneyRegister::Register"), widget);

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneysecurityselector_xpm);
#else
	widget.iconSet = TQString::fromLatin1("kmymoneysecurityselector.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/kmymoneycurrencyselector.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneySecuritySelector Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneySecuritySelector Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneySecuritySelector"), widget);

	widget.group = TQString::fromLatin1("KMyMoney");
#ifdef EMBED_IMAGES
	widget.iconSet = TQPixmap(kmymoneytransactionform__transactionform_xpm);
#else
	widget.iconSet = TQString::fromLatin1("transactionform.png");
#endif
	widget.includeFile = TQString::fromLatin1("kmymoney/transactionform.h");
	widget.toolTip = TQString::fromLatin1("KMyMoneyTransactionForm::TransactionForm Widget");
	widget.whatsThis = TQString::fromLatin1("KMyMoneyTransactionForm::TransactionForm Widget");
	widget.isContainer = false;
	m_widgets.insert(TQString::fromLatin1("KMyMoneyTransactionForm::TransactionForm"), widget);

	new TDEInstance("kmmwidgets");
}
CustomWidgetPlugin::~CustomWidgetPlugin()
{
	
}
TQWidget *CustomWidgetPlugin::create(const TQString &key, TQWidget *parent, const char *name)
{

         if (key == TQString::fromLatin1("KMyMoneyFrequencyCombo"))
                return new KMyMoneyFrequencyCombo(parent, name);

         if (key == TQString::fromLatin1("KMyMoneyGeneralCombo"))
                return new KMyMoneyGeneralCombo(parent, name);

         if (key == TQString::fromLatin1("KMyMoneyOccurencePeriodCombo"))
                return new KMyMoneyOccurencePeriodCombo(parent, name);

         if (key == TQString::fromLatin1("KMyMoneyPayeeCombo"))
                return new KMyMoneyPayeeCombo(parent, name);

         if (key == TQString::fromLatin1("KMyMoneyPeriodCombo"))
                return new KMyMoneyPeriodCombo(parent, name);

         if (key == TQString::fromLatin1("KMyMoneyRegister::Register"))
                return new KMyMoneyRegister::Register(parent, name);

         if (key == TQString::fromLatin1("KMyMoneySecuritySelector"))
                return new KMyMoneySecuritySelector(parent, name);

         if (key == TQString::fromLatin1("KMyMoneyTransactionForm::TransactionForm"))
                return new KMyMoneyTransactionForm::TransactionForm(parent, name);

	return 0;
}
TDE_EXPORT_PLUGIN(CustomWidgetPlugin)

