summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-26 04:10:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-26 04:10:36 +0000
commit7fd5e906cc5dcdc400d3d1ff4193a4f04d0bf625 (patch)
tree9b35eefc07ee3df420dbfa96bc7e3053922ed09c
parenta1f124c60f1a98ac0def41261b40021286ccfc6e (diff)
downloadtdebase-7fd5e906cc5dcdc400d3d1ff4193a4f04d0bf625.tar.gz
tdebase-7fd5e906cc5dcdc400d3d1ff4193a4f04d0bf625.zip
Added option to launch process manager from panel with right-click
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1107589 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kicker/kicker/core/panelextension.cpp12
-rw-r--r--kicker/kicker/core/panelextension.h1
2 files changed, 12 insertions, 1 deletions
diff --git a/kicker/kicker/core/panelextension.cpp b/kicker/kicker/core/panelextension.cpp
index cf5067c17..70b7b407d 100644
--- a/kicker/kicker/core/panelextension.cpp
+++ b/kicker/kicker/core/panelextension.cpp
@@ -380,7 +380,12 @@ void PanelExtension::slotBuildOpMenu()
this, SLOT(showConfig()));
_opMnu->insertSeparator();
}
-
+
+ _opMnu->insertItem(SmallIconSet("fork"),
+ i18n("&Launch Process Manager..."),
+ this, SLOT(showProcessManager()));
+ _opMnu->insertSeparator();
+
if (kapp->authorize("action/help"))
{
KHelpMenu* help = new KHelpMenu( this, KGlobal::instance()->aboutData(), false);
@@ -394,6 +399,11 @@ void PanelExtension::showConfig()
Kicker::the()->showConfig(_configFile);
}
+void PanelExtension::showProcessManager()
+{
+ system("ksysguard &");
+}
+
MenubarExtension::MenubarExtension(const AppletInfo& info)
: PanelExtension(info.configFile()),
m_menubar(0)
diff --git a/kicker/kicker/core/panelextension.h b/kicker/kicker/core/panelextension.h
index d1d7deb28..9f50fb9ae 100644
--- a/kicker/kicker/core/panelextension.h
+++ b/kicker/kicker/core/panelextension.h
@@ -94,6 +94,7 @@ protected slots:
void immutabilityChanged(bool);
void slotBuildOpMenu();
void showConfig();
+ void showProcessManager();
virtual void populateContainerArea();
private: