();
+ )
+K_EXPORT_PLUGIN(IconsFactory("kcmicons"))
+
+/**** IconModule ****/
+
+IconModule::IconModule(QWidget *parent, const QVariantList &)
+ : KCModule(IconsFactory::componentData(), parent)
+{
+ QVBoxLayout *layout = new QVBoxLayout(this);
+ layout->setMargin(0);
+
+ tab = new QTabWidget(this);
+ layout->addWidget(tab);
+
+ tab1 = new IconThemesConfig(IconsFactory::componentData(), this);
+ tab1->setObjectName( QLatin1String( "themes" ) );
+ tab->addTab(tab1, i18n("&Theme"));
+ connect(tab1, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
+
+ tab2 = new KIconConfig(IconsFactory::componentData(), this);
+ tab2->setObjectName( QLatin1String( "effects" ) );
+ tab->addTab(tab2, i18n("Ad&vanced"));
+ connect(tab2, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
+
+ KAboutData* about = new KAboutData("kcmicons", 0, ki18n("Icons"), "3.0",
+ ki18n("Icons Control Panel Module"),
+ KAboutData::License_GPL,
+ ki18n("(c) 2000-2003 Geert Jansen"));
+ about->addAuthor(ki18n("Geert Jansen"), KLocalizedString(), "jansen@kde.org");
+ about->addAuthor(ki18n("Antonio Larrosa Jimenez"), KLocalizedString(), "larrosa@kde.org");
+ about->addCredit(ki18n("Torsten Rahn"), KLocalizedString(), "torsten@kde.org");
+ setAboutData( about );
+}
+
+
+void IconModule::load()
+{
+ tab1->load();
+ tab2->load();
+}
+
+
+void IconModule::save()
+{
+ tab1->save();
+ tab2->save();
+}
+
+
+void IconModule::defaults()
+{
+ tab1->defaults();
+ tab2->defaults();
+}
+
+
+void IconModule::moduleChanged(bool state)
+{
+ emit changed(state);
+}
+
+QString IconModule::quickHelp() const
+{
+ return i18n("Icons
"
+ "This module allows you to choose the icons for your desktop."
+ "To choose an icon theme, click on its name and apply your choice by pressing the \"Apply\" button below. If you do not want to apply your choice you can press the \"Reset\" button to discard your changes.
"
+ "By pressing the \"Install Theme File...\" button you can install your new icon theme by writing its location in the box or browsing to the location."
+ " Press the \"OK\" button to finish the installation.
"
+ "The \"Remove Theme\" button will only be activated if you select a theme that you installed using this module."
+ " You are not able to remove globally installed themes here.
"
+ "You can also specify effects that should be applied to the icons.
");
+}
+
+
+
+#include "main.moc"
diff --git a/kcontrol/icons/main.h b/kcontrol/icons/main.h
new file mode 100644
index 00000000..066080d5
--- /dev/null
+++ b/kcontrol/icons/main.h
@@ -0,0 +1,55 @@
+/*
+ * main.h
+ *
+ * Copyright (c) 1999 Matthias Hoelzer-Kluepfel
+ *
+ * Requires the Qt widget libraries, available at no cost at
+ * http://www.troll.no/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+
+#ifndef __MAIN_H__
+#define __MAIN_H__
+
+
+#include
+#include
+
+class IconModule : public KCModule
+{
+ Q_OBJECT
+
+public:
+ IconModule(QWidget *parent, const QVariantList &);
+
+ void load();
+ void save();
+ void defaults();
+ QString quickHelp() const;
+
+protected Q_SLOTS:
+ void moduleChanged(bool state);
+
+private:
+ QTabWidget *tab;
+
+ KCModule *tab1;
+ KCModule *tab2;
+};
+
+
+#endif
diff --git a/kcontrol/icons/tests/CMakeLists.txt b/kcontrol/icons/tests/CMakeLists.txt
new file mode 100644
index 00000000..2199068d
--- /dev/null
+++ b/kcontrol/icons/tests/CMakeLists.txt
@@ -0,0 +1,13 @@
+set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
+
+
+include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
+########### next target ###############
+set(testicons_SRCS testicons.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../icons.cpp )
+
+
+kde4_add_executable(testicons TEST ${testicons_SRCS})
+
+target_link_libraries(testicons ${KDE4_KDEUI_LIBS})
+
+
diff --git a/kcontrol/icons/tests/testicons.cpp b/kcontrol/icons/tests/testicons.cpp
new file mode 100644
index 00000000..eae44b17
--- /dev/null
+++ b/kcontrol/icons/tests/testicons.cpp
@@ -0,0 +1,14 @@
+/* Test program for icons setup module. */
+
+#include
+#include
+#include "icons.h"
+
+int main(int argc, char **argv)
+{
+ QApplication app(argc, argv, "testicons");
+ KComponentData componentData("testicons");
+ KIconConfig *w = new KIconConfig(componentData, 0L);
+ w->show();
+ return app.exec();
+}
diff --git a/kcontrol/kded/CMakeLists.txt b/kcontrol/kded/CMakeLists.txt
new file mode 100644
index 00000000..6df7c880
--- /dev/null
+++ b/kcontrol/kded/CMakeLists.txt
@@ -0,0 +1,19 @@
+
+
+
+########### next target ###############
+
+set(kcm_kded_PART_SRCS kcmkded.cpp )
+
+
+kde4_add_plugin(kcm_kded ${kcm_kded_PART_SRCS})
+
+
+target_link_libraries(kcm_kded ${KDE4_KDEUI_LIBS})
+
+install(TARGETS kcm_kded DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+
+########### install files ###############
+
+install( FILES kcmkded.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/kcontrol/kded/Messages.sh b/kcontrol/kded/Messages.sh
new file mode 100644
index 00000000..4cf0cc4c
--- /dev/null
+++ b/kcontrol/kded/Messages.sh
@@ -0,0 +1,2 @@
+#! /usr/bin/env bash
+$XGETTEXT *.cpp -o $podir/kcmkded.pot
diff --git a/kcontrol/kded/kcmkded.cpp b/kcontrol/kded/kcmkded.cpp
new file mode 100644
index 00000000..20d7169a
--- /dev/null
+++ b/kcontrol/kded/kcmkded.cpp
@@ -0,0 +1,483 @@
+// vim: noexpandtab shiftwidth=4 tabstop=4
+/* This file is part of the KDE project
+ Copyright (C) 2002 Daniel Molkentin
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "kcmkded.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include