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

kutils

  • kutils
  • ksettings
pluginpage.cpp
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 #include "ksettings/pluginpage.h"
21 #include "kpluginselector.h"
22 #include <tqlayout.h>
23 #include <kdialog.h>
24 #include "ksettings/dispatcher.h"
25 
26 namespace KSettings
27 {
28 
29 class PluginPage::PluginPagePrivate
30 {
31  public:
32  PluginPagePrivate()
33  : selwid( 0 )
34  {
35  }
36 
37  KPluginSelector * selwid;
38 };
39 
40  PluginPage::PluginPage( TQWidget * parent, const char * name, const TQStringList & args )
41  : KCModule( parent, name, args )
42  , d( new PluginPagePrivate )
43 {
44  ( new TQVBoxLayout( this, 0, KDialog::spacingHint() ) )->setAutoAdd( true );
45  d->selwid = new KPluginSelector( this );
46  connect( d->selwid, TQT_SIGNAL( changed( bool ) ), this, TQT_SIGNAL( changed( bool ) ) );
47 }
48 
49  PluginPage::PluginPage( KInstance * instance, TQWidget * parent, const TQStringList & args )
50  : KCModule( instance, parent, args )
51  , d( new PluginPagePrivate )
52 {
53  ( new TQVBoxLayout( this, 0, KDialog::spacingHint() ) )->setAutoAdd( true );
54  d->selwid = new KPluginSelector( this );
55  connect( d->selwid, TQT_SIGNAL( changed( bool ) ), this, TQT_SIGNAL( changed( bool ) ) );
56  connect( d->selwid, TQT_SIGNAL( configCommitted( const TQCString & ) ),
57  Dispatcher::self(), TQT_SLOT( reparseConfiguration( const TQCString & ) ) );
58 }
59 
60 PluginPage::~PluginPage()
61 {
62  delete d;
63 }
64 
65 KPluginSelector * PluginPage::pluginSelector()
66 {
67  return d->selwid;
68 }
69 
70 void PluginPage::load()
71 {
72  d->selwid->load();
73 }
74 
75 void PluginPage::save()
76 {
77  d->selwid->save();
78 }
79 
80 void PluginPage::defaults()
81 {
82  d->selwid->defaults();
83 }
84 
85 } //namespace
86 
87 #include "pluginpage.moc"
88 // vim: sw=4 sts=4 et

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