From owner-p4-projects Mon Jul 8 21:33:43 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D3ACA37B401; Mon, 8 Jul 2002 21:33:36 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E63137B400 for ; Mon, 8 Jul 2002 21:33:36 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A56B43E58 for ; Mon, 8 Jul 2002 21:33:36 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g694XaJU078521 for ; Mon, 8 Jul 2002 21:33:36 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g694Xa2W078518 for perforce@freebsd.org; Mon, 8 Jul 2002 21:33:36 -0700 (PDT) Date: Mon, 8 Jul 2002 21:33:36 -0700 (PDT) Message-Id: <200207090433.g694Xa2W078518@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 13948 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13948 Change 13948 by rwatson@rwatson_paprika on 2002/07/08 21:33:03 Teach the main class how to cause Konqueror windows to refresh using dcop, and add a menu option for it. Eventually, should do this following relevant policy changes. Due to bugs in Konqueror, I'm not sure it's possible to get all browsers to refresh, only most. Affected files ... .. //depot/projects/trustedbsd/misc/kmacmanager/test.cc#2 edit .. //depot/projects/trustedbsd/misc/kmacmanager/test.h#2 edit Differences ... ==== //depot/projects/trustedbsd/misc/kmacmanager/test.cc#2 (text+ko) ==== @@ -37,6 +37,7 @@ #include #include "test.moc" +#include #include #include @@ -45,6 +46,8 @@ file = new QPopupMenu(); file->insertItem("&About", this, SLOT(slotAbout())); + file->insertItem("Refresh &konquerors", this, + SLOT(slotRefreshKonquerors())); file->insertItem("Refresh &modules", this, SLOT(slotRefreshModules())); file->insertItem("Refresh &sysctls", this, SLOT(slotRefreshSysctls())); file->insertSeparator(); @@ -82,6 +85,15 @@ "Network Associates, Inc."); } +void Test::slotRefreshKonquerors() +{ + + if (!kapp->dcopClient()->isAttached()) + kapp->dcopClient()->attach(); + kapp->dcopClient()->send("konqueror*", "konqueror-mainwindow#1", + "reload()", ""); +} + void Test::slotRefreshModules() { ==== //depot/projects/trustedbsd/misc/kmacmanager/test.h#2 (text+ko) ==== @@ -58,6 +58,7 @@ void closeEvent(QCloseEvent *); public slots: void slotAbout(); + void slotRefreshKonquerors(); void slotRefreshModules(); void slotRefreshSysctls(); void slotExit(); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message