97/08/06 K.Fujii Original from: ftp://preprints.cern.ch/electronic/xviewer/xtiff/xtiff.tar.gz ------------------------------------------------------------------------------- Modifications for MkLinux ------------------------------------------------------------------------------- (1) help.c Window size adjusted to work with Xaw3d. (2) makefile Modified to use installed tiff-v3.4beta036 library and header files instead of v1.14 coming with the xtiff source package. Added install as a make target. (3) transform.c Modified function prototypes to match the actual implementations. (4) xtiff.c Window size adjusted to work with Xaw3d. Reset zoomMemory to NULL after invoking XDestroyImage, since otherwise it causes segmentation fault. ------------------------------------------------------------------------------- General Notes from Original Distribution ------------------------------------------------------------------------------- xtiff for cern preprints, release notes this is the first release of a modified version of xtiff, a tiff file viewer for the x windowing system, adapted for use with cern scanned preprints. additional features to the previous version of xtiff are: o a new interface, via a button bar rather than a selectable text list, o more information about the tiff document being viewed, o some help on how to operate the program (ie a `help' button), o improved navigation through multi-paged tiff documents (go to beginning, go to end, go to arbitrary page), o functions to shrink displayed pages of the tiff document to fit more text/image into the program window (plus functions to grow them back again), and o functions to rotate the pages of the tiff document to 90, 180 and 270 degrees (and to return them to their original orientation). the new interface was added to make the program easier to use (& support). the grow/shrink functions were added to allow more of the document to be read without grabbing and moving the image or expanding the program window. the rotation functions were added because some early papers may have been scanned `sideways' and quite a few papers have full-page diagrams that are at a different rotation to the body of the text you should have the following files help.c --+ transform.c | xtiff.c | the source code for the program buttons.h | xtifficon.h | endhelp.h --+ makefile rules for building that source into xtiff collate-buttons script to create buttons.h from iconedit files decollate-buttons script to split buttons.h into iconedit files general.notes this file make.notes notes on building xtiff xtiff.notes notes on running xtiff buttons.notes notes on changing xtiff's interface README everything's got to have one bugreport.notes everything's got to have one of these, too libtiff.tar.Z the libtiff package this is a preliminary release, so there are bugs in it (see xtiff.notes) (also bugreport.notes) comments, suggestions to dave@preprints.cern.ch (until august 1995), if you're reporting or complaining about a bug, please consult the file bugreport.notes, which details the information to send re the bug. legal stuff previous version of xtiff: /* * xtiff - view a TIFF file in an X window * * Dan Sears * Chris Sears * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * */ libtiff: /* * Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler * Copyright (c) 1991, 1992 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear in * all copies of the software and related documentation, and (ii) the names of * Sam Leffler and Silicon Graphics may not be used in any advertising or * publicity relating to the software without the specific, prior written * permission of Sam Leffler and Silicon Graphics. * * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. * * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. */ general.notes