• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kconfigdialog.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (C) 2003 Benjamin C Meyer (ben+kdelibs at meyerhome dot net)
00004  *  Copyright (C) 2003 Waldo Bastian <bastian@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 #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 

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal