KUtils
kcmultidialog.h
Go to the documentation of this file.
00001 /* 00002 Copyright (c) 2000 Matthias Elter <elter@kde.org> 00003 Copyright (c) 2003 Daniel Molkentin <molkentin@kde.org> 00004 Copyright (c) 2003,2006 Matthias Kretz <kretz@kde.org> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 00021 */ 00022 00023 #ifndef KCMULTIDIALOG_H 00024 #define KCMULTIDIALOG_H 00025 00026 #include <kcmoduleinfo.h> 00027 #include <kpagedialog.h> 00028 00029 class KCMultiDialogPrivate; 00030 00037 class KCMUTILS_EXPORT KCMultiDialog : public KPageDialog 00038 { 00039 Q_OBJECT 00040 Q_DECLARE_PRIVATE(KCMultiDialog) 00041 00042 public: 00048 KCMultiDialog( QWidget *parent = 0 ); 00049 00050 00054 virtual ~KCMultiDialog(); 00055 00069 KPageWidgetItem* addModule( const QString& module, const QStringList& 00070 args = QStringList() ); 00071 00087 KPageWidgetItem* addModule( const KCModuleInfo& moduleinfo, KPageWidgetItem *parent = 0, 00088 const QStringList& args = QStringList() ); 00089 00093 void clear(); 00094 00098 void setButtons(ButtonCodes buttonMask); 00099 00100 Q_SIGNALS: 00107 void configCommitted(); 00108 00124 void configCommitted( const QByteArray & componentName ); 00125 00126 protected: 00130 KCMultiDialog(KPageWidget *pageWidget, QWidget *parent, Qt::WFlags flags = 0); 00131 KCMultiDialog(KCMultiDialogPrivate &dd, KPageWidget *pageWidget, QWidget *parent, Qt::WFlags flags = 0); 00132 00133 protected Q_SLOTS: 00140 void slotDefaultClicked(); 00141 00148 void slotUser1Clicked(); 00149 00156 void slotApplyClicked(); 00157 00164 void slotOkClicked(); 00165 00176 void slotHelpClicked(); 00177 00178 private: 00179 Q_PRIVATE_SLOT(d_func(), void _k_slotCurrentPageChanged(KPageWidgetItem *, KPageWidgetItem *)) 00180 Q_PRIVATE_SLOT(d_func(), void _k_clientChanged()) 00181 Q_PRIVATE_SLOT(d_func(), void _k_dialogClosed()) 00182 Q_PRIVATE_SLOT(d_func(), void _k_updateHeader(bool use, const QString &message)) 00183 }; 00184 00185 #endif
KDE 4.6 API Reference