*** edit.c.orig Mon Jan 4 19:50:23 1999 --- edit.c Mon Jan 4 19:50:23 1999 *************** *** 3022,3025 **** --- 3022,3026 ---- ResetOnCursorKey(FALSE); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); if (FindStringInMiniLines(minilines, &found_starting_point, *************** *** 3101,3104 **** --- 3102,3106 ---- ResetOnCursorKey(FALSE); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); if (FindStringInMiniLines(minilines, &found_starting_point, *** font.c.orig Mon Jan 4 19:50:25 1999 --- font.c Mon Jan 4 19:50:25 1999 *************** *** 2204,2210 **** { int i; ! int len, ruler_font_size; ! char *c_ptr, *buf, buf1[MAXSTRING]; ! struct FontSizeRec *fs_ptr; XFontStruct *xfs=NULL; --- 2204,2210 ---- { int i; ! int len, ruler_font_size=0, user_msg_font=FALSE; ! char *c_ptr=NULL, *buf=NULL, buf1[MAXSTRING]; ! struct FontSizeRec *fs_ptr=NULL; XFontStruct *xfs=NULL; *************** *** 2473,2476 **** --- 2473,2511 ---- } } + if ((c_ptr=XGetDefault(mainDisplay, TOOL_NAME, "MsgFont")) != NULL) { + msgFontName = UtilStrDup(c_ptr); + if (msgFontName == NULL) FailAllocMessage(); + xfs = XLoadQueryFont(mainDisplay, msgFontName); + if (xfs == NULL) { + fprintf(stderr, "%s %s*MsgFont: '%s'.\n", + "Cannot load font specified by", TOOL_NAME, msgFontName); + if (msgFontName != NULL) free(msgFontName); + msgFontName = NULL; + msgFontPtr = NULL; + } else { + msgFontPtr = xfs; + msgFontWidth = msgFontPtr->max_bounds.width; + msgFontAsc = msgFontPtr->max_bounds.ascent; + msgFontDes = msgFontPtr->max_bounds.descent; + msgFontHeight = msgFontAsc + msgFontDes; + user_msg_font = TRUE; + } + } else { + msgFontName = + UtilStrDup("-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*"); + if (msgFontName == NULL) FailAllocMessage(); + xfs = XLoadQueryFont(mainDisplay, msgFontName); + if (xfs == NULL) { + if (msgFontName != NULL) free(msgFontName); + msgFontName = NULL; + msgFontPtr = NULL; + } else { + msgFontPtr = xfs; + msgFontWidth = msgFontPtr->max_bounds.width; + msgFontAsc = msgFontPtr->max_bounds.ascent; + msgFontDes = msgFontPtr->max_bounds.descent; + msgFontHeight = msgFontAsc + msgFontDes; + } + } if ((c_ptr=XGetDefault(mainDisplay, TOOL_NAME, "BoldMsgFont")) != NULL) { boldMsgFontName = UtilStrDup(c_ptr); *************** *** 2490,2499 **** boldMsgFontHeight = boldMsgFontAsc + boldMsgFontDes; } ! } else { ! boldMsgFontName = ! UtilStrDup("-*-helvetica-bold-r-normal--12-*-*-*-*-*-*-*"); if (boldMsgFontName == NULL) FailAllocMessage(); xfs = XLoadQueryFont(mainDisplay, boldMsgFontName); if (xfs == NULL) { if (boldMsgFontName != NULL) free(boldMsgFontName); boldMsgFontName = NULL; --- 2525,2535 ---- boldMsgFontHeight = boldMsgFontAsc + boldMsgFontDes; } ! } else if (user_msg_font) { ! boldMsgFontName = UtilStrDup(msgFontName); if (boldMsgFontName == NULL) FailAllocMessage(); xfs = XLoadQueryFont(mainDisplay, boldMsgFontName); if (xfs == NULL) { + fprintf(stderr, "%s %s*BoldMsgFont: '%s'.\n", + "Cannot load font specified by", TOOL_NAME, boldMsgFontName); if (boldMsgFontName != NULL) free(boldMsgFontName); boldMsgFontName = NULL; *************** *** 2506,2542 **** boldMsgFontHeight = boldMsgFontAsc + boldMsgFontDes; } - } - if ((c_ptr=XGetDefault(mainDisplay, TOOL_NAME, "MsgFont")) != NULL) { - msgFontName = UtilStrDup(c_ptr); - if (msgFontName == NULL) FailAllocMessage(); - xfs = XLoadQueryFont(mainDisplay, msgFontName); - if (xfs == NULL) { - fprintf(stderr, "%s %s*MsgFont: '%s'.\n", - "Cannot load font specified by", TOOL_NAME, msgFontName); - if (msgFontName != NULL) free(msgFontName); - msgFontName = NULL; - msgFontPtr = NULL; - } else { - msgFontPtr = xfs; - msgFontWidth = msgFontPtr->max_bounds.width; - msgFontAsc = msgFontPtr->max_bounds.ascent; - msgFontDes = msgFontPtr->max_bounds.descent; - msgFontHeight = msgFontAsc + msgFontDes; - } } else { ! msgFontName = ! UtilStrDup("-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*"); ! if (msgFontName == NULL) FailAllocMessage(); ! xfs = XLoadQueryFont(mainDisplay, msgFontName); if (xfs == NULL) { ! if (msgFontName != NULL) free(msgFontName); ! msgFontName = NULL; ! msgFontPtr = NULL; } else { ! msgFontPtr = xfs; ! msgFontWidth = msgFontPtr->max_bounds.width; ! msgFontAsc = msgFontPtr->max_bounds.ascent; ! msgFontDes = msgFontPtr->max_bounds.descent; ! msgFontHeight = msgFontAsc + msgFontDes; } } --- 2542,2560 ---- boldMsgFontHeight = boldMsgFontAsc + boldMsgFontDes; } } else { ! boldMsgFontName = ! UtilStrDup("-*-helvetica-bold-r-normal--12-*-*-*-*-*-*-*"); ! if (boldMsgFontName == NULL) FailAllocMessage(); ! xfs = XLoadQueryFont(mainDisplay, boldMsgFontName); if (xfs == NULL) { ! if (boldMsgFontName != NULL) free(boldMsgFontName); ! boldMsgFontName = NULL; ! boldMsgFontPtr = NULL; } else { ! boldMsgFontPtr = xfs; ! boldMsgFontWidth = boldMsgFontPtr->max_bounds.width; ! boldMsgFontAsc = boldMsgFontPtr->max_bounds.ascent; ! boldMsgFontDes = boldMsgFontPtr->max_bounds.descent; ! boldMsgFontHeight = boldMsgFontAsc + boldMsgFontDes; } } *** text.c.orig Mon Jan 4 19:50:27 1999 --- text.c Mon Jan 4 19:50:27 1999 *************** *** 219,223 **** textHighlight = (endStrBlock != NULL && (curStrBlock != endStrBlock || textCurIndex != textEndIndex)); - UpdatePinnedMenu(MENU_EDIT); } --- 219,222 ---- *************** *** 454,457 **** --- 453,457 ---- textCursorShown = TRUE; SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); curTextIsNew = TRUE; *************** *** 1008,1011 **** --- 1008,1012 ---- curTextIsNew = FALSE; SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); return TRUE; *************** *** 1598,1601 **** --- 1599,1603 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); *************** *** 1620,1623 **** --- 1622,1626 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); *************** *** 1649,1652 **** --- 1652,1656 ---- ResetOnCursorKey(FALSE); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); AdvanceForDoubleClickOnText(); *************** *** 1729,1732 **** --- 1733,1737 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 1744,1747 **** --- 1749,1753 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 1912,1915 **** --- 1918,1922 ---- ResetOnCursorKey(FALSE); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); } *************** *** 1930,1933 **** --- 1937,1941 ---- SetTextCurXY(); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); *************** *** 2003,2006 **** --- 2011,2015 ---- DeleteHighlightedText(); EndChangeCurText(); + UpdatePinnedMenu(MENU_EDIT); return; } *************** *** 2040,2043 **** --- 2049,2053 ---- SetTextHighlight(); DeleteHighlightedText(); + UpdatePinnedMenu(MENU_EDIT); } EndChangeCurText(); *************** *** 2251,2254 **** --- 2261,2265 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 2291,2294 **** --- 2302,2306 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 2336,2339 **** --- 2348,2352 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 2362,2365 **** --- 2375,2379 ---- SetTextCurXY(); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); *************** *** 2387,2390 **** --- 2401,2405 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 2461,2464 **** --- 2476,2480 ---- SetTextCurXY(); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); *************** *** 2508,2511 **** --- 2524,2528 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 2535,2538 **** --- 2552,2556 ---- SetTextCurXY(); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); *************** *** 2560,2563 **** --- 2578,2582 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 2609,2612 **** --- 2628,2632 ---- SetTextHighlight(); FixHighlightedStrBlockDepths(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 3025,3028 **** --- 3045,3049 ---- textJustClicked = FALSE; SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 4833,4836 **** --- 4854,4858 ---- textJustClicked = FALSE; + UpdatePinnedMenu(MENU_EDIT); RedrawCurText(); ScrollTo(textCurX, textCurBaselineY); *************** *** 4851,4854 **** --- 4873,4877 ---- ReorderCursorStrBlocks(); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); } *ppFoundStartStrBlock = *ppFoundEndStrBlock = NULL; *************** *** 5097,5100 **** --- 5120,5124 ---- ResetOnCursorKey(TRUE); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); curTextModified = TRUE; *************** *** 5136,5139 **** --- 5160,5164 ---- ResetOnCursorKey(TRUE); SetTextHighlight(); + UpdatePinnedMenu(MENU_EDIT); curTextModified = TRUE; *************** *** 5506,5509 **** --- 5531,5535 ---- EndChangeCurText(); + UpdatePinnedMenu(MENU_EDIT); MarkRulers(textCurX, textCurY); SetFileModified(TRUE); *** patchlvl.h.orig Mon Jan 4 19:50:30 1999 --- patchlvl.h Mon Jan 4 19:50:30 1999 *************** *** 35,39 **** #define _TGIF_PATCHLEVEL_H_ ! #define TGIF_PATCHLEVEL 1 #endif /*_TGIF_PATCHLEVEL_H_*/ --- 35,39 ---- #define _TGIF_PATCHLEVEL_H_ ! #define TGIF_PATCHLEVEL 2 #endif /*_TGIF_PATCHLEVEL_H_*/ *** tgifdefs.h.orig Mon Jan 4 19:50:31 1999 --- tgifdefs.h Mon Jan 4 19:50:31 1999 *************** *** 94,98 **** #ifdef __NetBSD__ ! /* Do we need anything here? */ #endif /* __NetBSD__ */ --- 94,100 ---- #ifdef __NetBSD__ ! #ifndef RTLD_GLOBAL ! #define RTLD_GLOBAL 0 ! #endif /* ~RTLD_GLOBAL */ #endif /* __NetBSD__ */ *** Imakefile.orig Mon Jan 4 19:50:32 1999 --- Imakefile Mon Jan 4 19:50:32 1999 *************** *** 53,56 **** --- 53,58 ---- $(MOREDEFINES) + TGIFVERSION = 4.0.2 + OBJ1 = align.o animate.o arc.o attr.o auxtext.o \ box.o button.o \ *************** *** 148,152 **** rm -f tgif-$(TGIFVERSION).tar/**/* tar cvf tgif-$(TGIFVERSION).tar /**/*.c /**/*.e /**/*.h \ ! Makefile.noimake Imakefile Tgif.tmpl descrip./**/??? \ make./**/* VMS_MAKE_TGIF.COM tgificon.obj $(XBMDIR)*.xbm \ tgificon.xbm tgificon.xpm tgif.Xdefaults tgificon.eps \ --- 150,155 ---- rm -f tgif-$(TGIFVERSION).tar/**/* tar cvf tgif-$(TGIFVERSION).tar /**/*.c /**/*.e /**/*.h \ ! Makefile.noimake Imakefile Tgif.tmpl Tgif.tmpl-/**/* \ ! descrip./**/??? \ make./**/* VMS_MAKE_TGIF.COM tgificon.obj $(XBMDIR)*.xbm \ tgificon.xbm tgificon.xpm tgif.Xdefaults tgificon.eps \ *************** *** 172,176 **** MAN_1 = README /**/*.man Imakefile Copyright BASIC_1 = Makefile.noimake descrip./**/* make./**/* HISTORY tgif.Xdefaults \ ! Tgif.tmpl VMS_MAKE_TGIF.COM MISC_1 = an-sr-flip-flop.obj fonts.obj slide-demo.obj keys.obj \ --- 175,179 ---- MAN_1 = README /**/*.man Imakefile Copyright BASIC_1 = Makefile.noimake descrip./**/* make./**/* HISTORY tgif.Xdefaults \ ! Tgif.tmpl Tgif.tmpl-/**/* VMS_MAKE_TGIF.COM MISC_1 = an-sr-flip-flop.obj fonts.obj slide-demo.obj keys.obj \ *************** *** 234,237 **** tgificon.xbm tgificon.xpm tgif.Xdefaults tgificon.eps \ VMS_MAKE_TGIF.COM launch-demo.obj launch-demo-1.obj \ ! Copyright make./**/* \ > VersionInfo/Distribution/tgif-$(TGIFVERSION) --- 237,240 ---- tgificon.xbm tgificon.xpm tgif.Xdefaults tgificon.eps \ VMS_MAKE_TGIF.COM launch-demo.obj launch-demo-1.obj \ ! Copyright make./**/* Tgif.tmpl-/**/* \ > VersionInfo/Distribution/tgif-$(TGIFVERSION) *** Tgif.tmpl.orig Mon Jan 4 19:50:33 1999 --- Tgif.tmpl Mon Jan 4 19:50:33 1999 *************** *** 54,58 **** XCOMM EXTRA_LDOPTIONS = - TGIFVERSION = 4.0.1 PROGRAMS = tgif XCOMM prtgif frontend11.o testdrive XCOMM CDEBUGFLAGS= -g -Wall --- 54,57 ---- *** tgif.man.orig Mon Jan 4 19:50:34 1999 --- tgif.man Mon Jan 4 19:50:34 1999 *************** *** 4,10 **** .\" .\" .\" - .TH TGIF n "Version 4.0 Patchlevel 1 and Above" "Tgif" .\" .SH NAME .\" --- 4,14 ---- .\" .\" .\" .\" + .\" + .\" + .\" + .TH TGIF n "Version 4.0 Patchlevel 2 and Above" "Tgif" + .\" .SH NAME .\" *************** *** 3741,3745 **** .I Tgif.BoldMsgFont: STRING The STRING specifies a bold font to be used in buttons and dialogboxes. ! If this X default is not specified, the default font is used. .TP .I Tgif.MsgFont: STRING --- 3745,3751 ---- .I Tgif.BoldMsgFont: STRING The STRING specifies a bold font to be used in buttons and dialogboxes. ! If this X default is not specified but Tgif.MenuFont is specifed, ! this will take on the value of Tgif.MenuFont. ! If this X default and Tgif.MenuFont are not specified, the default font is used. .TP .I Tgif.MsgFont: STRING *** README.orig Mon Jan 4 19:50:37 1999 --- README Mon Jan 4 19:50:37 1999 *************** *** 25,33 **** psroff -man tgif.man <== to print ! 4) Modify Makefile.noimake or Imakefile such that TGIF_PATH is set to ! the directory where the optional icon file will be. ! 5) Modify the DEFINES line at the beginning of Imakefile or Makefile.noimake ! (see "Things to try..." in the Imakefile for examples). Please do not change -DTELEPORT_ATTR=\"warp_to=\", -DLAUNCH_ATTR=\"launch=\", or -DEXEC_ATTR=\"exec=\". --- 25,38 ---- psroff -man tgif.man <== to print ! 4) If you want to use imake, you can copy Tgif.tmpl-PLATFORM to Tgif.tmpl ! (where PLATFORM depends on the platform you are on). The default Tgif.tmpl ! is identical to Tgif.tmpl-linux. There's only a few Tgif.tmpl-* files in ! the current release of tgif. More will be added when they become available. ! I only have access to limited number of platforms, so if you don't find your ! platform listed, please ask a local expert to modify Tgif.tmpl and send a ! working version to me so I can create new Tgif.tmpl-* files. ! 5) Modify the DEFINES line at the beginning of Tgif.tmpl or Makefile.noimake ! (see "Things to try..." in the Tgif.tmpl for examples). Please do not change -DTELEPORT_ATTR=\"warp_to=\", -DLAUNCH_ATTR=\"launch=\", or -DEXEC_ATTR=\"exec=\". *** HISTORY.orig Mon Jan 4 19:50:37 1999 --- HISTORY Mon Jan 4 19:50:37 1999 *************** *** 1,355 **** ! -----------------------> tgif-3.0.18 => ? <----------------------- ! Here's a short list of added features/bug fixes for this INTERNAL release. ! ! 1) Support the _TGIF_WB2 compile option. Attempting to phase out _TGIF_WB. ! ! -----------------------> tgif-3.0-p17 => tgif-3.0.18 <----------------------- Here's a short list of added features/bug fixes. - 1) Tgif now has a mailing list maintained by Kragen. To subscribe to - the mailing list, please send an empty message to - kragen-tgif-subscribe@gentle.dyn.ml.org. - 2) Fix problems with shifted EPS images. - 3) Fix fractional line widths problems. - 4) Fix problems with exporting HTML files, getting binary data from FTP - connections, and getting occasional crashes when you click on the pinned - Color or Shape Menu. ! -----------------------> tgif-3.0-p16 => tgif-3.0-p17 <----------------------- ! Here's a short list of added features/bug fixes. ! 1) Support a new special attribute: "unmakeiconic_on_instantiate_delete_attrs". ! Please see the SPECIAL ATTRIBUTE section of the man pages for details. ! 2) Change the default value for Tgif.VectorWarpSoftness to be 2.0 instead ! of 1.5. ! 3) Add a new internal command: ! make_selected_obj_iconic() ! ! -----------------------> tgif-3.0-p15 => tgif-3.0-p16 <----------------------- Here's a short list of added features/bug fixes. ! 1) Fix a bug in scaling objects. Thanks to Helmut Jarausch ! for pointing out the problem. ! 2) Fix a bug in rotating XBM objects. Thanks to Fozzy C. Dressel ! for pointing out the problem. ! 3) Add VectorWarp() to the ImageProc Menu to warp selected image in ! a specified direction for a specified amount. Add a new X default, ! Tgif.VectorWarpSoftness to control the softness of the warp. ! 4) Add new internal commands: ! move_attr_relative(,,) ! get_number_of_vertices(,) ! is_obj_transformed(,) ! -----------------------> tgif-3.0-p14 => tgif-3.0-p15 <----------------------- ! Here's a short list of added features/bug fixes. ! 1) Add new internal commands: ! find_obj_names(,,) ! tokenize(,,) ! -----------------------> tgif-3.0-p13 => tgif-3.0-p14 <----------------------- ! Here's a short list of added features/bug fixes. ! 1) Fix a bug in rotating shapes. Thanks to Shinichiro Shiratake ! for pointing out the problem. ! 2) Fix a bug in Move/JustifyAttr where an attribute name becomes visible ! when it should not. Thanks to Heinz Appoyer ! for pointing out the problem. ! 3) Fix a bug in navigating back. Thanks to Scott W. Turner ! for pointing out the problem. ! 4) Fix a bug in Find functions to remove the "Undo()/Redo() may crash Tgif" ! message. ! 5) Fix a memory leak problem in printing EPS objects. Thanks to ! Kazuhiko Sumi for the patch. ! 6) Add support for "-gif", "-xpm", "-xbm", "-html", "-epsi", and "-tiffepsi" ! command line options to work with the "-print" command line options. ! Please note that these options require an X server to be accessible ! (which can be specified by the "-display" command line option). ! Support for "-stdout" command line option is also added. ! 7) Add support for the "-previewonly" command line options to work with the ! "-print -dosepsfilter" command line options. This makes tgif act as a ! filter for extracting the preview bitmap from the trailing TIFF image in ! a DOS/Windows EPS file. ! 8) Add a new X resource, Tgif.ColorFromXPixmap, to specify an XPM file ! to be used to load the initial colors. If this X resource is specified, ! the Tgif.Color# X resources are ignored. ! 9) Add a new X resource, Tgif.TitledPinnedMenu, so that pinned menu can ! have a title bar and left button to be used for selecting menu items ! in a pinned menu. ! 10) Add a new X resource, Tgif.TmpFileMode, to specify a file mode for ! temporary and exported files. A new command option -tmp_file_mode ! is also added and recognized when -print is used. These values ! overrides the PSFILE_MOD compile option. ! 11) Add new internal commands: ! index(,,) ! rindex(,,) ! get_number_of_lines_in_attr(,) ! get_line_in_attr(,,) ! trim() ! is_attr(,) ! 12) Add support for a new compile option -D_METRIC_PIX_PER_INCH to use ! 127 pixels per inch when printing in the metric system to fix round-off ! problems (pointed out by Graham Titmus ). ! By default, tgif uses 128 pixels per inch. ! 13) Handle multiple objects in UpdateEPS(). ! -----------------------> tgif-3.0-p12 => tgif-3.0-p13 <----------------------- ! Here's a short list of added features/bug fixes. ! 1) Fix a bug in generating PS/EPS files for files containing rotated EPS ! object. Thanks to Dietrich Bartel for ! pointing out the problem. ! 2) Fix a bug in drawing an EPS object that doesn't have a preview bitmap. ! Thanks to Kyle Bateman for pointing out the problem. ! 3) Fix a bug when printing to the printer in batch mode. Thanks to ! Kyle Bateman for pointing out the problem. ! 4) Fix a redraw bug in SetMeasureUnit(). Thanks to Joji Maeda ! for pointing out the problem. ! 5) Fix a bug when the value of a !PAGE_NUM attribute contains characters ! after !(STACKED_PAGE_NUM). Thanks to Yuan-Hua Chu ! for pointing out the problem. ! 6) Supports !(STACKED_NUM_PAGES) in the value part of a !PAGE_NUM attribute. ! 7) Supports -dosepsfilter command line option so that tgif can be used as ! a filter to remove DOS/Windows EPS header and trailing TIFF image for ! a DOS/Windows EPS file. For example, if "windows.eps" is a DOS/Windows ! EPS file, the following sequence will produce a regular EPS file: ! mv windows.eps windows.epsi ! tgif -print -dosepsfilter windows.epsi > windows.eps ! 8) Add a new X resource, Tgif.IconPixmap, to specify an XBM or XPM file ! for tgif's desktop icon. This X resource is only enabled if the ! Tgif.UseWMIconPixmap is set to "True". ! 9) Try to make rotated ovals look better. ! -----------------------> tgif-3.0-p11 => tgif-3.0-p12 <----------------------- ! Here's a short list of added features/bug fixes. ! 1) Fix a bogus message, 'Warning: empty stack in SetPushedFontValue().' ! Thanks to Dave Bodenstab for pointing out the problem. - -----------------------> tgif-3.0-p10 => tgif-3.0-p11 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix a bug in using the -DUSE_XAPPLRESDIR compile option. Thanks to - Dieter Jurzitza for the patch. - 2) Fix a bug in constrained move/stretch/rotate mode for transformed - objects. Thanks to Hiroto Kagotani - for pointing out the problem. - 3) After an iconic object is instantiated, of the object has an attribute - named "on_instantiate", the corresponding internal commands are executed. - 4) Add new internal commands: substitute_attr(,, - ,), get_file_size(,), - and is_file(,). - 5) Support new command line arguments to be used with -print. The -raw - argument causes an input file to be copied to stdout. If the input file - is an HTTP URL and the -raw+h argument is used, the HTTP header - information is also copied to stdout. - 6) Add SetEditTextSize() under the Edit Menu to let the user use a different - text size in editing existing text objects (this can be useful when using - very large fonts or zooming way in). Also add a new X resource, - Tgif.EditTextSize, to set the default size to use in editing existing - text objects. - 7) Add FindCaseSensitive(), FindNoCase(), and FindAgain() under the Edit Menu - to find a string in visible text objects. - 8) Allow "href=#" in generating HTML files (with - client-side imagemaps) using PrintOneFilePerPage() from the Page Menu. - - -----------------------> tgif-3.0-p9 => tgif-3.0-p10 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix some problems with rotation. Thanks to Kyle Bateman - for pointing out the problems. - 2) Improve EPS printing accuracy when the EPS object is not rotated or - sheared. - 3) Automatically fix invalid poly/open-spline smooth/hinge values. - 4) Fix a bug in handling XAPPLRESDIR when the -DUSE_XAPPLRESDIR compile - option is used. Thanks to Dieter Jurzitza for pointing out the problem. - 5) Fix a bug in handling Tgif.UseWMIconPixmap. Thanks to Dieter Jurzitza - for the patch. - 6) Support -color commandline argument to be used with -print. Since old - tgif file does not contain enough color information for color printing - in batch mode, the -color commandline argument will not work with tgif - files saved by an earlier version of tgif. - 7) Save color layer information in obj files. - 8) Add a SetSelFontSize() command to the Edit Menu to change the font - size of selected objects. - - -----------------------> tgif-3.0-p8 => tgif-3.0-p9 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix broken h in text mode. - - -----------------------> tgif-3.0-p7 => tgif-3.0-p8 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Bring man pages up-to-date. - 2) Add NoTransform() to the Edit Menu to remove any transformation from a - simple (non-composite) object. - 3) Supports bg_color and fg_color file attributes. - 4) Supports PrintOneFilePerPage() when exporting (printing) to HTML and GIF. - 5) In text mode, holding down or while typing or - remove the next character. - 6) Add a new X default, Tgif.StretchableText to set the initial text stretch - mode. - 7) Fix a bug with showing the wrong page number in the page tag. Thanks to - Kit-ying Hui for pointing out the problems. - 8) Fix a bug in SaveSymInLibrary() from the File Menu. Thanks to Takashi - Nishida for pointing out the - problems. - 9) Fix an infinite-loop bug in showing a message when Tgif.BoldMsgFont is - used. Thanks to Klaus Elsbernd for - pointing out the problem. - 10) Fix a bug with auto-justifying text objects where printed text looks - justified differently from the corresponding screen text. - - -----------------------> tgif-3.0-p6 => tgif-3.0-p7 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Add shadow for shapes. Also add a new X resource, Tgif.ShapeShadowSpec, - to set the default shape shadow offsets. - 2) Fix a bug with generating PS/EPS files for rotated filled text. - 3) Bring tgif.pl, the Prolog documentation for tgif file formats, up to date. - 4) Fix a bug with PreciseScale() when the alignment limits stretchability. - - -----------------------> tgif-3.0-p5 => tgif-3.0-p6 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix a crashing bug with shapes. This bug causes objects to disappear - after Save() and seg faults. Thanks to Renato Santana - for pointing out the problem. - 2) Fix a crashing bug with deleting vertices. Thanks to Niek Lambert - for pointing out the problem. - 3) Fix a bug with shapes. When a shape is created, tgif should edit the - text centered in the shape. - 4) The default value of Tgif*GroupedTextEditable X resource is changed to - TRUE. - - -----------------------> tgif-3.0-p4 => tgif-3.0-p5 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix a problem with certain HP and Solaris compilors. These compilors - do not like short or char in function prototypes! Thanks to - Jaap Haalboom for pointing - out the problem. - - -----------------------> tgif-3.0-p3 => tgif-3.0-p4 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix some minor bugs with clicking in the panel window. - 2) Fix a bug with redrawing transformed text objects. - 3) Add two new internal commands: call_simple_shortcut() and - call_one_arg_shortcut(,). With these commands, the - following code will make a pixmap object named "toy" gray: - - exec=disable_undo(); - begin_animate(); - select_obj_by_name(toy); - call_simple_shortcut(MakeGray); - unselect_all_obj(); - end_animate(); - enable_undo(); - - -----------------------> tgif-3.0-p2 => tgif-3.0-p3 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix bugs with change font properties of transformed text. Thanks to - Kyle Bateman for pointing out the problems. - 2) Getting rid of uncessary redraws on transformed text when scrolling. - 3) Make CenterAnEndPoint() work for rotated polyline objects. - 4) Add a new internal command: rotate_selected_obj(). - With this command, the following code will keep rotating an object - named "toy" forever (until is entered): - - exec=disable_undo(); - begin_animate(); - select_obj_by_name(toy); - while(1,do_it); - unselect_all_obj(); - end_animate(); - enable_undo(); - - do_it=rotate_selected_obj(10); - - -----------------------> tgif-3.0-p1 => tgif-3.0-p2 <----------------------- - Here's a short list of added features/bug fixes. - - 1) Fix a few bugs related to generating PS/EPS files. Thanks to Frank - Prengel for pointing out the problems. - - -----------------------> tgif-3.0 => tgif-3.0-p1 <----------------------- - I've just put tgif-3.0-patch1 (1st patch for tgif-3.0) in - the following places for anonymous ftp (binaries are still not - available at the time of this release, please check - for availability): - - ftp://ftp.x.org/contrib/applications/tgif/tgif-3.0-patch1.gz - ftp://ftp.cs.ucla.edu/pub/tgif/tgif-3.0-patch1.gz - ftp://bourbon.cs.ucla.edu/pub/tgif-3.0-patch1.gz - - Tgif is an Xlib-based 2-D drawing tool. It's also a hyper-graphics (or - hyper-structured-graphics) browser on the World-Wide-Web. Its hyper-text home - page is at and its hyper-graphics - home page is at . - (Please note that the Content-type of a tgif file sent by the httpd at - bourbon.cs.ucla.edu:8001 is applications/x-tgif.) - - Tgif is free, but please read the Copyright file in the distribution - (or select Copyright from the Help Menu in tgif) for restrictions. - - (Pelase note that tgif is NEITHER an html viewer NOR an html editor. - It is also NOT directly related to GIF nor Transparent GIF.) - - Please gunzip and then apply the patch with - 'patch -p -N < tgif-3.0-patch1'. - Here's a short list of added features/bug fixes. - - 1) Fix a bug that crashed tgif when there is a very small text object - and tgif is zoomed way out. Thanks to Kyle Bateman - for pointing out the problem. - 2) The number of colors is incorrect when printing in XPM3 format. Thanks - to Ralphe Neill for pointing out the problem! - - -----------------------> tgif-3.0 <----------------------- - It's been 9 months since the last release. Finally, I've got rotation - (and a bunch of other stuff) to work. This release is a beta release - at best. Please send bug reports to william@cs.columbia.edu as soon as - possible so I can release patches. Although version 3.0 is backward- - compatible, the file format is not forward-compatible (you won't be able - to read files generated by this version with older versions of tgif). - - I've just put tgif-3.0 source in the following places for anonymous ftp - (binaries are not available yet at the time of this release, please check - for availability): - - ftp://ftp.x.org/contrib/applications/tgif/tgif-3.0.tar.gz - ftp://ftp.cs.ucla.edu/pub/tgif/tgif-3.0.tar.gz - ftp://bourbon.cs.ucla.edu/pub/tgif-3.0.tar.gz - - Tgif is an Xlib-based 2-D drawing tool. It's also a hyper-graphics (or - hyper-structured-graphics) browser on the World-Wide-Web. Its hyper-text home - page is at and its hyper-graphics - home page is at . - (Please note that the Content-type of a tgif file sent by the httpd at - bourbon.cs.ucla.edu:8001 is applications/x-tgif.) - - Tgif is free, but please read the Copyright file in the distribution - (or select Copyright from the Help Menu in tgif) for restrictions. - - (Pelase note that tgif is NEITHER an html viewer NOR an html editor. - It is also NOT directly related to GIF nor Transparent GIF.) - - Here's a short list of the main added features. - - 1) Rotate objects by any angle. Shear objects. - 2) Image processing functions for pixmap object. - 3) Support some flowcharting objects directly. - 4) Import image files using extern filters such as filters from the netpbm - (pbmplus) and the jpeg toolkits. Please see Tgif.MaxImportFilters - and Tgif.ImportFilter# in the tgif.Xdefault file of the distribution - for examples. - --- 1,91 ---- ! -----------------------> tgif-4.0.1 => tgif-4.0.2 <----------------------- Here's a short list of added features/bug fixes. ! 1) Fix a ``Fatal Unexpected Error'' when the Edit Menu is pinned and certain ! text cursor movement is performed when a text object is being edited. ! 2) Tgif.BoldMsgFont by default will now use the value of Tgif.MsgFont if ! Tgif.MsgFont is specified. ! 3) RTLD_GLOBAL, used in "xprtfltr.c", is not defined on FreeeBSD. Thanks to ! Dan McMahill for pointing out the problem. ! 4) Add the following files to the distribution: ! Tgif.tmpl-linux ! Tgif.tmpl-solaris ! Tgif.tmpl-freebsd ! -----------------------> tgif-4.0 => tgif-4.0.1 <----------------------- Here's a short list of added features/bug fixes. ! 1) Tgif.MinimalEPS was not behaving and documented properly. Thanks to ! Koppa Vesa for pointing out the problems. ! 2) Fix a few missing items in make.common and Makefile.noimake. Thanks to ! Koppa Vesa for pointing out the problems. ! 3) Fix a few minor compiler warnings. for pointing out the problems. ! 4) Fix a few missing defines for certain machines. Thanks to ! Francis Ngoh for pointing out the problems. ! 1) Support the _TGIF_WB2 compile option. Attempting to phase out _TGIF_WB. ! -----------------------> tgif-4.0 <----------------------- ! I'm happy to announce the availability of version 4.0 of tgif. This release ! is an alpha release. So it's probably a good idea not to use it on anything ! too serious. Please send bug reports to bill.cheng@acm.org as soon as you ! see bugs so I can release patches to fix major bugs. Unfortunately, I will ! be out of e-mail reach until 12/31, so I won't be able to respond until ! probably the next year. I apologize for that. ! Although version 4.0 is backward-compatible with old versions of tgif, the ! file format is not forward-compatible (you won't be able to read files ! generated by this version of tgif with an older versions of tgif). ! The tgif-4.0 source code is available at the following places for anonymous ! ftp (binaries are not available yet at the time of this release, please check ! the tgif current release and download page for availability): ! ftp://bourbon.cs.umd.edu/pub/tgif/tgif-4.0.tar.gz (primary) ! ftp://ftp.cs.ucla.edu/pub/tgif/tgif-4.0.tar.gz ! (1,098.938 bytes - running 'sum tgif-4.0.tar.gz' should get: 16385 1074) ! Here's a short list of the main features added in version 4.0. ! 1) 3-D look. ! 2) Allow a text object to have multiple font faces, sizes, styles, and colors. ! 3) Allow superscripts and subscripts in text objects. ! 4) Support double-byte fonts and their input methods such as kinput2 for ! Japanese and xcin and chinput for Chinese. ! 5) Slide show mode for multipage drawings using left and right cursor keys ! to advance pages. ! 6) Import/export GIF animation - requires gifsicle ! version 1.9.1 or newer. ! 7) Export PDF files - requires ps2pdf from the ghostscript 5.x distribution ! . ! 8) Copy/paste object properties (such as color, linewidth, etc.) ! ABOUT TGIF: ! Tgif is an Xlib-based 2-D drawing tool. It's also a hyper-graphics (or ! hyper-structured-graphics) browser on the World-Wide-Web. Its hyper-text ! home page is and its ! hyper-graphics home page is ! . (Please note that the ! Content-type of a tgif file sent by the httpd at bourbon.cs.umd.edu:8001 ! is applications/x-tgif.) ! Tgif is free-of-charge, but please read the Copyright file in the ! distribution (or select Copyright from the Help Menu in tgif) for ! restrictions. ! (Please note that tgif is NEITHER an html viewer NOR an html editor. ! It is also NOT directly related to GIF nor Transparent GIF.) ! TGIF RESOURCES: ! Home Page: http://bourbon.cs.umd.edu:8001/tgif/ ! FAQ: http://bourbon.cs.umd.edu:8001/tgif/faq/ ! Current Release & Download: http://bourbon.cs.umd.edu:8001/tgif/current.html ! Join to Mailing List: kragen-tgif-subscribe@kragen.dnaco.net ! Mailing List: kragen-tgif@kragen.dnaco.net ! Bug Reports Send To: bill.cheng@acm.org ! Happy New Year! *** Tgif.tmpl-freebsd.orig Mon Jan 4 19:50:38 1999 --- Tgif.tmpl-freebsd Mon Jan 4 19:50:38 1999 *************** *** 0 **** --- 1,220 ---- + XCOMM + XCOMM Author: William Chia-Wei Cheng (william@cs.ucla.edu) + XCOMM + XCOMM Copyright (C) 1990-1999, William Chia-Wei Cheng. + XCOMM + XCOMM Permission limited to the use, copy, display, distribute without + XCOMM charging for a fee, and produce derivative works of "tgif" and + XCOMM its documentation for not-for-profit purpose is hereby granted by + XCOMM the Author, provided that the above copyright notice appears in + XCOMM all copies made of "tgif" and that both the copyright notice + XCOMM and this permission notice appear in supporting documentation, + XCOMM and that the name of the Author not be used in advertising or + XCOMM publicity pertaining to distribution of the software without + XCOMM specific, written prior permission. The Author makes no + XCOMM representations about the suitability of this software for any + XCOMM purpose. It is provided "as is" without express or implied + XCOMM warranty. All other rights (including, but not limited to, the + XCOMM right to sell "tgif", the right to sell or distribute derivative + XCOMM works of "tgif", the right to distribute "tgif" for a fee, and + XCOMM the right to include "tgif" or derivative works of "tgif" in a + XCOMM for-sale product) are reserved by the Author. + XCOMM + XCOMM THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + XCOMM INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + XCOMM EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR + XCOMM CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + XCOMM USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + XCOMM OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + XCOMM PERFORMANCE OF THIS SOFTWARE. + XCOMM + XCOMM @(#)$Header: /mm/src/tgif/v4/RCS/Tgif.tmpl-freebsd,v 4.0 1999/01/04 23:28:05 william Exp $ + XCOMM + + #if ProjectX == 5 + #if BuildXimp + XIMPDEFINES = + #else + XIMPDEFINES = -D_NO_XIMP + #endif + #elif ProjectX > 5 + XIMPDEFINES = + #endif + + XCOMM On Solaris, you probably need to uncomment the next few lines: + XCOMM + XCOMM CC = cc + XCOMM PREPROCESSCMD = cc -E $(STD_CPP_DEFINES) + XCOMM EXTRA_LDOPTIONS = + XCOMM EXTRA_LIBRARIES = -lsocket -lnsl -lgen + XCOMM + XCOMM On IRIX, you probably need to uncomment the next few lines: + XCOMM + XCOMM OPTIMIZER = -O2 -Olimit 1500 + XCOMM EXTRA_LDOPTIONS = + + PROGRAMS = tgif XCOMM prtgif frontend11.o testdrive + XCOMM CDEBUGFLAGS= -g -Wall + XCOMM INSTPGMFLAGS= -s + XCOMM BINDIR = /u/halfmoon/bin + XCOMM MANPATH = /u/halfmoon/man + XCOMM TGIFDIR = /u/halfmoon/lib/X11/tgif + TGIFDIR = $(LIBDIR)/tgif + DIRDEFINES = -DTGIF_PATH=\"$(TGIFDIR)\" -DPSFILE_MOD=0664 \@@\ + -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@\ + -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" + EXTDEFINES = -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" \@@\ + -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" \@@\ + -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" \@@\ + -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" + MISCDEFINES = -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT + MOREDEFINES = + + XCOMM Things to try to add to the DEFINES line above: + XCOMM + XCOMM RS6000: -D_BSD + XCOMM Solaris: + XCOMM Irix: + XCOMM SunOS: + XCOMM HP-UX: -D_NO_LOCALE_SUPPORT + XCOMM VMS: -D_NO_GETTIMEOFDAY + XCOMM Linux: + XCOMM FreeBSD: + XCOMM SCO: -DPRINT_CMD=\""lp -o raw -o nobanner"\" + + DEPLIBS = $(DEPXLIB) + LOCAL_LIBRARIES = $(XLIB) + XCOMM LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) $(XLIB) + XCOMM SYS_LIBRARIES = -ldl -lm + SYS_LIBRARIES = -lm + + XCOMM -D_NO_XCIN + XCOMM Include the above line if you do not want to include the code + XCOMM that handles xcin. Please also remove "cli_xcin.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_CHINPUT + XCOMM Include the above line if you do not want to include the code + XCOMM that handles chinput. Please also remove "chinput.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_KINPUT + XCOMM Include the above line if you do not want to include the code + XCOMM that handles kinput. Please also remove "convkinput.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_XIM + XCOMM Include the above line if you do not want to include the code + XCOMM that handles X Input Method. Please also remove "convxim.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_NKF + XCOMM Include the above line if you do not want to include the code + XCOMM that handles Network Kanji Filter (NKF). Please also remove + XCOMM "nkf.o" from OBJ1 in Imakefile. + XCOMM -D_NO_DL_SUPPORT + XCOMM Include the above line if you don't have . If you define + XCOMM _NO_DL_SUPPORT, please use the SYS_LIBRARIES that does not contain + XCOMM -ldl above. + XCOMM -D_NO_LOCALE_SUPPORT + XCOMM Include the above line if you don't have . + XCOMM -D_METRIC_PIX_PER_INCH + XCOMM Include the above line if you want to use 127 pixels per inch + XCOMM when printing in the metric system. If this line is not + XCOMM included, 128 pixels per inch is used. + XCOMM -D_NO_GETTIMEOFDAY + XCOMM Include the above line if you do not have the gettimeofday() + XCOMM function but have the ftime() function. + XCOMM -D_TANGRAM_II + XCOMM Include the above line if you want to include the Tangram-II features + XCOMM by Carlos Fisch de Brito, Luiz Rogerio Goncalves de Carvalho, and + XCOMM Denise Jorge de Oliveira of the + XCOMM Tangram-II team of the Universidade Federal do Rio de Janeiro. These + XCOMM features are under development and highly experimental. + XCOMM -D_TGIF_WB + XCOMM Include the above line if you want to include the whiteboard feature + XCOMM by Renato Santana . This feature is under + XCOMM development and highly experimental. + XCOMM -DBSD_COMP + XCOMM Include the above line if you are compiling on a Solaris (or + XCOMM possibly an SGI) machine which requires it in . + XCOMM (If you see the error that FIONBIO is not defined when compiling + XCOMM tcp.c, then you probably need this.) + XCOMM -D_BACKGROUND_DONT_FORK + XCOMM Try the above line if there are defunct tgif child processes. + XCOMM -D_NO_LSTAT + XCOMM Include the above line if lstat() is not available. In this case, + XCOMM using BrowseXBitmap and BrowseXPixmap under the File Menu may cause + XCOMM infinite loop if the directory structure is infinitely recursive. + XCOMM -D_USE_XDRAWPOINT_TO_PUT_A_POINT + XCOMM Include the above line if the grid points are not visible. This can + XCOMM be used to bypass some X server bugs (such as certain Linux X server + XCOMM using VGA16 screen) where the XDrawLine() Xlib call does not work + XCOMM properly. + XCOMM -D_NO_EXTERN (obsoleted) + XCOMM Include the above line in the DEFINES if you don't want to include + XCOMM the extern definition for functions defined in a module. For example, + XCOMM if this option is set, then file "foo.c" will not include "foo.e", + XCOMM and certain other extern definition in "foo.c" will be omitted. + XCOMM -D_NO_PROTO + XCOMM Include the above line in the DEFINES if checking for function + XCOMM prototypes is not desired. Checking for function prototypes + XCOMM are automatically enabled if you are using an ANSI or C++ compilor. + XCOMM However, not all ANSI/C++ compilors are created equal. + XCOMM -D_BSD + XCOMM Include the above line in the DEFINES if the select() function can + XCOMM does not be found for AIX systems (such as RS6000). Also, on AIX + XCOMM systems, if you see garbage file names when you try to open files, + XCOMM try this flag to make direct and dirent equivalent (in ). + XCOMM -DNO_STRSTR + XCOMM Include the above line in the DEFINES if you do not have the strstr() + XCOMM function in your system's string library. + XCOMM -DINVERT_CTM_BUG + XCOMM Include the above line in the DEFINES if you are using PostScript + XCOMM utilities which fails when trying to invert non-invertible CTM + XCOMM (e.g., muluti.ps from ftp.ucc.su.oz.au:/pub/ps_printing/multi). + XCOMM -DHP_LINE_BUG + XCOMM Include the above line in the DEFINES if two-vertices horizontal and + XCOMM verticle line segments don't draw properly on a buggy HP server. + XCOMM -DDONTFREECOLORS + XCOMM Include the above line in the DEFINES if you don't want the black and + XCOMM the white colors to be freed when tgif initializes itself. You should + XCOMM not need to do this unless you need to get around some server bugs. + XCOMM -DUSE_XAPPLRESDIR + XCOMM Include the above line in the DEFINES if $XAPPLRESDIR/Tgif is used to + XCOMM specify the resource file. If your system does not have putenv() + XCOMM (such as IBM-RT), then this won't work. + XCOMM -DXAPPLOADDIR_DEF + XCOMM If you define USE_XAPPLRESDIR, define this to a default directory + XCOMM to use in case $XAPPLRESDIR isn't set. + XCOMM -DUSE_XT_INITIALIZE + XCOMM This will cause the XToolkit to be initialized so that the X defaults + XCOMM are obtained from the Xt directories. This should only be used when + XCOMM USE_XAPPLRESDIR option is NOT used. Please remember to use the + XCOMM LOCAL_LIBRARIES with $(XTOOLLIB) $(XMULIB) above. + XCOMM -DNO_THIN_LINE + XCOMM Include the above line in the DEFINES if a line width of 0 causes + XCOMM your server to crash. This is to get around a bug in some X servers. + XCOMM -DTHIN_OVAL_AND_ARC + XCOMM Include the above line in the DEFINES if you want 0 width arcs to + XCOMM be used when the width of an arc is less than or equal to 1. + XCOMM (Sun3 server has a bug that makes drawing ovals and arcs with + XCOMM width other than 0 VERY slow). + XCOMM -DKEEP_WHEN_PRINT + XCOMM Include the above line in the DEFINES if you don't want the temp + XCOMM file to be deleted after sending the print job to the printer. + XCOMM (Some VMS systems might require this flag to be used.) + XCOMM -DPRINT_CMD=\"lpr\" + XCOMM Include the above line in the DEFINES if you want to configure tgif + XCOMM to use a default print command. + XCOMM -DNOTR4MODE + XCOMM Include the above line in the DEFINES if you are running X11R3. + XCOMM This will cause tgif NOT to use some X11R4 window manager related + XCOMM functions that's not present in R3. + XCOMM -DMAPBEFORESELECT + XCOMM Include the above line in the DEFINES to call XMapWindow() before + XCOMM calling XSelectInput(). This might be needed to get around some + XCOMM server bugs. + XCOMM -DDONT_FREE_COLORMAP + XCOMM Include the above line in the DEFINES if you don't want the colormap + XCOMM to be freed when tgif exits. + XCOMM -DA4PAPER + XCOMM Include the above line in the DEFINES if you want to print on A4 paper + XCOMM (8.25in by 11.7in or about 21cm by 29.7cm). + *** Tgif.tmpl-linux.orig Mon Jan 4 19:50:39 1999 --- Tgif.tmpl-linux Mon Jan 4 19:50:39 1999 *************** *** 0 **** --- 1,220 ---- + XCOMM + XCOMM Author: William Chia-Wei Cheng (william@cs.ucla.edu) + XCOMM + XCOMM Copyright (C) 1990-1999, William Chia-Wei Cheng. + XCOMM + XCOMM Permission limited to the use, copy, display, distribute without + XCOMM charging for a fee, and produce derivative works of "tgif" and + XCOMM its documentation for not-for-profit purpose is hereby granted by + XCOMM the Author, provided that the above copyright notice appears in + XCOMM all copies made of "tgif" and that both the copyright notice + XCOMM and this permission notice appear in supporting documentation, + XCOMM and that the name of the Author not be used in advertising or + XCOMM publicity pertaining to distribution of the software without + XCOMM specific, written prior permission. The Author makes no + XCOMM representations about the suitability of this software for any + XCOMM purpose. It is provided "as is" without express or implied + XCOMM warranty. All other rights (including, but not limited to, the + XCOMM right to sell "tgif", the right to sell or distribute derivative + XCOMM works of "tgif", the right to distribute "tgif" for a fee, and + XCOMM the right to include "tgif" or derivative works of "tgif" in a + XCOMM for-sale product) are reserved by the Author. + XCOMM + XCOMM THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + XCOMM INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + XCOMM EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR + XCOMM CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + XCOMM USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + XCOMM OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + XCOMM PERFORMANCE OF THIS SOFTWARE. + XCOMM + XCOMM @(#)$Header: /mm/src/tgif/v4/RCS/Tgif.tmpl-linux,v 4.0 1999/01/04 23:28:06 william Exp $ + XCOMM + + #if ProjectX == 5 + #if BuildXimp + XIMPDEFINES = + #else + XIMPDEFINES = -D_NO_XIMP + #endif + #elif ProjectX > 5 + XIMPDEFINES = + #endif + + XCOMM On Solaris, you probably need to uncomment the next few lines: + XCOMM + XCOMM CC = cc + XCOMM PREPROCESSCMD = cc -E $(STD_CPP_DEFINES) + XCOMM EXTRA_LDOPTIONS = + XCOMM EXTRA_LIBRARIES = -lsocket -lnsl -lgen + XCOMM + XCOMM On IRIX, you probably need to uncomment the next few lines: + XCOMM + XCOMM OPTIMIZER = -O2 -Olimit 1500 + XCOMM EXTRA_LDOPTIONS = + + PROGRAMS = tgif XCOMM prtgif frontend11.o testdrive + XCOMM CDEBUGFLAGS= -g -Wall + XCOMM INSTPGMFLAGS= -s + XCOMM BINDIR = /u/halfmoon/bin + XCOMM MANPATH = /u/halfmoon/man + XCOMM TGIFDIR = /u/halfmoon/lib/X11/tgif + TGIFDIR = $(LIBDIR)/tgif + DIRDEFINES = -DTGIF_PATH=\"$(TGIFDIR)\" -DPSFILE_MOD=0664 \@@\ + -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@\ + -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" + EXTDEFINES = -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" \@@\ + -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" \@@\ + -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" \@@\ + -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" + MISCDEFINES = -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT + MOREDEFINES = + + XCOMM Things to try to add to the DEFINES line above: + XCOMM + XCOMM RS6000: -D_BSD + XCOMM Solaris: + XCOMM Irix: + XCOMM SunOS: + XCOMM HP-UX: -D_NO_LOCALE_SUPPORT + XCOMM VMS: -D_NO_GETTIMEOFDAY + XCOMM Linux: + XCOMM FreeBSD: + XCOMM SCO: -DPRINT_CMD=\""lp -o raw -o nobanner"\" + + DEPLIBS = $(DEPXLIB) + LOCAL_LIBRARIES = $(XLIB) + XCOMM LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) $(XLIB) + SYS_LIBRARIES = -ldl -lm + XCOMM SYS_LIBRARIES = -lm + + XCOMM -D_NO_XCIN + XCOMM Include the above line if you do not want to include the code + XCOMM that handles xcin. Please also remove "cli_xcin.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_CHINPUT + XCOMM Include the above line if you do not want to include the code + XCOMM that handles chinput. Please also remove "chinput.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_KINPUT + XCOMM Include the above line if you do not want to include the code + XCOMM that handles kinput. Please also remove "convkinput.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_XIM + XCOMM Include the above line if you do not want to include the code + XCOMM that handles X Input Method. Please also remove "convxim.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_NKF + XCOMM Include the above line if you do not want to include the code + XCOMM that handles Network Kanji Filter (NKF). Please also remove + XCOMM "nkf.o" from OBJ1 in Imakefile. + XCOMM -D_NO_DL_SUPPORT + XCOMM Include the above line if you don't have . If you define + XCOMM _NO_DL_SUPPORT, please use the SYS_LIBRARIES that does not contain + XCOMM -ldl above. + XCOMM -D_NO_LOCALE_SUPPORT + XCOMM Include the above line if you don't have . + XCOMM -D_METRIC_PIX_PER_INCH + XCOMM Include the above line if you want to use 127 pixels per inch + XCOMM when printing in the metric system. If this line is not + XCOMM included, 128 pixels per inch is used. + XCOMM -D_NO_GETTIMEOFDAY + XCOMM Include the above line if you do not have the gettimeofday() + XCOMM function but have the ftime() function. + XCOMM -D_TANGRAM_II + XCOMM Include the above line if you want to include the Tangram-II features + XCOMM by Carlos Fisch de Brito, Luiz Rogerio Goncalves de Carvalho, and + XCOMM Denise Jorge de Oliveira of the + XCOMM Tangram-II team of the Universidade Federal do Rio de Janeiro. These + XCOMM features are under development and highly experimental. + XCOMM -D_TGIF_WB + XCOMM Include the above line if you want to include the whiteboard feature + XCOMM by Renato Santana . This feature is under + XCOMM development and highly experimental. + XCOMM -DBSD_COMP + XCOMM Include the above line if you are compiling on a Solaris (or + XCOMM possibly an SGI) machine which requires it in . + XCOMM (If you see the error that FIONBIO is not defined when compiling + XCOMM tcp.c, then you probably need this.) + XCOMM -D_BACKGROUND_DONT_FORK + XCOMM Try the above line if there are defunct tgif child processes. + XCOMM -D_NO_LSTAT + XCOMM Include the above line if lstat() is not available. In this case, + XCOMM using BrowseXBitmap and BrowseXPixmap under the File Menu may cause + XCOMM infinite loop if the directory structure is infinitely recursive. + XCOMM -D_USE_XDRAWPOINT_TO_PUT_A_POINT + XCOMM Include the above line if the grid points are not visible. This can + XCOMM be used to bypass some X server bugs (such as certain Linux X server + XCOMM using VGA16 screen) where the XDrawLine() Xlib call does not work + XCOMM properly. + XCOMM -D_NO_EXTERN (obsoleted) + XCOMM Include the above line in the DEFINES if you don't want to include + XCOMM the extern definition for functions defined in a module. For example, + XCOMM if this option is set, then file "foo.c" will not include "foo.e", + XCOMM and certain other extern definition in "foo.c" will be omitted. + XCOMM -D_NO_PROTO + XCOMM Include the above line in the DEFINES if checking for function + XCOMM prototypes is not desired. Checking for function prototypes + XCOMM are automatically enabled if you are using an ANSI or C++ compilor. + XCOMM However, not all ANSI/C++ compilors are created equal. + XCOMM -D_BSD + XCOMM Include the above line in the DEFINES if the select() function can + XCOMM does not be found for AIX systems (such as RS6000). Also, on AIX + XCOMM systems, if you see garbage file names when you try to open files, + XCOMM try this flag to make direct and dirent equivalent (in ). + XCOMM -DNO_STRSTR + XCOMM Include the above line in the DEFINES if you do not have the strstr() + XCOMM function in your system's string library. + XCOMM -DINVERT_CTM_BUG + XCOMM Include the above line in the DEFINES if you are using PostScript + XCOMM utilities which fails when trying to invert non-invertible CTM + XCOMM (e.g., muluti.ps from ftp.ucc.su.oz.au:/pub/ps_printing/multi). + XCOMM -DHP_LINE_BUG + XCOMM Include the above line in the DEFINES if two-vertices horizontal and + XCOMM verticle line segments don't draw properly on a buggy HP server. + XCOMM -DDONTFREECOLORS + XCOMM Include the above line in the DEFINES if you don't want the black and + XCOMM the white colors to be freed when tgif initializes itself. You should + XCOMM not need to do this unless you need to get around some server bugs. + XCOMM -DUSE_XAPPLRESDIR + XCOMM Include the above line in the DEFINES if $XAPPLRESDIR/Tgif is used to + XCOMM specify the resource file. If your system does not have putenv() + XCOMM (such as IBM-RT), then this won't work. + XCOMM -DXAPPLOADDIR_DEF + XCOMM If you define USE_XAPPLRESDIR, define this to a default directory + XCOMM to use in case $XAPPLRESDIR isn't set. + XCOMM -DUSE_XT_INITIALIZE + XCOMM This will cause the XToolkit to be initialized so that the X defaults + XCOMM are obtained from the Xt directories. This should only be used when + XCOMM USE_XAPPLRESDIR option is NOT used. Please remember to use the + XCOMM LOCAL_LIBRARIES with $(XTOOLLIB) $(XMULIB) above. + XCOMM -DNO_THIN_LINE + XCOMM Include the above line in the DEFINES if a line width of 0 causes + XCOMM your server to crash. This is to get around a bug in some X servers. + XCOMM -DTHIN_OVAL_AND_ARC + XCOMM Include the above line in the DEFINES if you want 0 width arcs to + XCOMM be used when the width of an arc is less than or equal to 1. + XCOMM (Sun3 server has a bug that makes drawing ovals and arcs with + XCOMM width other than 0 VERY slow). + XCOMM -DKEEP_WHEN_PRINT + XCOMM Include the above line in the DEFINES if you don't want the temp + XCOMM file to be deleted after sending the print job to the printer. + XCOMM (Some VMS systems might require this flag to be used.) + XCOMM -DPRINT_CMD=\"lpr\" + XCOMM Include the above line in the DEFINES if you want to configure tgif + XCOMM to use a default print command. + XCOMM -DNOTR4MODE + XCOMM Include the above line in the DEFINES if you are running X11R3. + XCOMM This will cause tgif NOT to use some X11R4 window manager related + XCOMM functions that's not present in R3. + XCOMM -DMAPBEFORESELECT + XCOMM Include the above line in the DEFINES to call XMapWindow() before + XCOMM calling XSelectInput(). This might be needed to get around some + XCOMM server bugs. + XCOMM -DDONT_FREE_COLORMAP + XCOMM Include the above line in the DEFINES if you don't want the colormap + XCOMM to be freed when tgif exits. + XCOMM -DA4PAPER + XCOMM Include the above line in the DEFINES if you want to print on A4 paper + XCOMM (8.25in by 11.7in or about 21cm by 29.7cm). + *** Tgif.tmpl-solaris.orig Mon Jan 4 19:50:40 1999 --- Tgif.tmpl-solaris Mon Jan 4 19:50:40 1999 *************** *** 0 **** --- 1,220 ---- + XCOMM + XCOMM Author: William Chia-Wei Cheng (william@cs.ucla.edu) + XCOMM + XCOMM Copyright (C) 1990-1999, William Chia-Wei Cheng. + XCOMM + XCOMM Permission limited to the use, copy, display, distribute without + XCOMM charging for a fee, and produce derivative works of "tgif" and + XCOMM its documentation for not-for-profit purpose is hereby granted by + XCOMM the Author, provided that the above copyright notice appears in + XCOMM all copies made of "tgif" and that both the copyright notice + XCOMM and this permission notice appear in supporting documentation, + XCOMM and that the name of the Author not be used in advertising or + XCOMM publicity pertaining to distribution of the software without + XCOMM specific, written prior permission. The Author makes no + XCOMM representations about the suitability of this software for any + XCOMM purpose. It is provided "as is" without express or implied + XCOMM warranty. All other rights (including, but not limited to, the + XCOMM right to sell "tgif", the right to sell or distribute derivative + XCOMM works of "tgif", the right to distribute "tgif" for a fee, and + XCOMM the right to include "tgif" or derivative works of "tgif" in a + XCOMM for-sale product) are reserved by the Author. + XCOMM + XCOMM THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + XCOMM INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + XCOMM EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR + XCOMM CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + XCOMM USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + XCOMM OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + XCOMM PERFORMANCE OF THIS SOFTWARE. + XCOMM + XCOMM @(#)$Header: /mm/src/tgif/v4/RCS/Tgif.tmpl-solaris,v 4.0 1999/01/04 23:28:06 william Exp $ + XCOMM + + #if ProjectX == 5 + #if BuildXimp + XIMPDEFINES = + #else + XIMPDEFINES = -D_NO_XIMP + #endif + #elif ProjectX > 5 + XIMPDEFINES = + #endif + + XCOMM On Solaris, you probably need to uncomment the next few lines: + XCOMM + CC = cc + PREPROCESSCMD = cc -E $(STD_CPP_DEFINES) + EXTRA_LDOPTIONS = + EXTRA_LIBRARIES = -lsocket -lnsl -lgen + XCOMM + XCOMM On IRIX, you probably need to uncomment the next few lines: + XCOMM + XCOMM OPTIMIZER = -O2 -Olimit 1500 + XCOMM EXTRA_LDOPTIONS = + + PROGRAMS = tgif XCOMM prtgif frontend11.o testdrive + XCOMM CDEBUGFLAGS= -g + XCOMM INSTPGMFLAGS= -s + XCOMM BINDIR = /u/halfmoon/bin + XCOMM MANPATH = /u/halfmoon/man + XCOMM TGIFDIR = /u/halfmoon/lib/X11/tgif + TGIFDIR = $(LIBDIR)/tgif + DIRDEFINES = -DTGIF_PATH=\"$(TGIFDIR)\" -DPSFILE_MOD=0664 \@@\ + -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \@@\ + -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" + EXTDEFINES = -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" \@@\ + -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" \@@\ + -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" \@@\ + -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" + MISCDEFINES = -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT + MOREDEFINES = + + XCOMM Things to try to add to the DEFINES line above: + XCOMM + XCOMM RS6000: -D_BSD + XCOMM Solaris: + XCOMM Irix: + XCOMM SunOS: + XCOMM HP-UX: -D_NO_LOCALE_SUPPORT + XCOMM VMS: -D_NO_GETTIMEOFDAY + XCOMM Linux: + XCOMM FreeBSD: + XCOMM SCO: -DPRINT_CMD=\""lp -o raw -o nobanner"\" + + DEPLIBS = $(DEPXLIB) + LOCAL_LIBRARIES = $(XLIB) + XCOMM LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) $(XLIB) + SYS_LIBRARIES = -ldl -lm + XCOMM SYS_LIBRARIES = -lm + + XCOMM -D_NO_XCIN + XCOMM Include the above line if you do not want to include the code + XCOMM that handles xcin. Please also remove "cli_xcin.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_CHINPUT + XCOMM Include the above line if you do not want to include the code + XCOMM that handles chinput. Please also remove "chinput.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_KINPUT + XCOMM Include the above line if you do not want to include the code + XCOMM that handles kinput. Please also remove "convkinput.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_XIM + XCOMM Include the above line if you do not want to include the code + XCOMM that handles X Input Method. Please also remove "convxim.o" from + XCOMM OBJ1 in Imakefile. + XCOMM -D_NO_NKF + XCOMM Include the above line if you do not want to include the code + XCOMM that handles Network Kanji Filter (NKF). Please also remove + XCOMM "nkf.o" from OBJ1 in Imakefile. + XCOMM -D_NO_DL_SUPPORT + XCOMM Include the above line if you don't have . If you define + XCOMM _NO_DL_SUPPORT, please use the SYS_LIBRARIES that does not contain + XCOMM -ldl above. + XCOMM -D_NO_LOCALE_SUPPORT + XCOMM Include the above line if you don't have . + XCOMM -D_METRIC_PIX_PER_INCH + XCOMM Include the above line if you want to use 127 pixels per inch + XCOMM when printing in the metric system. If this line is not + XCOMM included, 128 pixels per inch is used. + XCOMM -D_NO_GETTIMEOFDAY + XCOMM Include the above line if you do not have the gettimeofday() + XCOMM function but have the ftime() function. + XCOMM -D_TANGRAM_II + XCOMM Include the above line if you want to include the Tangram-II features + XCOMM by Carlos Fisch de Brito, Luiz Rogerio Goncalves de Carvalho, and + XCOMM Denise Jorge de Oliveira of the + XCOMM Tangram-II team of the Universidade Federal do Rio de Janeiro. These + XCOMM features are under development and highly experimental. + XCOMM -D_TGIF_WB + XCOMM Include the above line if you want to include the whiteboard feature + XCOMM by Renato Santana . This feature is under + XCOMM development and highly experimental. + XCOMM -DBSD_COMP + XCOMM Include the above line if you are compiling on a Solaris (or + XCOMM possibly an SGI) machine which requires it in . + XCOMM (If you see the error that FIONBIO is not defined when compiling + XCOMM tcp.c, then you probably need this.) + XCOMM -D_BACKGROUND_DONT_FORK + XCOMM Try the above line if there are defunct tgif child processes. + XCOMM -D_NO_LSTAT + XCOMM Include the above line if lstat() is not available. In this case, + XCOMM using BrowseXBitmap and BrowseXPixmap under the File Menu may cause + XCOMM infinite loop if the directory structure is infinitely recursive. + XCOMM -D_USE_XDRAWPOINT_TO_PUT_A_POINT + XCOMM Include the above line if the grid points are not visible. This can + XCOMM be used to bypass some X server bugs (such as certain Linux X server + XCOMM using VGA16 screen) where the XDrawLine() Xlib call does not work + XCOMM properly. + XCOMM -D_NO_EXTERN (obsoleted) + XCOMM Include the above line in the DEFINES if you don't want to include + XCOMM the extern definition for functions defined in a module. For example, + XCOMM if this option is set, then file "foo.c" will not include "foo.e", + XCOMM and certain other extern definition in "foo.c" will be omitted. + XCOMM -D_NO_PROTO + XCOMM Include the above line in the DEFINES if checking for function + XCOMM prototypes is not desired. Checking for function prototypes + XCOMM are automatically enabled if you are using an ANSI or C++ compilor. + XCOMM However, not all ANSI/C++ compilors are created equal. + XCOMM -D_BSD + XCOMM Include the above line in the DEFINES if the select() function can + XCOMM does not be found for AIX systems (such as RS6000). Also, on AIX + XCOMM systems, if you see garbage file names when you try to open files, + XCOMM try this flag to make direct and dirent equivalent (in ). + XCOMM -DNO_STRSTR + XCOMM Include the above line in the DEFINES if you do not have the strstr() + XCOMM function in your system's string library. + XCOMM -DINVERT_CTM_BUG + XCOMM Include the above line in the DEFINES if you are using PostScript + XCOMM utilities which fails when trying to invert non-invertible CTM + XCOMM (e.g., muluti.ps from ftp.ucc.su.oz.au:/pub/ps_printing/multi). + XCOMM -DHP_LINE_BUG + XCOMM Include the above line in the DEFINES if two-vertices horizontal and + XCOMM verticle line segments don't draw properly on a buggy HP server. + XCOMM -DDONTFREECOLORS + XCOMM Include the above line in the DEFINES if you don't want the black and + XCOMM the white colors to be freed when tgif initializes itself. You should + XCOMM not need to do this unless you need to get around some server bugs. + XCOMM -DUSE_XAPPLRESDIR + XCOMM Include the above line in the DEFINES if $XAPPLRESDIR/Tgif is used to + XCOMM specify the resource file. If your system does not have putenv() + XCOMM (such as IBM-RT), then this won't work. + XCOMM -DXAPPLOADDIR_DEF + XCOMM If you define USE_XAPPLRESDIR, define this to a default directory + XCOMM to use in case $XAPPLRESDIR isn't set. + XCOMM -DUSE_XT_INITIALIZE + XCOMM This will cause the XToolkit to be initialized so that the X defaults + XCOMM are obtained from the Xt directories. This should only be used when + XCOMM USE_XAPPLRESDIR option is NOT used. Please remember to use the + XCOMM LOCAL_LIBRARIES with $(XTOOLLIB) $(XMULIB) above. + XCOMM -DNO_THIN_LINE + XCOMM Include the above line in the DEFINES if a line width of 0 causes + XCOMM your server to crash. This is to get around a bug in some X servers. + XCOMM -DTHIN_OVAL_AND_ARC + XCOMM Include the above line in the DEFINES if you want 0 width arcs to + XCOMM be used when the width of an arc is less than or equal to 1. + XCOMM (Sun3 server has a bug that makes drawing ovals and arcs with + XCOMM width other than 0 VERY slow). + XCOMM -DKEEP_WHEN_PRINT + XCOMM Include the above line in the DEFINES if you don't want the temp + XCOMM file to be deleted after sending the print job to the printer. + XCOMM (Some VMS systems might require this flag to be used.) + XCOMM -DPRINT_CMD=\"lpr\" + XCOMM Include the above line in the DEFINES if you want to configure tgif + XCOMM to use a default print command. + XCOMM -DNOTR4MODE + XCOMM Include the above line in the DEFINES if you are running X11R3. + XCOMM This will cause tgif NOT to use some X11R4 window manager related + XCOMM functions that's not present in R3. + XCOMM -DMAPBEFORESELECT + XCOMM Include the above line in the DEFINES to call XMapWindow() before + XCOMM calling XSelectInput(). This might be needed to get around some + XCOMM server bugs. + XCOMM -DDONT_FREE_COLORMAP + XCOMM Include the above line in the DEFINES if you don't want the colormap + XCOMM to be freed when tgif exits. + XCOMM -DA4PAPER + XCOMM Include the above line in the DEFINES if you want to print on A4 paper + XCOMM (8.25in by 11.7in or about 21cm by 29.7cm). +