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

tdeutils

  • tdeutils
  • ksettings
dialog.h
1 /* This file is part of the KDE project
2  Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 
18 */
19 
20 #ifndef KSETTINGS_DIALOG_H
21 #define KSETTINGS_DIALOG_H
22 
23 #include <tqobject.h>
24 #include <kservice.h>
25 
26 template<class T> class TQValueList;
27 class KPluginInfo;
28 class KCMultiDialog;
29 class TDECModuleInfo;
30 
31 namespace KSettings
32 {
33 
73 class TDEUTILS_EXPORT Dialog : public TQObject
74 {
75  friend class PageNode;
76  TQ_OBJECT
77  public:
83  enum ContentInListView
84  {
88  Static,
93  Configurable
94  };
95 
105  Dialog( TQWidget * parent = 0, const char * name = 0 );
106 
118  Dialog( ContentInListView content = Static, TQWidget * parent = 0,
119  const char * name = 0 );
120 
134  Dialog( const TQStringList & components, TQWidget * parent = 0,
135  const char * name = 0 );
136 
152  Dialog( const TQStringList & components, ContentInListView
153  content, TQWidget * parent = 0, const char * name = 0 );
154 
155  ~Dialog();
156 
161  void addPluginInfos( const TQValueList<KPluginInfo*> & plugininfos );
162 
163  KCMultiDialog * dialog();
164 
165  public slots:
170  void show();
171 
172  signals:
180  void pluginSelectionChanged();
181 
182  protected slots:
183  void configureTree();
184  void updateTreeList();
185 
186  private:
191  bool isPluginForKCMEnabled( TDECModuleInfo * ) const;
192 
193  TQValueList<KService::Ptr> instanceServices() const;
194  TQValueList<KService::Ptr> parentComponentsServices(
195  const TQStringList & ) const;
200  void parseGroupFile( const TQString & );
201 
207  TQStringList parentModuleNames( TDECModuleInfo * );
208 
215  void createDialogFromServices();
216 
217  class DialogPrivate;
218  DialogPrivate * d;
219 };
220 
221 }
222 #endif // KSETTINGS_DIALOG_H
KCMultiDialog
A method that offers a KDialogBase containing arbitrary KControl Modules.
Definition: kcmultidialog.h:44
KPluginInfo
Information about a plugin.
Definition: kplugininfo.h:43
KSettings::Dialog
Generic configuration dialog that even works over component boundaries.
Definition: dialog.h:74
KSettings::Dialog::pluginSelectionChanged
void pluginSelectionChanged()
If you use the dialog in Configurable mode and want to be notified when the user changes the plugin s...
KSettings::Dialog::ContentInListView
ContentInListView
Tells the dialog whether the entries in the listview are all static or whether it should add a Config...
Definition: dialog.h:84
KSettings::Dialog::Static
@ Static
Static listview, while running no entries are added or deleted.
Definition: dialog.h:88
TDECModuleInfo
A class that provides information about a TDECModule.
Definition: tdecmoduleinfo.h:50
KSettings
A collection of classes to create configuration dialogs that work over component boundaries.
Definition: componentsdialog.cpp:33

tdeutils

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

tdeutils

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