head 1.8; access; symbols pkgsrc-2013Q2:1.8.0.32 pkgsrc-2013Q2-base:1.8 pkgsrc-2012Q4:1.8.0.30 pkgsrc-2012Q4-base:1.8 pkgsrc-2011Q4:1.8.0.28 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q2:1.8.0.26 pkgsrc-2011Q2-base:1.8 pkgsrc-2009Q4:1.8.0.24 pkgsrc-2009Q4-base:1.8 pkgsrc-2008Q4:1.8.0.22 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.20 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.18 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.16 pkgsrc-2008Q2-base:1.8 pkgsrc-2008Q1:1.8.0.14 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.12 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.8.0.10 pkgsrc-2007Q3-base:1.8 pkgsrc-2007Q2:1.8.0.8 pkgsrc-2007Q2-base:1.8 pkgsrc-2007Q1:1.8.0.6 pkgsrc-2007Q1-base:1.8 pkgsrc-2006Q4:1.8.0.4 pkgsrc-2006Q4-base:1.8 pkgsrc-2006Q3:1.8.0.2 pkgsrc-2006Q3-base:1.8 pkgsrc-2006Q2:1.7.0.12 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.10 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.7.0.8 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.7.0.6 pkgsrc-2005Q3-base:1.7 pkgsrc-2005Q2:1.7.0.4 pkgsrc-2005Q2-base:1.7 pkgsrc-2005Q1:1.7.0.2 pkgsrc-2005Q1-base:1.7 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 buildlink2-base:1.6 netbsd-1-3-PATCH003:1.3 netbsd-1-3-PATCH002:1.1; locks; strict; comment @# @; 1.8 date 2006.09.02.11.56.59; author dmcmahill; state dead; branches; next 1.7; 1.7 date 2005.01.16.12.20.06; author drochner; state Exp; branches; next 1.6; 1.6 date 2001.10.17.12.47.20; author dmcmahill; state dead; branches; next 1.5; 1.5 date 2001.07.15.03.29.23; author dmcmahill; state Exp; branches; next 1.4; 1.4 date 99.01.24.11.47.33; author frueauf; state dead; branches; next 1.3; 1.3 date 98.08.26.21.18.58; author frueauf; state Exp; branches; next 1.2; 1.2 date 98.08.07.10.40.53; author agc; state Exp; branches; next 1.1; 1.1 date 98.03.29.22.16.36; author tron; state Exp; branches; next ; desc @@ 1.8 log @remove leftover patch file. @ text @$NetBSD: patch-aa,v 1.7 2005/01/16 12:20:06 drochner Exp $ --- patchlvl.h.orig 2005-01-15 23:30:47.000000000 +0100 +++ patchlvl.h @@@@ -34,6 +34,6 @@@@ #ifndef _TGIF_PATCHLEVEL_H_ #define _TGIF_PATCHLEVEL_H_ -#define TGIF_PATCHLEVEL 43 +#define TGIF_PATCHLEVEL 44 #endif /*_TGIF_PATCHLEVEL_H_*/ @ 1.7 log @update to PL44 changes: Fix a bug with imagemap generation. Replace "eq4.sym" and "eq4-2x.sym". These new LaTeX equation symbols do *not* use pstoepsi, ps2epsi, etc. It only requires "latex", "dvips", and "gs" to function. Add the following new internal commands: pstoepsi(,,) @ text @d1 1 a1 1 $NetBSD$ @ 1.6 log @update to tgif-4.1.41. Partial list of changes are: -fixes the bugs addressed by the patches in tgif-4.1.40nb3 -several other bug fixes. -Fix a bug with "on_resize=" attribute -Fix a bug with Tgif.DeleteCmdAsCut -Remove a redundant "a4" string in the generates PS file if A4 paper is requested -Add horizontal scroll for mouse wheel -Add a compiler option -D_DONT_REENCODE -Add ConvertToBezier in the Poly/Polygon submenu of the Edit Menu -Add a bunch of commands for adding tick marks to a poly/polygon/spline object. -New Tgif.tmpl-darwin file for Darwin/Mac OS X (with XFree86) -Update tgwb (the tgif-based whiteboard application) to use a new Reliable IP-multicast Library -Add a new X default, Tgif.UseXPmVersion1ForXPmDeck -Add new X defaults, Tgif.SlideShowWindowOffsets -Add the following new internal commands: edit_attr_in_text_mode() for a more detailed list refer to the HISTORY file included with tgif. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2001/07/15 03:29:23 dmcmahill Exp $ d3 10 a12 200 fix a bug in running tgif scripts via the -exec flag. Patch provided by the tgif author: Bill Cheng // william@@cs.umd.edu *** exec.c.orig 2000/11/09 00:07:26 --- exec.c 2001/03/19 22:08:19 *************** *** 71,74 **** --- 71,75 ---- #include "obj.e" #include "oval.e" + #include "page.e" #include "pattern.e" #include "poly.e" *************** *** 1404,1408 **** /* obj_ptr better be a top-level object */ { ! int count=0, need_to_change=FALSE; struct StrRec *str_ptr=NULL; MiniLineInfo *pMiniLine=NULL; --- 1405,1409 ---- /* obj_ptr better be a top-level object */ { ! int count=0, need_to_change=TRUE; struct StrRec *str_ptr=NULL; MiniLineInfo *pMiniLine=NULL; *************** *** 1411,1439 **** count++; } ! if (count != attr_ptr->obj->detail.t->lines) { ! need_to_change = TRUE; ! } else { ! for (str_ptr=(*ppTopStr), ! pMiniLine=attr_ptr->obj->detail.t->minilines.first; ! str_ptr != NULL; ! str_ptr=str_ptr->next, pMiniLine=pMiniLine->next) { ! if (pMiniLine == NULL) { ! need_to_change = TRUE; ! break; ! } else { ! if (pMiniLine == attr_ptr->obj->detail.t->minilines.first) { ! if (strcmp(attr_ptr->attr_value.s, str_ptr->dyn_str.s) != 0) { ! need_to_change = TRUE; ! break; ! } ! } else { ! if (strcmp(str_ptr->dyn_str.s, str_ptr->dyn_str.s) != 0) { ! need_to_change = TRUE; ! break; ! } ! } ! } ! } ! } if (need_to_change) { int ltx, lty, rbx, rby, switch_selected=FALSE; --- 1412,1442 ---- count++; } ! /* ! * if (count != attr_ptr->obj->detail.t->lines) { ! * need_to_change = TRUE; ! * } else { ! * for (str_ptr=(*ppTopStr), ! * pMiniLine=attr_ptr->obj->detail.t->minilines.first; ! * str_ptr != NULL; ! * str_ptr=str_ptr->next, pMiniLine=pMiniLine->next) { ! * if (pMiniLine == NULL) { ! * need_to_change = TRUE; ! * break; ! * } else { ! * if (pMiniLine == attr_ptr->obj->detail.t->minilines.first) { ! * if (strcmp(attr_ptr->attr_value.s, str_ptr->dyn_str.s) != 0) { ! * need_to_change = TRUE; ! * break; ! * } ! * } else { ! * if (strcmp(str_ptr->dyn_str.s, str_ptr->dyn_str.s) != 0) { ! * need_to_change = TRUE; ! * break; ! * } ! * } ! * } ! * } ! * } ! */ if (need_to_change) { int ltx, lty, rbx, rby, switch_selected=FALSE; *************** *** 8392,8395 **** --- 8395,8423 ---- } + static + int DoExecSelectEachObjAndExec(attr_name) + char *attr_name; + { + struct ObjRec *optr=NULL; + int rc=TRUE; + + for (optr=botObj; rc && optr != NULL; optr=optr->prev) { + struct AttrRec *attr_ptr=NULL; + + attr_ptr = FindAttrWithName(optr, attr_name, NULL); + if (attr_ptr != NULL) { + struct SelRec *sel_ptr=SelectThisObject(optr); + + AddSel(NULL, topSel, sel_ptr); + UpdSelBBox(); + if (!DoExec(attr_ptr, optr)) { + rc = FALSE; + } + RemoveAllSel(); + } + } + return rc; + } + int ExecSelectEachObjAndExec(argv, obj_ptr, orig_cmd) char **argv, *orig_cmd; *************** *** 8398,8420 **** { char *attr_name_to_exec=argv[0]; - struct ObjRec *optr=NULL; - struct AttrRec *attr_ptr=NULL; int rc=TRUE; UtilRemoveQuotes(attr_name_to_exec); - sprintf(execDummyStr, "%s=", attr_name_to_exec); - attr_ptr = FindAttrWithName(obj_ptr, execDummyStr, NULL); - if (attr_ptr == NULL) return BadAttr(execDummyStr, orig_cmd); ! MakeQuiescent(); ! for (optr=botObj; rc && optr != NULL; optr=optr->prev) { ! struct SelRec *sel_ptr=SelectThisObject(optr); ! AddSel(NULL, topSel, sel_ptr); ! UpdSelBBox(); ! if (!DoExec(attr_ptr, optr)) { ! rc = FALSE; } ! RemoveAllSel(); } return rc; --- 8426,8477 ---- { char *attr_name_to_exec=argv[0]; int rc=TRUE; UtilRemoveQuotes(attr_name_to_exec); ! if (topSel != NULL) { ! struct AttrRec *attr_ptr=NULL; ! sprintf(execDummyStr, "%s=", attr_name_to_exec); ! attr_ptr = FindAttrWithName(obj_ptr, execDummyStr, NULL); ! if (attr_ptr == NULL) return BadAttr(execDummyStr, orig_cmd); ! ! rc = DoExecSelectEachObjAndExec(execDummyStr); ! } else { ! char *attr_name=(char*)malloc(strlen(attr_name_to_exec)+2); ! ! if (attr_name == NULL) FailAllocMessage(); ! sprintf(attr_name, "%s=", attr_name_to_exec); ! ! MakeQuiescent(); ! StartCompositeCmd(); ! if (lastPageNum == 1) { ! rc = DoExecSelectEachObjAndExec(attr_name); ! } else { ! int saved_cur_page_num=curPageNum, prev_page_num=curPageNum; ! ! for (curPageNum=1; rc && curPageNum <= lastPageNum; curPageNum++) { ! if (prev_page_num != curPageNum) { ! PrepareToRecord(CMD_GOTO_PAGE, NULL, NULL, prev_page_num); ! GotoPageNum(curPageNum); ! RedrawPageWindow(); ! RecordCmd(CMD_GOTO_PAGE, NULL, NULL, NULL, curPageNum); ! ClearAndRedrawDrawWindow(); ! prev_page_num = curPageNum; ! } ! rc = DoExecSelectEachObjAndExec(attr_name); ! } ! if (prev_page_num != curPageNum) { ! PrepareToRecord(CMD_GOTO_PAGE, NULL, NULL, prev_page_num); ! GotoPageNum(saved_cur_page_num); ! RedrawPageWindow(); ! RecordCmd(CMD_GOTO_PAGE, NULL, NULL, NULL, saved_cur_page_num); ! ClearAndRedrawDrawWindow(); ! prev_page_num = curPageNum; ! } } ! EndCompositeCmd(); ! ! UtilFree(attr_name); } return rc; @ 1.5 log @add a patch from Bill Cheng to fix the -exec command. also add missing USE_X11 to make this link with the new buildlink stuff in place. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update tgif to 4.0.7, provided in pr 6861 by Dan McMahill. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 1998/08/26 21:18:58 frueauf Exp $ d3 200 a202 16 --- Imakefile.orig Wed Aug 19 09:38:26 1998 +++ Imakefile Wed Aug 19 10:59:03 1998 @@@@ -60,5 +60,6 @@@@ -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@@@\ -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" \@@@@\ - -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT + -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT \@@@@\ + -D_NO_EXTERN XCOMM Things to try to add to the DEFINES line above: @@@@ -72,4 +73,5 @@@@ XCOMM Linux: XCOMM FreeBSD: +XCOMM NetBSD: -D_NO_EXTERN XCOMM SCO: -D_NO_EXTERN -DPRINT_CMD=\""lp -o raw -o nobanner"\" @ 1.3 log @Update tgif to 3.0p17x, submitted in pr 6044 by Dan McMahill with some minor cleanup by me. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Add NetBSD RCS Ids. @ text @d3 16 a18 37 *** Imakefile.orig Sun Dec 7 12:25:26 1997 --- Imakefile Sun Dec 7 12:26:52 1997 *************** *** 60,64 **** -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@@@\ -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" \@@@@\ ! -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT XCOMM Things to try to add to the DEFINES line above: --- 60,65 ---- -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@@@\ -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" \@@@@\ ! -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT \@@@@\ ! -D_NO_EXTERN XCOMM Things to try to add to the DEFINES line above: *************** *** 72,75 **** --- 73,77 ---- XCOMM Linux: XCOMM FreeBSD: + XCOMM NetBSD: -D_NO_EXTERN XCOMM SCO: -D_NO_EXTERN -DPRINT_CMD=\""lp -o raw -o nobanner"\" *** cutpaste.c.orig Sun Dec 7 12:25:42 1997 --- cutpaste.c Wed Nov 26 07:35:15 1997 *************** *** 31,34 **** --- 31,38 ---- */ + /* DAN added the following 2 lines for NetBSD-1.3 */ + #include + #include + #include #include @ 1.1 log @Add "tgif-3.0-p16" package made by Dan McMahill. @ text @d1 2 @