kconfigdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCONFIGDIALOG_H
00022 #define KCONFIGDIALOG_H
00023
00024 class KConfig;
00025 class KConfigSkeleton;
00026 #include <kdialogbase.h>
00027 #include <qasciidict.h>
00028
00070 class KConfigDialog : public KDialogBase {
00071 Q_OBJECT
00072
00073 signals:
00077 void widgetModified();
00078
00083 void settingsChanged();
00084
00093 void settingsChanged(const char *dialogName);
00094
00095 public:
00117
00118
00119 KConfigDialog( QWidget *parent, const char *name,
00120 KConfigSkeleton *config,
00121 DialogType dialogType = IconList,
00122 int dialogButtons = Default|Ok|Apply|Cancel|Help,
00123 ButtonCode defaultButton = Ok,
00124 bool modal=false );
00125
00131 ~KConfigDialog();
00132
00147
00148 void addPage( QWidget *page, const QString &itemName,
00149 const QString &pixmapName,
00150 const QString &header=QString::null,
00151 bool manage=true);
00152
00159 static KConfigDialog* exists( const char* name );
00160
00167 static bool showDialog( const char* name );
00168
00172 virtual void show();
00173
00174 protected slots:
00181 virtual void updateSettings();
00182
00190 virtual void updateWidgets();
00191
00198 virtual void updateWidgetsDefault();
00199
00200 protected:
00201
00207 virtual bool hasChanged() { return false; }
00208
00213 virtual bool isDefault() { return true; }
00214
00215 protected slots:
00219 void updateButtons();
00220
00224 void settingsChangedSlot();
00225
00226 private:
00230 static QAsciiDict<KConfigDialog> openDialogs;
00231
00232 class KConfigDialogPrivate;
00236 KConfigDialogPrivate *d;
00237 };
00238
00239 #endif //KCONFIGDIALOG_H
00240
This file is part of the documentation for kdeui Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:43:50 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003