kpluginselector.h
/* This file is part of the KDE project
Copyright (C) 2002-2003 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KPLUGINSELECTOR_H
#define KPLUGINSELECTOR_H
#include <qwidget.h>
#include <qstring.h>
#include <kdelibs_export.h>
class KInstance;
class KPluginInfo;
class QWidgetStack;
class KConfig;
class KConfigGroup;
class KUTILS_EXPORT KPluginSelector : public QWidget
{
friend class KPluginSelectionWidget;
Q_OBJECT
public:
KPluginSelector( QWidget * parent, const char * name = 0 );
~KPluginSelector();
void addPlugins( const QString & instanceName,
const QString & catname = QString::null,
const QString & category = QString::null,
KConfig * config = 0 );
void addPlugins( const KInstance * instance,
const QString & catname = QString::null,
const QString & category = QString::null,
KConfig * config = 0 );
void addPlugins( const QValueList<KPluginInfo*> & plugininfos,
const QString & catname = QString::null,
const QString & category = QString::null,
KConfig * config = 0 );
void setShowEmptyConfigPage( bool );
void load();
void save();
void defaults();
signals:
void changed( bool );
void configCommitted( const QCString & instanceName );
private:
QWidgetStack * widgetStack();
void configPage( int id );
void checkNeedForTabWidget();
void addPluginsInternal( const QValueList<KPluginInfo*> plugininfos,
const QString & catname, const QString & category,
KConfigGroup* cfgGroup );
class KPluginSelectorPrivate;
KPluginSelectorPrivate * d;
};
// vim: sw=4 sts=4 et tw=80
#endif // KPLUGINSELECTOR_H
KPluginInfo
Information about a plugin.
Definition: kplugininfo.h:42
KInstance
KConfigGroup
KConfig
KPluginSelector
A widget to select what plugins to load and configure the plugins.
Definition: kpluginselector.h:60

KDE Home | KDE Accessibility Home | Description of Access Keys