summaryrefslogtreecommitdiffstats
path: root/tderesources/kcmtderesources.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-03-02 15:57:34 -0600
committerDarrell Anderson <[email protected]>2013-03-02 15:57:34 -0600
commit7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch)
treec76702a7f6310fbe9d437e347535422e836e94e9 /tderesources/kcmtderesources.cpp
parenta2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff)
parent27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff)
downloadtdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz
tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tderesources/kcmtderesources.cpp')
-rw-r--r--tderesources/kcmtderesources.cpp68
1 files changed, 68 insertions, 0 deletions
diff --git a/tderesources/kcmtderesources.cpp b/tderesources/kcmtderesources.cpp
new file mode 100644
index 000000000..c3d5ae09e
--- /dev/null
+++ b/tderesources/kcmtderesources.cpp
@@ -0,0 +1,68 @@
+/*
+ This file is part of libtderesources.
+
+ Copyright (c) 2003 Tobias Koenig <[email protected]>
+
+ 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.
+*/
+
+#include <tqlayout.h>
+
+#include <tdeaboutdata.h>
+#include <kgenericfactory.h>
+#include <tdelocale.h>
+
+#include "configpage.h"
+
+#include "kcmtderesources.h"
+
+typedef KGenericFactory<KCMKResources, TQWidget> ResourcesFactory;
+K_EXPORT_COMPONENT_FACTORY( kcm_tderesources, ResourcesFactory( "kcmtderesources" ) )
+
+KCMKResources::KCMKResources( TQWidget *parent, const char *name, const TQStringList& )
+ : TDECModule( ResourcesFactory::instance(), parent, name )
+{
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
+ mConfigPage = new KRES::ConfigPage( this );
+ layout->addWidget( mConfigPage );
+ connect( mConfigPage, TQT_SIGNAL( changed( bool ) ), TQT_SIGNAL( changed( bool ) ) );
+ setButtons( Help | Apply );
+ TDEAboutData *about =
+ new TDEAboutData( I18N_NOOP( "kcmtderesources" ),
+ I18N_NOOP( "TDE Resources configuration module" ),
+ 0, 0, TDEAboutData::License_GPL,
+ I18N_NOOP( "(c) 2003 Tobias Koenig" ) );
+
+ about->addAuthor( "Tobias Koenig", 0, "[email protected]" );
+ setAboutData(about);
+}
+
+void KCMKResources::load()
+{
+ mConfigPage->load();
+}
+
+void KCMKResources::save()
+{
+ mConfigPage->save();
+}
+
+void KCMKResources::defaults()
+{
+ mConfigPage->defaults();
+}
+
+#include "kcmtderesources.moc"