Date: Tue, 9 Jul 2002 21:27:48 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 14010 for review Message-ID: <200207100427.g6A4RmLW060838@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14010 Change 14010 by rwatson@rwatson_paprika on 2002/07/09 21:27:24 Make the DCOP konqueror call into a macro that can be invoked from any class that includes the appropriate include file. Easier than figuring the OOP goo. Affected files ... .. //depot/projects/trustedbsd/misc/kmacmanager/konqueror.h#1 add .. //depot/projects/trustedbsd/misc/kmacmanager/modulelist.cc#2 edit .. //depot/projects/trustedbsd/misc/kmacmanager/sysctllist.cc#3 edit .. //depot/projects/trustedbsd/misc/kmacmanager/test.cc#3 edit Differences ... ==== //depot/projects/trustedbsd/misc/kmacmanager/modulelist.cc#2 (text+ko) ==== @@ -45,6 +45,7 @@ #include <qmessagebox.h> +#include "konqueror.h" #include "modulelist.moc" #define BUFLEN 256 @@ -277,6 +278,7 @@ refresh(); sysctllist->refresh(NULL); + KONQUEROR_REFRESH(); } void @@ -332,4 +334,5 @@ refresh(); sysctllist->refresh(NULL); + KONQUEROR_REFRESH(); } ==== //depot/projects/trustedbsd/misc/kmacmanager/sysctllist.cc#3 (text+ko) ==== @@ -42,11 +42,11 @@ #include <stdlib.h> #include <string.h> +#include <qinputdialog.h> +#include <qmessagebox.h> + +#include "konqueror.h" #include "sysctllist.moc" - -#include "qinputdialog.h" -#include "qmessagebox.h" - #include "sysctl_util.h" #define BUFLEN 256 @@ -235,8 +235,10 @@ "%s: %s", itemname, strerror(error)); QMessageBox::warning(this, "Error setting sysctl", buf); - } else + } else { refresh(itemname); + KONQUEROR_REFRESH(); + } } free(itemname); } ==== //depot/projects/trustedbsd/misc/kmacmanager/test.cc#3 (text+ko) ==== @@ -37,10 +37,11 @@ #include <sys/types.h> #include "test.moc" -#include <dcopclient.h> #include <qmessagebox.h> #include <qtextview.h> +#include "konqueror.h" + Test::Test() : KMainWindow() { @@ -88,10 +89,7 @@ void Test::slotRefreshKonquerors() { - if (!kapp->dcopClient()->isAttached()) - kapp->dcopClient()->attach(); - kapp->dcopClient()->send("konqueror*", "konqueror-mainwindow#1", - "reload()", ""); + KONQUEROR_REFRESH(); } void Test::slotRefreshModules() To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207100427.g6A4RmLW060838>