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.
67 lines
2.3 KiB
67 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. *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// QT Includes
|
|
|
|
#include <tqlayout.h>
|
|
#include <tqstring.h>
|
|
#include <tqlabel.h>
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// KDE Includes
|
|
|
|
#include <klocale.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"
|