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

KDEUI

kconfigdialogmanager.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 KCONFIGDIALOGMANAGER_H
00022 #define KCONFIGDIALOGMANAGER_H
00023 
00024 #include <kdeui_export.h>
00025 
00026 #include <QtCore/QObject>
00027 #include <QtCore/QHash>
00028 
00029 class KConfigSkeleton;
00030 class KConfigSkeletonItem;
00031 class QWidget;
00032 
00075 class KDEUI_EXPORT KConfigDialogManager : public QObject {
00076 
00077 Q_OBJECT
00078 
00079 Q_SIGNALS:
00085   void settingsChanged();
00086 
00094   void settingsChanged( QWidget *widget );
00095 
00103   void widgetModified();
00104 
00105 
00106 public:
00107 
00113    KConfigDialogManager(QWidget *parent, KConfigSkeleton *conf);
00114 
00118   ~KConfigDialogManager();
00119 
00124   void addWidget(QWidget *widget);
00125 
00130   bool hasChanged() const;
00131 
00136   bool isDefault() const;
00137 
00141   static QHash<QString, QByteArray> *propertyMap();
00142 
00146   static QHash<QString, QByteArray> *changedMap();
00147 
00148 public Q_SLOTS:
00155   void updateSettings();
00156 
00164   void updateWidgets();
00165 
00172   void updateWidgetsDefault();
00173 
00174 protected:
00175 
00182   void init(bool trackChanges);
00183 
00194   bool parseChildren(const QWidget *widget, bool trackChanges);
00195 
00200   QByteArray getUserProperty(const QWidget *widget) const;
00201 
00205   void setProperty(QWidget *w, const QVariant &v);
00206 
00210   QVariant property(QWidget *w) const;
00211 
00215   void setupWidget(QWidget *widget, KConfigSkeletonItem *item);
00216 
00220   static void initMaps();
00221   
00222 private:
00223   class Private;
00224   friend class Private;
00225   
00229   Private *const d;
00230   
00231   Q_DISABLE_COPY(KConfigDialogManager)
00232 };
00233 
00234 #endif // KCONFIGDIALOGMANAGER_H
00235 

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