From 7fd5e906cc5dcdc400d3d1ff4193a4f04d0bf625 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 26 Mar 2010 04:10:36 +0000 Subject: 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 --- kicker/kicker/core/panelextension.cpp | 12 +++++++++++- kicker/kicker/core/panelextension.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1