summaryrefslogtreecommitdiffstats
path: root/kcontrol/kicker/lookandfeeltab_kcm.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/kicker/lookandfeeltab_kcm.cpp
downloadtdebase-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/kicker/lookandfeeltab_kcm.cpp')
-rw-r--r--kcontrol/kicker/lookandfeeltab_kcm.cpp94
1 files changed, 94 insertions, 0 deletions
diff --git a/kcontrol/kicker/lookandfeeltab_kcm.cpp b/kcontrol/kicker/lookandfeeltab_kcm.cpp
new file mode 100644
index 000000000..50be83e89
--- /dev/null
+++ b/kcontrol/kicker/lookandfeeltab_kcm.cpp
@@ -0,0 +1,94 @@
+/*
+ * Copyright (c) 2002 Stephan Binner <binner@kde.org>
+ *
+ * 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
+ */
+
+#include <qlayout.h>
+
+
+#include <dcopclient.h>
+
+#include "main.h"
+#include "lookandfeeltab_kcm.moc"
+#include "lookandfeeltab_impl.h"
+
+#include <X11/Xlib.h>
+#include <kaboutdata.h>
+#include <kdialog.h>
+
+LookAndFeelConfig::LookAndFeelConfig(QWidget *parent, const char *name)
+ : KCModule(parent, name)
+{
+
+ KAboutData *about =
+ new KAboutData(I18N_NOOP("kcmkicker"), I18N_NOOP("KDE Panel Control Module"),
+ 0, 0, KAboutData::License_GPL,
+ I18N_NOOP("(c) 1999 - 2001 Matthias Elter\n(c) 2002 Aaron J. Seigo"));
+
+ about->addAuthor("Matthias Elter", 0, "elter@kde.org");
+ about->addAuthor("Aaron J. Seigo", 0, "aseigo@olympusproject.org");
+ setAboutData( about );
+
+ KickerConfig::initScreenNumber();
+ QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint());
+
+ lookandfeeltab = new LookAndFeelTab(this);
+ layout->addWidget(lookandfeeltab);
+ layout->addStretch();
+
+ connect(lookandfeeltab, SIGNAL(changed()), SLOT(configChanged()));
+
+ load();
+}
+
+void LookAndFeelConfig::configChanged()
+{
+ emit changed(true);
+}
+
+void LookAndFeelConfig::load()
+{
+ lookandfeeltab->load();
+ emit changed(false);
+}
+
+void LookAndFeelConfig::save()
+{
+ lookandfeeltab->save();
+
+ emit changed(false);
+
+ // Tell kicker about the new config file.
+ KickerConfig::notifyKicker();
+}
+
+void LookAndFeelConfig::defaults()
+{
+ lookandfeeltab->defaults();
+
+ emit changed(true);
+}
+
+QString LookAndFeelConfig::quickHelp() const
+{
+ return i18n("<h1>Panel</h1> Here you can configure the KDE panel (also"
+ " referred to as 'kicker'). This includes options like the position and"
+ " size of the panel, as well as its hiding behavior and its looks.<p>"
+ " Note that you can also access some of these options directly by clicking"
+ " on the panel, e.g. dragging it with the left mouse button or using the"
+ " context menu on right mouse button click. This context menu also offers you"
+ " manipulation of the panel's buttons and applets.");
+}
+