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

tdecore

  • tdecore
tdeconfigdialogmanager.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2003 Benjamin C Meyer (ben+tdelibs 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 TDECONFIGDIALOGMANAGER_H
22 #define TDECONFIGDIALOGMANAGER_H
23 
24 #include <tqobject.h>
25 #include <tqptrlist.h>
26 #include "tdelibs_export.h"
27 
28 class TDEConfigSkeleton;
29 class TDEConfigSkeletonItem;
30 class TQWidget;
31 class TQSqlPropertyMap;
32 
78 class TDECORE_EXPORT TDEConfigDialogManager : 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  TDEConfigDialogManager(TQWidget *parent, TDEConfigSkeleton *conf, const char *name=0);
118 
122  ~TDEConfigDialogManager();
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, TDEConfigSkeletonItem *item);
204 
205 protected:
209  TDEConfigSkeleton *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 // TDECONFIGDIALOGMANAGER_H
236 
TDEConfigDialogManager::changedMap
TQMap< TQString, TQCString > changedMap
Map of the classes and the signals that they emit when changed.
Definition: tdeconfigdialogmanager.h:224
TDEConfigSkeleton
Class for handling preferences settings for an application.
Definition: tdeconfigskeleton.h:365
TDEConfigSkeletonItem
Class for storing a preferences setting.
Definition: tdeconfigskeleton.h:50
TDEConfigDialogManager::m_conf
TDEConfigSkeleton * m_conf
TDEConfigSkeleton object used to store settings.
Definition: tdeconfigdialogmanager.h:209
TDEConfigDialogManager
Provides a means of automatically retrieving, saving and resetting TDEConfigSkeleton based settings i...
Definition: tdeconfigdialogmanager.h:78
TDEConfigDialogManager::propertyMap
TQSqlPropertyMap * propertyMap
Pointer to the property map for easy access.
Definition: tdeconfigdialogmanager.h:219
TDEConfigDialogManager::m_dialog
TQWidget * m_dialog
Dialog being managed.
Definition: tdeconfigdialogmanager.h:214

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.