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 class KInstance; 00027 class KPluginInfo; 00028 class QWidgetStack; 00029 class KConfig; 00030 00055 class KPluginSelector : public QWidget 00056 { 00057 friend class KPluginSelectionWidget; 00058 00059 Q_OBJECT 00060 public: 00064 KPluginSelector( QWidget * parent, const char * name = 0 ); 00065 ~KPluginSelector(); 00066 00096 void addPlugins( const QString & instanceName, 00097 const QString & catname = QString::null, 00098 const QString & category = QString::null, 00099 KConfig * config = 0 ); 00100 00104 void addPlugins( const KInstance * instance, 00105 const QString & catname = QString::null, 00106 const QString & category = QString::null, 00107 KConfig * config = 0 ); 00108 00134 void addPlugins( const QValueList<KPluginInfo*> & plugininfos, 00135 const QString & catname = QString::null, 00136 const QString & category = QString::null, 00137 KConfig * config = 0 ); 00138 00146 void setShowEmptyConfigPage( bool ); 00147 00155 void load(); 00156 00160 void save(); 00161 00165 void defaults(); 00166 00167 signals: 00171 void changed( bool ); 00172 00178 void configCommitted( const QCString & instanceName ); 00179 00180 private: 00186 QWidgetStack * widgetStack(); 00187 00193 void configPage( int id ); 00194 00198 void checkNeedForTabWidget(); 00199 00200 class KPluginSelectorPrivate; 00201 KPluginSelectorPrivate * d; 00202 }; 00203 00204 // vim: sw=4 sts=4 et tw=80 00205 #endif // KPLUGINSELECTOR_H
KDE Logo
This file is part of the documentation for kutils Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:15:23 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003