kutils Library API Documentation

kpluginselector.h

00001 /* This file is part of the KDE project 00002 Copyright (C) 2002-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_H 00021 #define KPLUGINSELECTOR_H 00022 00023 #include <qwidget.h> 00024 #include <qstring.h> 00025 00026 #include <kdelibs_export.h> 00027 00028 class KInstance; 00029 class KPluginInfo; 00030 class QWidgetStack; 00031 class KConfig; 00032 00057 class KUTILS_EXPORT KPluginSelector : public QWidget 00058 { 00059 friend class KPluginSelectionWidget; 00060 00061 Q_OBJECT 00062 public: 00066 KPluginSelector( QWidget * parent, const char * name = 0 ); 00067 ~KPluginSelector(); 00068 00098 void addPlugins( const QString & instanceName, 00099 const QString & catname = QString::null, 00100 const QString & category = QString::null, 00101 KConfig * config = 0 ); 00102 00106 void addPlugins( const KInstance * instance, 00107 const QString & catname = QString::null, 00108 const QString & category = QString::null, 00109 KConfig * config = 0 ); 00110 00136 void addPlugins( const QValueList<KPluginInfo*> & plugininfos, 00137 const QString & catname = QString::null, 00138 const QString & category = QString::null, 00139 KConfig * config = 0 ); 00140 00148 void setShowEmptyConfigPage( bool ); 00149 00157 void load(); 00158 00162 void save(); 00163 00167 void defaults(); 00168 00169 signals: 00173 void changed( bool ); 00174 00180 void configCommitted( const QCString & instanceName ); 00181 00182 private: 00188 QWidgetStack * widgetStack(); 00189 00195 void configPage( int id ); 00196 00200 void checkNeedForTabWidget(); 00201 00202 class KPluginSelectorPrivate; 00203 KPluginSelectorPrivate * d; 00204 }; 00205 00206 // vim: sw=4 sts=4 et tw=80 00207 #endif // KPLUGINSELECTOR_H
KDE Logo
This file is part of the documentation for kutils Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Apr 12 23:24:50 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003