diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/componentchooser/kcm_componentchooser.cpp | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/componentchooser/kcm_componentchooser.cpp')
-rw-r--r-- | kcontrol/componentchooser/kcm_componentchooser.cpp | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/kcontrol/componentchooser/kcm_componentchooser.cpp b/kcontrol/componentchooser/kcm_componentchooser.cpp new file mode 100644 index 000000000..8e6ae7ba7 --- /dev/null +++ b/kcontrol/componentchooser/kcm_componentchooser.cpp @@ -0,0 +1,64 @@ +/*************************************************************************** + kcm_componentchooser.cpp - description + ------------------- + copyright : (C) 2002 by Joseph Wenninger + email : jowenn@kde.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License version 2 as * + * published by the Free Software Foundation * + * * + ***************************************************************************/ + +#include <qlayout.h> + +#include <kaboutdata.h> +#include <kglobal.h> + +#include "kcm_componentchooser.h" +#include "kcm_componentchooser.moc" + + +KCMComponentChooser::KCMComponentChooser( QWidget *parent, const char *name ): + KCModule(parent,name) { + + (new QVBoxLayout(this))->setAutoAdd(true); + m_chooser=new ComponentChooser(this,"ComponentChooser"); + connect(m_chooser,SIGNAL(changed(bool)),this,SIGNAL(changed(bool))); + setButtons( Help | Apply ); + + KAboutData *about = + new KAboutData(I18N_NOOP("kcmcomponentchooser"), I18N_NOOP("Component Chooser"), + 0, 0, KAboutData::License_GPL, + I18N_NOOP("(c), 2002 Joseph Wenninger")); + + about->addAuthor("Joseph Wenninger", 0 , "jowenn@kde.org"); + setAboutData( about ); + +} + +void KCMComponentChooser::load(){ + m_chooser->load(); +} + +void KCMComponentChooser::save(){ + m_chooser->save(); +} + +void KCMComponentChooser::defaults(){ + m_chooser->restoreDefault(); +} + + +extern "C" +{ + KDE_EXPORT KCModule *create_componentchooser( QWidget *parent, const char * ) + { + KGlobal::locale()->insertCatalogue("kcmcomponentchooser"); + return new KCMComponentChooser( parent, "kcmcomponentchooser" ); + } +} + |