• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

kconfigdialogmanager.h
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 <tqobject.h>
00025 #include <tqptrlist.h>
00026 #include "kdelibs_export.h"
00027 
00028 class KConfigSkeleton;
00029 class KConfigSkeletonItem;
00030 class TQWidget;
00031 class TQSqlPropertyMap;
00032 
00078 class KDECORE_EXPORT KConfigDialogManager : public TQObject {
00079 
00080 Q_OBJECT
00081 
00082 signals:
00088   void settingsChanged();
00089 
00097   void settingsChanged( TQWidget *widget );
00098 
00106   void widgetModified();
00107 
00108 
00109 public:
00110 
00117    KConfigDialogManager(TQWidget *parent, KConfigSkeleton *conf, const char *name=0);
00118 
00122   ~KConfigDialogManager();
00123 
00128   void addWidget(TQWidget *widget);
00129 
00134   bool hasChanged();
00135 
00140   bool isDefault();
00141 
00142 public slots:
00149   void updateSettings();
00150 
00158   void updateWidgets();
00159 
00166   void updateWidgetsDefault();
00167 
00168 protected:
00169 
00176   void init(bool trackChanges);
00177 
00188   bool parseChildren(const TQWidget *widget, bool trackChanges);
00189 
00193   void setProperty(TQWidget *w, const TQVariant &v);
00194 
00198   TQVariant property(TQWidget *w);
00199 
00203   void setupWidget(TQWidget *widget, KConfigSkeletonItem *item);
00204 
00205 protected:
00209   KConfigSkeleton *m_conf;
00210 
00214   TQWidget *m_dialog;
00215 
00219   TQSqlPropertyMap *propertyMap;
00220 
00224   TQMap<TQString, TQCString> changedMap;
00225 
00226 private:
00227   class Private;
00231   Private *d;
00232 
00233 };
00234 
00235 #endif // KCONFIGDIALOGMANAGER_H
00236 

kdecore

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

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |