kutils Library API Documentation

kpluginselector_p.h

00001 /*  This file is part of the KDE project
00002     Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00016     Boston, MA 02111-1307, USA.
00017 
00018 */
00019 
00020 #ifndef KPLUGINSELECTOR_P_H
00021 #define KPLUGINSELECTOR_P_H
00022 
00023 #include <qwidget.h>
00024 
00025 #include <kdelibs_export.h>
00026 
00027 class KConfigGroup;
00028 class QListViewItem;
00029 class KPluginInfo;
00030 class KCModuleInfo;
00031 
00042 class KUTILS_EXPORT KPluginSelectionWidget : public QWidget
00043 {
00044     Q_OBJECT
00045     public:
00066         KPluginSelectionWidget( const QString & instanceName, KPluginSelector * kps,
00067                 QWidget * parent, const QString & catname,
00068                 const QString & category, KConfigGroup * config = 0,
00069                 const char * name = 0 );
00070 
00091         KPluginSelectionWidget( const QValueList<KPluginInfo*> & plugininfos,
00092                 KPluginSelector * kps, QWidget * parent, const QString & catname,
00093                 const QString & category, KConfigGroup * config = 0,
00094                 const char * name = 0 );
00095 
00096         virtual ~KPluginSelectionWidget();
00097 
00098 
00104         QString catName() const;
00105 
00109         virtual void load();
00110 
00115         virtual void save();
00116 
00120         bool pluginChecked( const QString & pluginName ) const;
00121 
00122     signals:
00128         void changed( bool );
00129 
00135         void configCommitted( const QCString & instanceName );
00136 
00137     protected:
00146         virtual bool pluginIsLoaded( const QString & pluginName ) const;
00147 
00148     private slots:
00155         void executed( QListViewItem * );
00156 
00173         void updateConfigPage( KPluginInfo * plugininfo, bool checked );
00174         void updateConfigPage();
00175 
00183         void clientChanged( bool );
00184 
00190         void tabWidgetChanged( QWidget * );
00191 
00192     private:
00200         QWidget * insertKCM( QWidget * parent, const KCModuleInfo & );
00201 
00207         void embeddPluginKCMs( KPluginInfo *, bool );
00208 
00209         QValueList<KPluginInfo*> kpartsPluginInfos() const;
00210         void init( const QValueList<KPluginInfo*> & plugininfos, const QString & );
00211         void checkDependencies( const KPluginInfo * );
00212 
00213         struct KPluginSelectionWidgetPrivate;
00214         KPluginSelectionWidgetPrivate * d;
00215 };
00216 
00217 // vim: sw=4 sts=4 et
00218 #endif // KPLUGINSELECTOR_P_H
KDE Logo
This file is part of the documentation for kutils Library Version 3.3.90.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 30 10:19:47 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003