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

tdeutils

  • tdeutils
  • 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
26namespace KSettings
27{
28
29class 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 : TDECModule( 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, TQ_SIGNAL( changed( bool ) ), this, TQ_SIGNAL( changed( bool ) ) );
47}
48
49 PluginPage::PluginPage( TDEInstance * instance, TQWidget * parent, const TQStringList & args )
50 : TDECModule( 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, TQ_SIGNAL( changed( bool ) ), this, TQ_SIGNAL( changed( bool ) ) );
56 connect( d->selwid, TQ_SIGNAL( configCommitted( const TQCString & ) ),
57 Dispatcher::self(), TQ_SLOT( reparseConfiguration( const TQCString & ) ) );
58}
59
60PluginPage::~PluginPage()
61{
62 delete d;
63}
64
65KPluginSelector * PluginPage::pluginSelector()
66{
67 return d->selwid;
68}
69
70void PluginPage::load()
71{
72 d->selwid->load();
73}
74
75void PluginPage::save()
76{
77 d->selwid->save();
78}
79
80void PluginPage::defaults()
81{
82 d->selwid->defaults();
83}
84
85} //namespace
86
87#include "pluginpage.moc"
KDialog::spacingHint
static int spacingHint()
KPluginSelector
A widget to select what plugins to load and configure the plugins.
Definition: kpluginselector.h:61
KSettings::Dispatcher::self
static Dispatcher * self()
Get a reference the the Dispatcher object.
Definition: dispatcher.cpp:40
KSettings::PluginPage::pluginSelector
KPluginSelector * pluginSelector()
Definition: pluginpage.cpp:65
KSettings::PluginPage::save
virtual void save()
Save the state of the plugins to TDEConfig objects.
Definition: pluginpage.cpp:75
KSettings::PluginPage::PluginPage
PluginPage(TQWidget *parent=0, const char *name=0, const TQStringList &args=TQStringList())
Standart TDECModule constructor.
Definition: pluginpage.cpp:40
KSettings::PluginPage::load
virtual void load()
Load the state of the plugins (selected or not) from the KPluginInfo objects.
Definition: pluginpage.cpp:70
TDECModule
TDECModule::changed
void changed()
TDEInstance
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.4
This website is maintained by Timothy Pearson.