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 class KConfigGroup;
00026 class QListViewItem;
00027 class KPluginInfo;
00028 class KCModuleInfo;
00029 
00040 class KPluginSelectionWidget : public QWidget
00041 {
00042     Q_OBJECT
00043     public:
00064         KPluginSelectionWidget( const QString & instanceName, KPluginSelector * kps,
00065                 QWidget * parent, const QString & catname,
00066                 const QString & category, KConfigGroup * config = 0,
00067                 const char * name = 0 );
00068 
00089         KPluginSelectionWidget( const QValueList<KPluginInfo*> & plugininfos,
00090                 KPluginSelector * kps, QWidget * parent, const QString & catname,
00091                 const QString & category, KConfigGroup * config = 0,
00092                 const char * name = 0 );
00093 
00094         virtual ~KPluginSelectionWidget();
00095 
00096 
00102         QString catName() const;
00103 
00107         virtual void load();
00108 
00113         virtual void save();
00114 
00118         bool pluginChecked( const QString & pluginName ) const;
00119 
00120     signals:
00126         void changed( bool );
00127 
00133         void configCommitted( const QCString & instanceName );
00134 
00135     protected:
00144         virtual bool pluginIsLoaded( const QString & pluginName ) const;
00145 
00146     private slots:
00153         void executed( QListViewItem * );
00154 
00171         void updateConfigPage( KPluginInfo * plugininfo, bool checked );
00172         void updateConfigPage();
00173 
00181         void clientChanged( bool );
00182 
00188         void tabWidgetChanged( QWidget * );
00189 
00190     private:
00198         QWidget * insertKCM( QWidget * parent, const KCModuleInfo & );
00199 
00205         void embeddPluginKCMs( KPluginInfo *, bool );
00206 
00207         QValueList<KPluginInfo*> kpartsPluginInfos() const;
00208         void init( const QValueList<KPluginInfo*> & plugininfos, const QString & );
00209         void checkDependencies( const KPluginInfo * );
00210 
00211         struct KPluginSelectionWidgetPrivate;
00212         KPluginSelectionWidgetPrivate * d;
00213 };
00214 
00215 // vim: sw=4 sts=4 et
00216 #endif // KPLUGINSELECTOR_P_H
KDE Logo
This file is part of the documentation for kutils Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:44:56 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003