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

kdecore

  • kdecore
kconfigdialogmanager.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2003 Benjamin C Meyer (ben+kdelibs at meyerhome dot net)
4  * Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 #ifndef KCONFIGDIALOGMANAGER_H
22 #define KCONFIGDIALOGMANAGER_H
23 
24 #include <tqobject.h>
25 #include <tqptrlist.h>
26 #include "kdelibs_export.h"
27 
28 class KConfigSkeleton;
29 class KConfigSkeletonItem;
30 class TQWidget;
31 class TQSqlPropertyMap;
32 
78 class KDECORE_EXPORT KConfigDialogManager : public TQObject {
79 
80 Q_OBJECT
81 
82 signals:
88  void settingsChanged();
89 
97  void settingsChanged( TQWidget *widget );
98 
106  void widgetModified();
107 
108 
109 public:
110 
117  KConfigDialogManager(TQWidget *parent, KConfigSkeleton *conf, const char *name=0);
118 
122  ~KConfigDialogManager();
123 
128  void addWidget(TQWidget *widget);
129 
134  bool hasChanged();
135 
140  bool isDefault();
141 
142 public slots:
149  void updateSettings();
150 
158  void updateWidgets();
159 
166  void updateWidgetsDefault();
167 
168 protected:
169 
176  void init(bool trackChanges);
177 
188  bool parseChildren(const TQWidget *widget, bool trackChanges);
189 
193  void setProperty(TQWidget *w, const TQVariant &v);
194 
198  TQVariant property(TQWidget *w);
199 
203  void setupWidget(TQWidget *widget, KConfigSkeletonItem *item);
204 
205 protected:
209  KConfigSkeleton *m_conf;
210 
214  TQWidget *m_dialog;
215 
219  TQSqlPropertyMap *propertyMap;
220 
224  TQMap<TQString, TQCString> changedMap;
225 
226 private:
227  class Private;
231  Private *d;
232 
233 };
234 
235 #endif // KCONFIGDIALOGMANAGER_H
236 

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.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |