• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

kresources

kcmkresources.cpp

00001 /*
00002     This file is part of libkresources.
00003 
00004     Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 #include "kcmkresources.h"
00022 
00023 #include <QtGui/QLayout>
00024 
00025 #include <kaboutdata.h>
00026 #include <kpluginfactory.h>
00027 #include <kpluginloader.h>
00028 #include <klocale.h>
00029 
00030 #include "configpage.h"
00031 
00032 K_PLUGIN_FACTORY( ResourcesFactory, registerPlugin<KCMKResources>(); )
00033 K_EXPORT_PLUGIN( ResourcesFactory( "kcmkresources" ) )
00034 
00035 KCMKResources::KCMKResources( QWidget *parent, const QVariantList &l )
00036   : KCModule( ResourcesFactory::componentData(), parent, QVariantList() )
00037 {
00038   Q_UNUSED( l );
00039   KGlobal::locale()->insertCatalog( "libkresources" );
00040   QVBoxLayout *layout = new QVBoxLayout( this );
00041   layout->setMargin( 0 );
00042   mConfigPage = new KRES::ConfigPage( this );
00043   layout->addWidget( mConfigPage );
00044   connect( mConfigPage, SIGNAL( changed( bool ) ), SIGNAL( changed( bool ) ) );
00045   setButtons( Help | Apply );
00046   KAboutData *about =
00047    new KAboutData( I18N_NOOP( "kcmkresources" ), 0,
00048                    ki18n( "KDE Resources configuration module" ),
00049                    0, KLocalizedString(), KAboutData::License_GPL,
00050                    ki18n( "(c) 2003 Tobias Koenig" ) );
00051 
00052   about->addAuthor( ki18n( "Tobias Koenig" ), KLocalizedString(), "tokoe@kde.org" );
00053   setAboutData( about );
00054 }
00055 
00056 void KCMKResources::load()
00057 {
00058   mConfigPage->load();
00059 }
00060 
00061 void KCMKResources::save()
00062 {
00063   mConfigPage->save();
00064 }
00065 
00066 void KCMKResources::defaults()
00067 {
00068   mConfigPage->defaults();
00069 }
00070 
00071 #include "kcmkresources.moc"

kresources

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal