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

tdeutils

  • tdeutils
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 <tdelocale.h>
30#include <kservice.h>
31
32class TDECModuleProxy;
33class TDECModuleInfo;
34
43class TDEUTILS_EXPORT KCMultiDialog : public KDialogBase
44{
45 TQ_OBJECT
46
47public:
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 ) TDE_DEPRECATED;
106 // KDE4 remove the user3 argument, and instead initialize it to KStdGuiItem::adminMode.
107
111 virtual ~KCMultiDialog();
112
124 void addModule(const TQString& module, bool withfallback=true, TQStringList args = TQStringList());
125
143 void addModule(const TDECModuleInfo& moduleinfo, TQStringList
144 parentmodulenames = TQStringList(), bool withfallback=false, TQStringList args = TQStringList());
145
149 void removeAllModules();
150
155 void show();
156
157signals:
164 void configCommitted();
165
181 void configCommitted( const TQCString & instanceName );
182
183protected slots:
190 virtual void slotDefault();
191
198 virtual void slotUser1();
199
206 virtual void slotApply();
207
214 virtual void slotOk();
215
226 virtual void slotHelp();
227
228private slots:
229
230 void slotAboutToShow(TQWidget *);
231
232 void clientChanged(bool state);
233
241 void disableRModeButton();
242
249 void rootExit();
250
259 void dialogClosed();
260
261private:
262
263 void init();
264 void apply();
265
266 struct CreatedModule
267 {
268 TDECModuleProxy * kcm;
269 KService::Ptr service;
270 /* KDE 4 Move to Private class */
271 };
272 typedef TQValueList<CreatedModule> ModuleList;
273 ModuleList m_modules;
274
275 typedef TQMap<KService::Ptr, TDECModuleProxy*> OrphanMap;
276 OrphanMap m_orphanModules;
277
278 TQPtrDict<TQStringList> moduleParentComponents;
279 TQString _docPath;
280 int dialogface;
281
282 class KCMultiDialogPrivate;
283 KCMultiDialogPrivate *d;
284};
285
286#endif //KCMULTIDIALOG_H
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 TDECModules have been told to save their configuration.
KCMultiDialog::configCommitted
void configCommitted()
Emitted after all TDECModules 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
TDECModuleInfo
A class that provides information about a TDECModule.
Definition: tdecmoduleinfo.h:50
TDECModuleProxy
Encapsulates a TDECModule for embedding.
Definition: tdecmoduleproxy.h:69
tdelocale.h

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.4
This website is maintained by Timothy Pearson.