KDEUI
kconfigdialog.h
Go to the documentation of this file.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 #include <kpagedialog.h>
00025
00026 class KConfig;
00027 class KConfigSkeleton;
00028 class KConfigDialogManager;
00029
00072 class KDEUI_EXPORT KConfigDialog : public KPageDialog {
00073 Q_OBJECT
00074
00075 Q_SIGNALS:
00079 void widgetModified();
00080
00086 void settingsChanged(const QString& dialogName);
00087
00088 public:
00101 KConfigDialog( QWidget *parent, const QString& name,
00102 KConfigSkeleton *config );
00103
00109 ~KConfigDialog();
00110
00124 KPageWidgetItem* addPage( QWidget *page, const QString &itemName,
00125 const QString &pixmapName=QString(),
00126 const QString &header=QString(),
00127 bool manage=true );
00128
00144 KPageWidgetItem* addPage( QWidget *page, KConfigSkeleton *config,
00145 const QString &itemName,
00146 const QString &pixmapName=QString(),
00147 const QString &header=QString() );
00148
00155 static KConfigDialog* exists( const QString& name );
00156
00163 static bool showDialog( const QString& name );
00164
00165 protected Q_SLOTS:
00172 virtual void updateSettings();
00173
00181 virtual void updateWidgets();
00182
00189 virtual void updateWidgetsDefault();
00190
00191 protected:
00192
00198 virtual bool hasChanged();
00199
00204 virtual bool isDefault();
00205
00209 virtual void showEvent(QShowEvent *e);
00210
00211 private Q_SLOTS:
00215 void onPageRemoved(KPageWidgetItem* item);
00216
00217 private:
00218 class KConfigDialogPrivate;
00219 friend class KConfigDialogPrivate;
00220
00221 KConfigDialogPrivate *const d;
00222
00223 Q_PRIVATE_SLOT( d, void _k_updateButtons() )
00224 Q_PRIVATE_SLOT( d, void _k_settingsChangedSlot() )
00225
00226 Q_DISABLE_COPY(KConfigDialog)
00227 };
00228
00229 #endif //KCONFIGDIALOG_H
00230