You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kmymoney/kmymoney2/dialogs/settings/ksettingsplugins.cpp

71 lines
2.3 KiB

/***************************************************************************
ksettingsplugins.cpp
-------------------
begin : Thu Feb 12 2009
copyright : (C) 2009 Cristian Onet
email : onet.cristian@gmail.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// ----------------------------------------------------------------------------
// TQt Includes
#include <tqlayout.h>
#include <tqstring.h>
#include <tqlabel.h>
// ----------------------------------------------------------------------------
// TDE Includes
#include <tdelocale.h>
#include <kdialog.h>
#include <kpluginselector.h>
// ----------------------------------------------------------------------------
// Project Includes
#include "kmymoney2/plugins/pluginloader.h"
#include "ksettingsplugins.h"
KSettingsPlugins::KSettingsPlugins(TQWidget* parent)
: TQWidget(parent)
{
TQVBoxLayout *layout = new TQVBoxLayout(this);
KMyMoneyPlugin::PluginLoader::instance()->pluginSelectorWidget()->reparent(this, TQPoint());
layout->addWidget(KMyMoneyPlugin::PluginLoader::instance()->pluginSelectorWidget());
layout->setSpacing(KDialog::spacingHint());
}
KSettingsPlugins::~KSettingsPlugins()
{
}
void KSettingsPlugins::slotLoadPlugins()
{
KMyMoneyPlugin::PluginLoader::instance()->pluginSelectorWidget()->load();
}
void KSettingsPlugins::slotSavePlugins()
{
KMyMoneyPlugin::PluginLoader::instance()->pluginSelectorWidget()->save();
}
void KSettingsPlugins::slotDefaultsPlugins()
{
KMyMoneyPlugin::PluginLoader::instance()->pluginSelectorWidget()->defaults();
}
#include "ksettingsplugins.moc"