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

kutils

  • kutils
kcmultidialog.h
1 /*
2  Copyright (c) 2000 Matthias Elter <elter@kde.org>
3  Copyright (c) 2003 Daniel Molkentin <molkentin@kde.org>
4  Copyright (c) 2003 Matthias Kretz <kretz@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 */
22 
23 #ifndef KCMULTIDIALOG_H
24 #define KCMULTIDIALOG_H
25 
26 #include <tqptrdict.h>
27 
28 #include <kdialogbase.h>
29 #include <klocale.h>
30 #include <kservice.h>
31 
32 class KCModuleProxy;
33 class KCModuleInfo;
34 
43 class KUTILS_EXPORT KCMultiDialog : public KDialogBase
44 {
45  Q_OBJECT
46 
47 public:
55  KCMultiDialog( TQWidget *parent=0, const char *name=0, bool modal=false );
56 
70  KCMultiDialog( int dialogFace, const TQString & caption, TQWidget * parent = 0,
71  const char * name = 0, bool modal = false );
72 
73 
102  KCMultiDialog( int dialogFace, const KGuiItem &user2,
103  const KGuiItem &user3=KGuiItem(), int buttonMask=User2,
104  const TQString &caption=i18n("Configure"), TQWidget *parent=0,
105  const char *name=0, bool modal=false ) KDE_DEPRECATED;
106  // KDE4 remove the user3 argument, and instead initialize it to KStdGuiItem::adminMode.
107 
111  virtual ~KCMultiDialog();
112 
122  void addModule(const TQString& module, bool withfallback=true);
123 
139  void addModule(const KCModuleInfo& moduleinfo, TQStringList
140  parentmodulenames = TQStringList(), bool withfallback=false);
141 
145  void removeAllModules();
146 
151  void show();
152 
153 signals:
160  void configCommitted();
161 
177  void configCommitted( const TQCString & instanceName );
178 
179 protected slots:
186  virtual void slotDefault();
187 
194  virtual void slotUser1();
195 
202  virtual void slotApply();
203 
210  virtual void slotOk();
211 
222  virtual void slotHelp();
223 
224 private slots:
225 
226  void slotAboutToShow(TQWidget *);
227 
228  void clientChanged(bool state);
229 
237  void disableRModeButton();
238 
245  void rootExit();
246 
255  void dialogClosed();
256 
257 private:
258 
259  void init();
260  void apply();
261 
262  struct CreatedModule
263  {
264  KCModuleProxy * kcm;
265  KService::Ptr service;
266  /* KDE 4 Move to Private class */
267  };
268  typedef TQValueList<CreatedModule> ModuleList;
269  ModuleList m_modules;
270 
271  typedef TQMap<KService::Ptr, KCModuleProxy*> OrphanMap;
272  OrphanMap m_orphanModules;
273 
274  TQPtrDict<TQStringList> moduleParentComponents;
275  TQString _docPath;
276  int dialogface;
277 
278  class KCMultiDialogPrivate;
279  KCMultiDialogPrivate *d;
280 };
281 
282 #endif //KCMULTIDIALOG_H
283 
284 // vim: sw=4 sts=4 et
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:50
KCModuleProxy
Encapsulates a KCModule for embedding.
Definition: kcmoduleproxy.h:69
KCMultiDialog
A method that offers a KDialogBase containing arbitrary KControl Modules.
Definition: kcmultidialog.h:44
KCMultiDialog::configCommitted
void configCommitted(const TQCString &instanceName)
Emitted after the KCModules have been told to save their configuration.
KCMultiDialog::configCommitted
void configCommitted()
Emitted after all KCModules have been told to save their configuration.
KDialogBase
KDialogBase::slotApply
virtual void slotApply()
KDialogBase::apply
void apply()
KDialogBase::slotUser1
virtual void slotUser1()
KDialogBase::slotHelp
virtual void slotHelp()
KDialogBase::slotDefault
virtual void slotDefault()
KDialogBase::slotOk
virtual void slotOk()
KGuiItem
klocale.h

kutils

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

kutils

Skip menu "kutils"
  • 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 kutils by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |