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

kresources

  • kresources
kcmkresources.cpp
1 /*
2  This file is part of libkresources.
3 
4  Copyright (c) 2003 Tobias Koenig <tokoe@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 #include <tqlayout.h>
23 
24 #include <kaboutdata.h>
25 #include <kgenericfactory.h>
26 #include <klocale.h>
27 
28 #include "configpage.h"
29 
30 #include "kcmkresources.h"
31 
32 typedef KGenericFactory<KCMKResources, TQWidget> ResourcesFactory;
33 K_EXPORT_COMPONENT_FACTORY( kcm_kresources, ResourcesFactory( "kcmkresources" ) )
34 
35 KCMKResources::KCMKResources( TQWidget *parent, const char *name, const TQStringList& )
36  : KCModule( ResourcesFactory::instance(), parent, name )
37 {
38  TQVBoxLayout *layout = new TQVBoxLayout( this );
39  mConfigPage = new KRES::ConfigPage( this );
40  layout->addWidget( mConfigPage );
41  connect( mConfigPage, TQT_SIGNAL( changed( bool ) ), TQT_SIGNAL( changed( bool ) ) );
42  setButtons( Help | Apply );
43  KAboutData *about =
44  new KAboutData( I18N_NOOP( "kcmkresources" ),
45  I18N_NOOP( "KDE Resources configuration module" ),
46  0, 0, KAboutData::License_GPL,
47  I18N_NOOP( "(c) 2003 Tobias Koenig" ) );
48 
49  about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
50  setAboutData(about);
51 }
52 
53 void KCMKResources::load()
54 {
55  mConfigPage->load();
56 }
57 
58 void KCMKResources::save()
59 {
60  mConfigPage->save();
61 }
62 
63 void KCMKResources::defaults()
64 {
65  mConfigPage->defaults();
66 }
67 
68 #include "kcmkresources.moc"

kresources

Skip menu "kresources"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kresources

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