You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.1 KiB
69 lines
2.1 KiB
15 years ago
|
/*
|
||
12 years ago
|
This file is part of libtderesources.
|
||
15 years ago
|
|
||
|
Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
13 years ago
|
#include <tqlayout.h>
|
||
15 years ago
|
|
||
|
#include <kaboutdata.h>
|
||
|
#include <kgenericfactory.h>
|
||
|
#include <klocale.h>
|
||
|
|
||
|
#include "configpage.h"
|
||
|
|
||
12 years ago
|
#include "kcmtderesources.h"
|
||
15 years ago
|
|
||
15 years ago
|
typedef KGenericFactory<KCMKResources, TQWidget> ResourcesFactory;
|
||
12 years ago
|
K_EXPORT_COMPONENT_FACTORY( kcm_tderesources, ResourcesFactory( "kcmtderesources" ) )
|
||
15 years ago
|
|
||
15 years ago
|
KCMKResources::KCMKResources( TQWidget *parent, const char *name, const TQStringList& )
|
||
12 years ago
|
: TDECModule( ResourcesFactory::instance(), parent, name )
|
||
15 years ago
|
{
|
||
14 years ago
|
TQVBoxLayout *layout = new TQVBoxLayout( this );
|
||
15 years ago
|
mConfigPage = new KRES::ConfigPage( this );
|
||
14 years ago
|
layout->addWidget( mConfigPage );
|
||
15 years ago
|
connect( mConfigPage, TQT_SIGNAL( changed( bool ) ), TQT_SIGNAL( changed( bool ) ) );
|
||
15 years ago
|
setButtons( Help | Apply );
|
||
12 years ago
|
TDEAboutData *about =
|
||
12 years ago
|
new TDEAboutData( I18N_NOOP( "kcmtderesources" ),
|
||
13 years ago
|
I18N_NOOP( "TDE Resources configuration module" ),
|
||
12 years ago
|
0, 0, TDEAboutData::License_GPL,
|
||
15 years ago
|
I18N_NOOP( "(c) 2003 Tobias Koenig" ) );
|
||
|
|
||
|
about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
|
||
|
setAboutData(about);
|
||
|
}
|
||
|
|
||
|
void KCMKResources::load()
|
||
|
{
|
||
|
mConfigPage->load();
|
||
|
}
|
||
|
|
||
|
void KCMKResources::save()
|
||
|
{
|
||
|
mConfigPage->save();
|
||
|
}
|
||
|
|
||
|
void KCMKResources::defaults()
|
||
|
{
|
||
|
mConfigPage->defaults();
|
||
|
}
|
||
|
|
||
12 years ago
|
#include "kcmtderesources.moc"
|