home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-05-26 | 73.4 KB | 2,072 lines |
- Newsgroups: comp.sources.x
- From: envbvs@epb9.lbl.gov (Brian V. Smith)
- Subject: v19i115: xfig - Draw amd manipulate objects in an X-Window, Part03/27
- Message-ID: <1993May21.021244.5049@sparky.imd.sterling.com>
- X-Md4-Signature: 106d45307c304d89a320139aeb2d45c9
- Sender: chris@sparky.imd.sterling.com (Chris Olson)
- Organization: Sterling Software
- Date: Fri, 21 May 1993 02:12:44 GMT
- Approved: chris@sparky.imd.sterling.com
-
- Submitted-by: envbvs@epb9.lbl.gov (Brian V. Smith)
- Posting-number: Volume 19, Issue 115
- Archive-name: xfig/part03
- Environment: X11
- Supersedes: xfig: Volume 16, Issue 6-30,39
-
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of archive 3 (of 27)."
- # Contents: Examples/deltat.fig.uu Examples/filenames.fig.uu
- # Examples/flowchart.fig.uu Examples/gold.fig.uu
- # Examples/network.fig.uu Examples/resistor.fig.uu
- # Examples/splinefill.fig.uu Examples/window2.fig.uu d_arc.c
- # e_convert.c e_copy.c mode.h u_fonts.c u_free.c w_grid.c w_zoom.c
- # Wrapped by envbvs@epb9.lbl.gov.lbl.gov on Mon May 3 12:05:46 1993
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'Examples/deltat.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/deltat.fig.uu'\"
- else
- echo shar: Extracting \"'Examples/deltat.fig.uu'\" \(3611 characters\)
- sed "s/^X//" >'Examples/deltat.fig.uu' <<'END_OF_FILE'
- Xbegin 444 deltat.fig
- XM(T9)1R`R+C$*.#`@,@HR(#$@,"`Q("TQ(#`@,"`P(#`N,#`P(#`@,"`P"@D@
- XM,S4T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B`P("TQ(#`@,"XP,#`@-"`V(#8@,3$T(#,R-"!O`0HT(#`@,"`Q,B`P
- XM("TQ(#`@,"XP,#`@-"`W(#0@-#0T(#$V.2!T`0HT(#`@,"`Q,B`P("TQ(#`@
- XM,"XP,#`@-"`W(#0@,3`Y(#,Q.2!T`0HT(#$@,"`Q,B`P("TQ(#`@,"XP,#`@
- XM-"`V(#8@,S8R(#,X."!O`0HT(#$@,"`Q,B`P("TQ(#`@,"XP,#`@-"`Y(#@@
- XM,S4T(#,X-"!2`0HT(#$@,"`Q,B`P("TQ(#`@,"XP,#`@-"`Y(#$T(#(W.2`S
- XM.#0@9%(!"C0@,2`P(#$T(#`@+3$@,"`P+C`P,"`T(#(@,R`T,C0@,C8T("X!
- XM"C0@,"`P(#$R(#`@+3$@,"`P+C`P,"`T(#D@."`T-30@,S@T(%(!"C0@,2`P
- XM(#$R(#`@+3$@,"`P+C`P,"`T(#8@.2`T,C0@,C<T(&T!"C0@,"`P(#$R(#`@
- XM+3$@,"`P+C`P,"`T(#D@,30@,C<T(#$P.2!D4@$*-"`P(#`@,3(@,"`M,2`P
- XC(#`N,#`P(#0@,3(@-#<@,C4Y(#0W-"!C<F%C:RYF:6<V`0H@
- X`
- Xend
- END_OF_FILE
- if test 3611 -ne `wc -c <'Examples/deltat.fig.uu'`; then
- echo shar: \"'Examples/deltat.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/deltat.fig.uu'
- fi
- if test -f 'Examples/filenames.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/filenames.fig.uu'\"
- else
- echo shar: Extracting \"'Examples/filenames.fig.uu'\" \(4318 characters\)
- sed "s/^X//" >'Examples/filenames.fig.uu' <<'END_OF_FILE'
- Xbegin 444 filenames.fig
- XM(T9)1R`R+C$*.#`@,@HR(#$@,"`Q("TQ(#`@,"`P(#`N,#`P(#`@,"`P"@D@
- XM,3,Y(#$W.2`Q,SD@,3$T(#DY.3D@.3DY.0HR(#$@,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`S.30@9"`](%)E9"!";'5F9@$*-"`P(#`@,3(@,"`M,2`P
- XM(#`N,#`P(#0@,3(@-S<@.#0@,S<Y(&,@/2!,;VYG($)E86-H`0HT(#`@,"`Q
- XM,B`P("TQ(#`@,"XP,#`@-"`Y(#@V(#@T(#,V-"!B(#T@3&%K92!#:&%R;&5S
- XM`0HT(#`@,"`Q,B`P("TQ(#`@,"XP,#`@-"`Y(#4S(#@T(#,T.2!A(#T@07)C
- X%871A`0H@
- X`
- Xend
- END_OF_FILE
- if test 4318 -ne `wc -c <'Examples/filenames.fig.uu'`; then
- echo shar: \"'Examples/filenames.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/filenames.fig.uu'
- fi
- if test -f 'Examples/flowchart.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/flowchart.fig.uu'\"
- else
- echo shar: Extracting \"'Examples/flowchart.fig.uu'\" \(4230 characters\)
- sed "s/^X//" >'Examples/flowchart.fig.uu' <<'END_OF_FILE'
- Xbegin 444 flowchart.fig
- XM(T9)1R`R+C$*.#`@,@HR(#(@,"`Q("TQ(#`@,"`P(#`N,#`P(#`@,"`P"@D@
- XM-#<T(#4T.2`T-S0@-3<Y(#8P-"`U-SD@-C`T(#4T.2`T-S0@-30Y(#DY.3D@
- XM.3DY.0HR(#0@,"`R("TQ(#`@,"`P(#`N,#`P(#<@,"`P"@D@,3DY(#$W-"`Q
- XM.3D@,C,T(#,Y.2`R,S0@,SDY(#$W-"`Q.3D@,3<T(#DY.3D@.3DY.0HR(#0@
- XM,"`R("TQ(#`@,"`P(#`N,#`P(#<@,"`P"@D@,3DY(#(W-"`Q.3D@,S,T(#,Y
- XM.2`S,S0@,SDY(#(W-"`Q.3D@,C<T(#DY.3D@.3DY.0HR(#0@,"`R("TQ(#`@
- XM,"`P(#`N,#`P(#<@,"`P"@D@,3DY(#,W-"`Q.3D@-#,T(#,Y.2`T,S0@,SDY
- XM(#,W-"`Q.3D@,S<T(#DY.3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`@,"XP,#`@-"`Q,R`Q,3D@
- XM-3(T(#,Y-"`T+C(N-B`@3&%R9V4@3W!E;FEN9P$*-"`P(#`@,30@,"`M,2`P
- XM(#`N,#`P(#0@,3`@,3(P(#(P-"`S.30@-"XR+C4@1FQO=R!#;VYT<F]L;&5R
- XM`0HT(#`@,"`Q-"`P("TQ(#`@,"XP,#`@-"`Q,"`V,2`U,C0@,CDT(#0N,BXT
- XM("!$=6-T`0HT(#`@,"`Q-"`P("TQ(#`@,"XP,#`@-"`Q,"`U-2`R,#0@,CDT
- XM(#0N,BXS("!&86X!"C0@,"`P(#$T(#`@+3$@,"`P+C`P,"`T(#$P(#$S,2`U
- XM,C0@,3DT(#0N,BXR("!#;VUB:6YE9"!#<F%C:P$*-"`P(#`@,30@,"`M,2`P
- XM(#`N,#`P(#0@,3,@,3$Q(#(P-"`Q.30@-"XR+C$@(%-I;7!L92!#<F%C:P$*
- XM-"`P(#`@,30@,"`M,2`P(#`N,#`P(#0@,3`@.#<@-#<Y(#4V.2!!;&P@4&%R
- XM86UE=&5R<P$*-"`P(#`@,30@,"`M,2`P(#`N,#`P(#0@,3`@,S`@,S4Y(#DT
- XM(#0N,BXP(`$*-"`P(#`@,30@,"`M,2`P(#`N,#`P(#0@,3`@.#<@,3,Y(#<T
- XM($%L;"!087)A;65T97)S`0HT(#`@,"`Q-"`P("TQ(#`@,"XP,#`@-"`Q,"`X
- XM,R`T,3D@.30@4V5L96-T($UO9'5L90$*-"`P(#`@,30@,"`M,2`P(#`N,#`P
- X@(#0@,3,@-S@@-#$Y(#$Q.2!F;W(@3&EN:R!4>7!E`0H@
- X`
- Xend
- END_OF_FILE
- if test 4230 -ne `wc -c <'Examples/flowchart.fig.uu'`; then
- echo shar: \"'Examples/flowchart.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/flowchart.fig.uu'
- fi
- if test -f 'Examples/gold.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/gold.fig.uu'\"
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`Q,B`P("TQ(#`@,"XP,#`@-"`Y(#$Q(#$X.2`Q.#0@."(!"C0@
- XM,2`P(#$X(#`@+3$@,"`P+C`P,"`T(#$W(#,U."`S-#D@,3(T($AO=R!T;R!C
- XI<F5A=&4@;6%T=&5R("AU<VEN9R!G;VQD(&%S(&%N(&5X86UP;&4I`0IT
- X`
- Xend
- END_OF_FILE
- if test 3989 -ne `wc -c <'Examples/gold.fig.uu'`; then
- echo shar: \"'Examples/gold.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/gold.fig.uu'
- fi
- if test -f 'Examples/network.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/network.fig.uu'\"
- else
- echo shar: Extracting \"'Examples/network.fig.uu'\" \(3988 characters\)
- sed "s/^X//" >'Examples/network.fig.uu' <<'END_OF_FILE'
- Xbegin 444 network.fig
- XM(T9)1R`R+C$*.#`@,@HQ(#,@,"`Q("TQ(#`@,"`R,2`P+C`P,"`Q(#`N,#`P
- XM(#(W.2`Q.2`S(#,@,C<Y(#$Y(#(X,2`R,`HQ(#,@,"`Q("TQ(#`@,"`R,2`P
- XM+C`P,"`Q(#`N,#`P(#0S.2`Q.2`S(#,@-#,Y(#$Y(#0T,2`R,`HQ(#,@,"`Q
- XM("TQ(#`@,"`R,2`P+C`P,"`Q(#`N,#`P(#4Y.2`Q.2`S(#,@-3DY(#$Y(#8P
- XM,2`R,`HQ(#,@,"`Q("TQ(#`@,"`R,2`P+C`P,"`Q(#`N,#`P(#0S.2`Q-3D@
- XM,R`S(#0S.2`Q-3D@-#0Q(#$V,`HQ(#,@,"`Q("TQ(#`@,"`R,2`P+C`P,"`Q
- XM(#`N,#`P(#(W.2`R.3D@,R`S(#(W.2`R.3D@,C@Q(#,P,`HQ(#,@,"`Q("TQ
- XM(#`@,"`R,2`P+C`P,"`Q(#`N,#`P(#0S.2`R.3D@,R`S(#0S.2`R.3D@-#0Q
- XM(#,P,`HQ(#,@,"`Q("TQ(#`@,"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4@-#$T($0W`0HT(#`@,"`Q
- XM,B`P("TQ(#`@,"XP,#`@-"`Y(#0@,C8R(#,P,B!)`0HT(#`@,"`Q,B`P("TQ
- XM(#`@,"XP,#`@-"`Y(#$R(#8P.2`S,#(@24E)`0HT(#`@,"`Q,B`P("TQ(#`@
- XM,"XP,#`@-"`Y(#$U(#4R-2`R-SD@1#8!"C0@,"`P(#$R(#`@+3$@,"`P+C`P
- XM,"`T(#D@,3,@-#0Y(#(X.2!)5@$*-"`P(#`@,3(@,"`M,2`P(#`N,#`P(#0@
- XM.2`Q-2`S-#0@,C<Y($0T`0HT(#`@,"`Q,B`P("TQ(#`@,"XP,#`@-"`Y(#$U
- XM(#0P-2`R,SD@1#4!"C0@,"`P(#$R(#`@+3$@,"`P+C`P,"`T(#D@."`T-#D@
- XM,38S($E)`0HT(#`@,"`Q,B`P("TQ(#`@,"XP,#`@-"`Y(#$U(#4V-2`Y-"!$
- XM,P$*-"`P(#`@,3(@,"`M,2`P(#`N,#`P(#0@.2`Q-2`T,#4@.30@1#(!"C0@
- XF,"`P(#$R(#`@+3$@,"`P+C`P,"`T(#D@,34@,C0U(#DT($0Q`0H@
- X`
- Xend
- END_OF_FILE
- if test 3988 -ne `wc -c <'Examples/network.fig.uu'`; then
- echo shar: \"'Examples/network.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/network.fig.uu'
- fi
- if test -f 'Examples/resistor.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/resistor.fig.uu'\"
- else
- echo shar: Extracting \"'Examples/resistor.fig.uu'\" \(3585 characters\)
- sed "s/^X//" >'Examples/resistor.fig.uu' <<'END_OF_FILE'
- Xbegin 444 resistor.fig
- XM(T9)1R`R+C$*.#`@,@HQ(#,@,"`Q("TQ(#`@,"`P(#`N,#`P(#$@,"XP,#`@
- XM,C0Y(#$T.2`Q,2`Q,2`R-#D@,30Y(#(U.2`Q-30*,2`T(#`@,2`M,2`P(#`@
- XM,C$@,"XP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,"`P("TQ(#`@
- XM,"XP,#`@-"`Y(#0Q(#0P-"`R-S0@96YV96QO<&4Q`0HT(#$@,"`Q,B`P("TQ
- XM(#`@,"XP,#`@-"`Y(#@@,S8T(#$T.2!2`0HT(#`@,"`Q,"`P("TQ(#`@,"XP
- XM,#`@-"`Y(#,S(#,V.2`Q-30@<W5P<&QY,0$*-"`Q(#`@,3(@,"`M,2`P(#`N
- XM,#`P(#0@.2`X(#DY(#$T.2!2`0HT(#`@,"`Q,"`P("TQ(#`@,"XP,#`@-"`Y
- XM(#,S(#$P-"`Q-30@<W5P<&QY,@$*-"`P(#`@,3`@,"`M,2`P(#`N,#`P(#0@
- XM.2`T,2`T.2`R-S0@96YV96QO<&4R`0HT(#$@,"`Q,B`P("TQ(#`@,"XP,#`@
- XM-"`Y(#@@-#0@,C8Y(%(!"C0@,2`P(#$R(#`@+3$@,"`P+C`P,"`T(#D@."`R
- XM,CD@,S$Y(%(!"C0@,"`P(#$P(#`@+3$@,"`P+C`P,"`T(#<@,SD@,C,T(#,R
- X--"!I;G1E<GIO;F4!"B`P
- X`
- Xend
- END_OF_FILE
- if test 3585 -ne `wc -c <'Examples/resistor.fig.uu'`; then
- echo shar: \"'Examples/resistor.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/resistor.fig.uu'
- fi
- if test -f 'Examples/splinefill.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/splinefill.fig.uu'\"
- else
- echo shar: Extracting \"'Examples/splinefill.fig.uu'\" \(3537 characters\)
- sed "s/^X//" >'Examples/splinefill.fig.uu' <<'END_OF_FILE'
- Xbegin 444 splinefill.fig
- XM(T9)1R`R+C$*.#`@,@HS(#,@,2`Q("TQ(#`@,"`P(#`N,#`P(#`@,`H)(#$T
- XM,"`U-38@,C,S(#4U-"`R,3@@-3(U(#$U."`T-S0@,3<Q(#4P,R`S,SD@-#,X
- XM(#(T."`S,S,@,S`Q(#(W,"`S.#(@,C0X(#(W,B`R,S4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Y.0HS
- XM(#$@,2`Q("TQ(#$@,"`W(#`N,#`P(#`@,`H)(#0S-R`U,S$@,C<X(#4P-"`R
- XM-3,@-3(S(#,X-R`U-#8@,S8X(#4Q,2`S-C4@,SDY(#0V,B`T,SD@,S<S(#0X
- XM."`R,S(@-#DT(#(X,"`V,#8@-#8R(#4V-2`T,C8@-#8S(#,S-R`S.#8@-3,Y
- XM(#,P-B`V,#`@,C<X(#0P-B`Q,SD@-#(U(#,U-2`R-3D@-3$P(#0X-"`U-C4@
- XM-#$Y(#4P-R`S-3$@,S`Y(#4U-"`R,#<@-#,W(#4S,2`Y.3DY(#DY.3D*,R`P
- XM(#(@,2`M,2`Q(#`@,R`P+C`P,"`P(#`*"2`V,C$@-#0X(#4Q,R`U,#@@-3DW
- X7(#4V,2`W,SD@-#DW(#DY.3D@.3DY.0H*
- X`
- Xend
- END_OF_FILE
- if test 3537 -ne `wc -c <'Examples/splinefill.fig.uu'`; then
- echo shar: \"'Examples/splinefill.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/splinefill.fig.uu'
- fi
- if test -f 'Examples/window2.fig.uu' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Examples/window2.fig.uu'\"
- else
- echo shar: Extracting \"'Examples/window2.fig.uu'\" \(3522 characters\)
- sed "s/^X//" >'Examples/window2.fig.uu' <<'END_OF_FILE'
- Xbegin 444 window2.fig
- XM(T9)1R`R+C$*.#`@,@HU(#$@,"`Q("TQ(#`@,"`P(#`N,#`P(#`@,2`P(#(N
- XM,3$Y(#(R,2XS-C<@-#D@,3$Y(#DY(#$V-"`Q,30@,C,T"@DP(#`@,2XP,#`@
- XM-"XP,#`@."XP,#`*-2`Q(#`@,2`M,2`P(#`@,"`P+C`P,"`P(#$@,"`Q,2XU
- XM,#`@-#$T+C`P,"`Q,C0@-#,Y(#DY(#0X.2`U.2`U,3D*"3`@,"`Q+C`P,"`T
- XM+C`P,"`X+C`P,`HR(#$@,"`Q("TQ(#`@,"`P(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`0HT(#`@,"`Q,"`P("TQ
- XM(#`@,"XP,#`@-"`W(#4@,C8R(#$S,2`R`0HT(#`@,"`Q,B`P("TQ(#`@,"XP
- XM,#`@-"`W(#0@,C4U(#$R-B!T`0HT(#`@,"`Q,"`P("TQ(#`@,"XP,#`@-"`W
- XM(#4@,38P(#$S,B`Q`0HT(#`@,"`Q,B`P("TQ(#`@,"XP,#`@-"`W(#0@,34T
- XM(#$R-R!T`0HT(#`@,"`Q,B`P("TQ(#`@,"XP,#`@-"`Q,B`T-R`Q-CD@-C,T
- X-(&-R86-K+F9I9S0!"B`Q
- X`
- Xend
- END_OF_FILE
- if test 3522 -ne `wc -c <'Examples/window2.fig.uu'`; then
- echo shar: \"'Examples/window2.fig.uu'\" unpacked with wrong size!
- fi
- # end of 'Examples/window2.fig.uu'
- fi
- if test -f 'd_arc.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'d_arc.c'\"
- else
- echo shar: Extracting \"'d_arc.c'\" \(4363 characters\)
- sed "s/^X//" >'d_arc.c' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1985 by Supoj Sutanthavibul
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X/********************** DECLARATIONS ********************/
- X
- X/* IMPORTS */
- X
- X#include "fig.h"
- X#include "resources.h"
- X#include "mode.h"
- X#include "object.h"
- X#include "paintop.h"
- X#include "u_create.h"
- X#include "u_elastic.h"
- X#include "u_list.h"
- X#include "w_canvas.h"
- X#include "w_mousefun.h"
- X
- X/* LOCAL */
- X
- XF_pos point[3];
- X
- Xstatic int create_arcobject();
- Xstatic int get_arcpoint();
- Xstatic int init_arc_drawing();
- Xstatic int cancel_arc();
- X
- Xarc_drawing_selected()
- X{
- X set_mousefun("first point", "", "");
- X canvas_kbd_proc = null_proc;
- X canvas_locmove_proc = null_proc;
- X canvas_leftbut_proc = init_arc_drawing;
- X canvas_middlebut_proc = null_proc;
- X canvas_rightbut_proc = null_proc;
- X set_cursor(arrow_cursor);
- X reset_action_on();
- X}
- X
- Xstatic
- Xinit_arc_drawing(x, y)
- X int x, y;
- X{
- X set_mousefun("mid point", "", "cancel");
- X draw_mousefun_canvas();
- X canvas_rightbut_proc = cancel_arc;
- X num_point = 0;
- X point[num_point].x = fix_x = cur_x = x;
- X point[num_point++].y = fix_y = cur_y = y;
- X canvas_locmove_proc = freehand_line;
- X canvas_leftbut_proc = get_arcpoint;
- X canvas_middlebut_proc = null_proc;
- X elastic_line();
- X set_temp_cursor(null_cursor);
- X set_action_on();
- X}
- X
- Xstatic
- Xcancel_arc()
- X{
- X elastic_line();
- X if (num_point == 2) {
- X /* erase initial part of line */
- X cur_x = point[0].x;
- X cur_y = point[0].y;
- X elastic_line();
- X }
- X arc_drawing_selected();
- X draw_mousefun_canvas();
- X}
- X
- Xstatic
- Xget_arcpoint(x, y)
- X int x, y;
- X{
- X if (x == fix_x && y == fix_y)
- X return;
- X
- X if (num_point == 1) {
- X set_mousefun("final point", "", "cancel");
- X draw_mousefun_canvas();
- X }
- X if (num_point == 2) {
- X create_arcobject(x, y);
- X return;
- X }
- X elastic_line();
- X cur_x = x;
- X cur_y = y;
- X elastic_line();
- X point[num_point].x = fix_x = x;
- X point[num_point++].y = fix_y = y;
- X elastic_line();
- X}
- X
- Xstatic
- Xcreate_arcobject(lx, ly)
- X int lx, ly;
- X{
- X F_arc *arc;
- X int x, y, i;
- X float xx, yy;
- X
- X elastic_line();
- X cur_x = lx;
- X cur_y = ly;
- X elastic_line();
- X point[num_point].x = lx;
- X point[num_point++].y = ly;
- X x = point[0].x;
- X y = point[0].y;
- X /* erase previous line segment(s) if necessary */
- X for (i = 1; i < num_point; i++) {
- X pw_vector(canvas_win, x, y, point[i].x, point[i].y, INV_PAINT,
- X 1, RUBBER_LINE, 0.0, DEFAULT_COLOR);
- X x = point[i].x;
- X y = point[i].y;
- X }
- X if (!compute_arccenter(point[0], point[1], point[2], &xx, &yy)) {
- X put_msg("Invalid ARC geometry");
- X arc_drawing_selected();
- X draw_mousefun_canvas();
- X return;
- X }
- X if ((arc = create_arc()) == NULL) {
- X arc_drawing_selected();
- X draw_mousefun_canvas();
- X return;
- X }
- X arc->type = T_3_POINTS_ARC;
- X arc->style = cur_linestyle;
- X arc->thickness = cur_linewidth;
- X /* scale dash length according to linethickness */
- X arc->style_val = cur_styleval * (cur_linewidth + 1) / 2;
- X arc->pen = 0;
- X arc->fill_style = cur_fillstyle;
- X arc->color = cur_color;
- X arc->depth = cur_depth;
- X arc->direction = compute_direction(point[0], point[1], point[2]);
- X if (autoforwardarrow_mode)
- X arc->for_arrow = forward_arrow();
- X else
- X arc->for_arrow = NULL;
- X if (autobackwardarrow_mode)
- X arc->back_arrow = backward_arrow();
- X else
- X arc->back_arrow = NULL;
- X arc->center.x = xx;
- X arc->center.y = yy;
- X arc->point[0].x = point[0].x;
- X arc->point[0].y = point[0].y;
- X arc->point[1].x = point[1].x;
- X arc->point[1].y = point[1].y;
- X arc->point[2].x = point[2].x;
- X arc->point[2].y = point[2].y;
- X arc->next = NULL;
- X draw_arc(arc, PAINT);
- X if (appres.DEBUG) {
- X int xmin, ymin, xmax, ymax;
- X
- X arc_bound(arc, &xmin, &ymin, &xmax, &ymax);
- X elastic_box(xmin, ymin, xmax, ymax);
- X }
- X add_arc(arc);
- X arc_drawing_selected();
- X draw_mousefun_canvas();
- X}
- END_OF_FILE
- if test 4363 -ne `wc -c <'d_arc.c'`; then
- echo shar: \"'d_arc.c'\" unpacked with wrong size!
- fi
- # end of 'd_arc.c'
- fi
- if test -f 'e_convert.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'e_convert.c'\"
- else
- echo shar: Extracting \"'e_convert.c'\" \(4237 characters\)
- sed "s/^X//" >'e_convert.c' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1985 by Supoj Sutanthavibul
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X#include "fig.h"
- X#include "resources.h"
- X#include "mode.h"
- X#include "object.h"
- X#include "paintop.h"
- X#include "u_create.h"
- X#include "u_list.h"
- X#include "u_search.h"
- X#include "w_canvas.h"
- X#include "w_mousefun.h"
- X
- Xstatic int init_convert();
- X
- Xconvert_selected()
- X{
- X set_mousefun("spline<->line", "", "");
- X canvas_kbd_proc = null_proc;
- X canvas_locmove_proc = null_proc;
- X init_searchproc_left(init_convert);
- X canvas_leftbut_proc = object_search_left;
- X canvas_middlebut_proc = null_proc;
- X canvas_rightbut_proc = null_proc;
- X set_cursor(pick15_cursor);
- X}
- X
- Xstatic
- Xinit_convert(p, type, x, y, px, py)
- X char *p;
- X int type;
- X int x, y;
- X int px, py;
- X{
- X switch (type) {
- X case O_POLYLINE:
- X cur_l = (F_line *) p;
- X /* the search routine will ensure that we don't have a box */
- X line_2_spline(cur_l);
- X break;
- X case O_SPLINE:
- X cur_s = (F_spline *) p;
- X /* the search routine will ensure that we have a interp spline */
- X spline_2_line(cur_s);
- X break;
- X default:
- X return;
- X }
- X}
- X
- Xline_2_spline(l)
- X F_line *l;
- X{
- X F_spline *s;
- X
- X if (num_points(l->points) < 3) {
- X put_msg("Can't CONVERT this line into a spline: insufficient points");
- X return;
- X }
- X if ((s = create_spline()) == NULL)
- X return;
- X
- X if (l->type == T_POLYGON)
- X s->type = T_CLOSED_INTERP;
- X else
- X s->type = T_OPEN_INTERP;
- X s->style = l->style;
- X s->thickness = l->thickness;
- X s->color = l->color;
- X s->depth = l->depth;
- X s->style_val = l->style_val;
- X s->pen = l->pen;
- X s->fill_style = l->fill_style;
- X s->for_arrow = l->for_arrow;
- X s->back_arrow = l->back_arrow;
- X s->points = l->points;
- X s->controls = NULL;
- X s->next = NULL;
- X
- X if (-1 == create_control_list(s)) {
- X free_splinestorage(s);
- X return;
- X }
- X remake_control_points(s);
- X
- X /* now we have finished creating the spline, we can get rid of the line */
- X /* first off the screen */
- X mask_toggle_linemarker(l);
- X draw_line(l, ERASE);
- X list_delete_line(&objects.lines, l);
- X /* we reuse the arrows and points, so `detach' them from the line */
- X l->for_arrow = l->back_arrow = NULL;
- X l->points = NULL;
- X /* now get rid of the rest */
- X free_linestorage(l);
- X
- X /* now put back the new spline */
- X draw_spline(s, PAINT);
- X mask_toggle_splinemarker(s);
- X list_add_spline(&objects.splines, s);
- X clean_up();
- X set_action_object(F_CONVERT, O_POLYLINE);
- X set_latestspline(s);
- X return;
- X}
- X
- Xspline_2_line(s)
- X F_spline *s;
- X{
- X F_line *l;
- X
- X /* Now we turn s into a line */
- X if ((l = create_line()) == NULL)
- X return;
- X
- X if (s->type == T_OPEN_INTERP)
- X l->type = T_POLYLINE;
- X else if (s->type == T_CLOSED_INTERP)
- X l->type = T_POLYGON;
- X l->style = s->style;
- X l->thickness = s->thickness;
- X l->color = s->color;
- X l->depth = s->depth;
- X l->style_val = s->style_val;
- X l->pen = s->pen;
- X l->radius = DEF_BOXRADIUS;
- X l->fill_style = s->fill_style;
- X l->for_arrow = s->for_arrow;
- X l->back_arrow = s->back_arrow;
- X l->points = s->points;
- X
- X /* now we have finished creating the line, we can get rid of the spline */
- X /* first off the screen */
- X mask_toggle_splinemarker(s);
- X draw_spline(s, ERASE);
- X list_delete_spline(&objects.splines, s);
- X /* we reuse the arrows and points, so `detach' them from the spline */
- X s->for_arrow = s->back_arrow = NULL;
- X s->points = NULL;
- X /* now get rid of the rest */
- X free_splinestorage(s);
- X
- X /* and put in the new line */
- X draw_line(l, PAINT);
- X mask_toggle_linemarker(l);
- X list_add_line(&objects.lines, l);
- X clean_up();
- X set_action_object(F_CONVERT, O_SPLINE);
- X set_latestline(l);
- X return;
- X}
- END_OF_FILE
- if test 4237 -ne `wc -c <'e_convert.c'`; then
- echo shar: \"'e_convert.c'\" unpacked with wrong size!
- fi
- # end of 'e_convert.c'
- fi
- if test -f 'e_copy.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'e_copy.c'\"
- else
- echo shar: Extracting \"'e_copy.c'\" \(4636 characters\)
- sed "s/^X//" >'e_copy.c' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1985 by Supoj Sutanthavibul
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X#include "fig.h"
- X#include "resources.h"
- X#include "mode.h"
- X#include "object.h"
- X#include "paintop.h"
- X#include "u_elastic.h"
- X#include "u_search.h"
- X#include "u_create.h"
- X#include "w_canvas.h"
- X#include "w_mousefun.h"
- X#include "w_setup.h"
- X
- X/* local routine declarations */
- Xstatic init_copy(), init_arb_copy(), init_constrained_copy();
- Xstatic init_copy_to_scrap();
- X
- Xcopy_selected()
- X{
- X canvas_kbd_proc = null_proc;
- X canvas_locmove_proc = null_proc;
- X init_searchproc_left(init_arb_copy);
- X init_searchproc_middle(init_constrained_copy);
- X init_searchproc_right(init_copy_to_scrap);
- X canvas_leftbut_proc = object_search_left;
- X canvas_middlebut_proc = object_search_middle;
- X canvas_rightbut_proc = object_search_right;
- X return_proc = copy_selected;
- X set_cursor(pick15_cursor);
- X set_mousefun("copy object", "horiz/vert copy", "copy to cut buf");
- X reset_action_on();
- X}
- X
- Xstatic
- Xinit_arb_copy(p, type, x, y, px, py)
- X char *p;
- X int type;
- X int x, y, px, py;
- X{
- X constrained = MOVE_ARB;
- X init_copy(p, type, x, y, px, py);
- X canvas_middlebut_proc = null_proc;
- X set_mousefun("place object", "", "cancel");
- X draw_mousefun_canvas();
- X}
- X
- Xstatic
- Xinit_constrained_copy(p, type, x, y, px, py)
- X char *p;
- X int type;
- X int x, y, px, py;
- X{
- X constrained = MOVE_HORIZ_VERT;
- X init_copy(p, type, x, y, px, py);
- X canvas_middlebut_proc = canvas_leftbut_proc;
- X canvas_leftbut_proc = null_proc;
- X set_mousefun("", "place object", "cancel");
- X draw_mousefun_canvas();
- X}
- X
- Xstatic
- Xinit_copy(p, type, x, y, px, py)
- X char *p;
- X int type;
- X int x, y, px, py;
- X{
- X switch (type) {
- X case O_COMPOUND:
- X set_temp_cursor(null_cursor);
- X cur_c = (F_compound *) p;
- X new_c = copy_compound(cur_c);
- X init_compounddragging(new_c, px, py);
- X break;
- X case O_POLYLINE:
- X set_temp_cursor(null_cursor);
- X cur_l = (F_line *) p;
- X new_l = copy_line(cur_l);
- X init_linedragging(new_l, px, py);
- X break;
- X case O_TEXT:
- X set_temp_cursor(null_cursor);
- X cur_t = (F_text *) p;
- X new_t = copy_text(cur_t);
- X init_textdragging(new_t, x, y);
- X break;
- X case O_ELLIPSE:
- X set_temp_cursor(null_cursor);
- X cur_e = (F_ellipse *) p;
- X new_e = copy_ellipse(cur_e);
- X init_ellipsedragging(new_e, px, py);
- X break;
- X case O_ARC:
- X set_temp_cursor(null_cursor);
- X cur_a = (F_arc *) p;
- X new_a = copy_arc(cur_a);
- X init_arcdragging(new_a, px, py);
- X break;
- X case O_SPLINE:
- X set_temp_cursor(null_cursor);
- X cur_s = (F_spline *) p;
- X new_s = copy_spline(cur_s);
- X init_splinedragging(new_s, px, py);
- X break;
- X default:
- X return;
- X }
- X}
- X
- Xstatic
- Xinit_copy_to_scrap(p, type, x, y, px, py)
- X char *p;
- X int type;
- X int x, y;
- X int px, py;
- X{
- X FILE *fp;
- X struct stat file_status;
- X
- X if (stat(cut_buf_name, &file_status) == 0) { /* file exists */
- X if (file_status.st_mode & S_IFDIR) {
- X put_msg("\"%s\" is a directory", cut_buf_name);
- X return;
- X }
- X if (file_status.st_mode & S_IWRITE) { /* writing is permitted */
- X if (file_status.st_uid != geteuid()) {
- X put_msg("Error: access denied to cut file");
- X return;
- X }
- X } else {
- X put_msg("Error: cut file is read only");
- X return;
- X }
- X } else if (errno != ENOENT)
- X return; /* file does exist but stat fails */
- X
- X if ((fp = fopen(cut_buf_name, "w")) == NULL) {
- X put_msg("Couldn't open cut file %s", sys_errlist[errno]);
- X return;
- X } else {
- X (void) fprintf(fp, "%s\n", file_header);
- X (void) fprintf(fp, "%d %d\n", PIX_PER_INCH, 2);
- X }
- X
- X switch (type) {
- X case O_COMPOUND:
- X cur_c = (F_compound *) p;
- X write_compound(fp, cur_c);
- X break;
- X case O_ARC:
- X cur_a = (F_arc *) p;
- X write_arc(fp, cur_a);
- X break;
- X case O_ELLIPSE:
- X cur_e = (F_ellipse *) p;
- X write_ellipse(fp, cur_e);
- X break;
- X case O_POLYLINE:
- X cur_l = (F_line *) p;
- X write_line(fp, cur_l);
- X break;
- X case O_TEXT:
- X cur_t = (F_text *) p;
- X write_text(fp, cur_t);
- X break;
- X case O_SPLINE:
- X cur_s = (F_spline *) p;
- X write_spline(fp, cur_s);
- X break;
- X default:
- X fclose(fp);
- X return;
- X }
- X put_msg("Object copied to scrap");
- X fclose(fp);
- X}
- END_OF_FILE
- if test 4636 -ne `wc -c <'e_copy.c'`; then
- echo shar: \"'e_copy.c'\" unpacked with wrong size!
- fi
- # end of 'e_copy.c'
- fi
- if test -f 'mode.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'mode.h'\"
- else
- echo shar: Extracting \"'mode.h'\" \(4624 characters\)
- sed "s/^X//" >'mode.h' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1985 by Supoj Sutanthavibul
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X#define F_NULL 0
- X#define FIRST_DRAW_MODE F_CIRCLE_BY_RAD
- X#define F_CIRCLE_BY_RAD 1
- X#define F_CIRCLE_BY_DIA 2
- X#define F_ELLIPSE_BY_RAD 3
- X#define F_ELLIPSE_BY_DIA 4
- X#define F_CIRCULAR_ARC 5
- X#define F_POLYLINE 6
- X#define F_BOX 7
- X#define F_POLYGON 8
- X#define F_TEXT 9
- X#define F_SPLINE 10
- X#define F_CLOSED_SPLINE 11
- X#define F_INTSPLINE 12
- X#define F_CLOSED_INTSPLINE 13
- X#define F_ARC_BOX 14
- X#define F_REGPOLY 15
- X#define F_EPSOBJ 16
- X#define FIRST_EDIT_MODE F_GLUE
- X#define F_GLUE 30
- X#define F_BREAK 31
- X#define F_SCALE 32
- X#define F_ADD 33
- X#define F_COPY 34
- X#define F_MOVE 35
- X#define F_DELETE 36
- X#define F_MOVE_POINT 37
- X#define F_DELETE_POINT 38
- X#define F_ADD_POINT 39
- X#define F_DELETE_ARROW_HEAD 40
- X#define F_ADD_ARROW_HEAD 41
- X#define F_FLIP 42
- X#define F_ROTATE 43
- X#define F_AUTOARROW 44
- X#define F_CONVERT 45
- X#define F_CHANGE 46
- X#define F_UPDATE 47
- X#define F_ALIGN 48
- X#define F_ZOOM 49
- X#define F_LOAD 50
- X#define F_EDIT 50
- X
- Xextern int cur_mode;
- X
- X/* alignment mode */
- X#define NONE 0
- X#define LEFT 1
- X#define TOP 1
- X#define CENTER 2
- X#define RIGHT 3
- X#define BOTTOM 3
- X
- Xextern int cur_halign;
- Xextern int cur_valign;
- X
- X/* angle geometry */
- X#define L_UNCONSTRAINED 0
- X#define L_LATEXLINE 1
- X#define L_LATEXARROW 2
- X#define L_MOUNTHATTAN 3
- X#define L_MANHATTAN 4
- X#define L_MOUNTAIN 5
- X
- Xextern int manhattan_mode;
- Xextern int mountain_mode;
- Xextern int latexline_mode;
- Xextern int latexarrow_mode;
- X
- X/* arrow mode */
- X#define L_NOARROWS 0
- X#define L_FARROWS 1
- X#define L_FBARROWS 2
- X#define L_BARROWS 3
- X
- Xextern int autoforwardarrow_mode;
- Xextern int autobackwardarrow_mode;
- X
- X/* grid mode */
- X#define GRID_0 0
- X#define GRID_1 1
- X#define GRID_2 2
- X
- Xextern int cur_gridmode;
- X
- X/* point position */
- X#define P_ANY 0
- X#define P_MAGNET 1
- X#define P_GRID1 2
- X#define P_GRID2 3
- X
- Xextern int cur_pointposn;
- Xextern int posn_rnd[P_GRID2 + 1];
- Xextern int posn_hlf[P_GRID2 + 1];
- Xextern int grid_fine[P_GRID2 + 1];
- Xextern int grid_coarse[P_GRID2 + 1];
- Xextern char *grid_name[P_GRID2 + 1];
- X
- X/* rotn axis */
- X#define UD_FLIP 1
- X#define LR_FLIP 2
- X
- Xextern int cur_rotnangle;
- X
- X/* smart link mode */
- X#define SMART_OFF 0
- X#define SMART_MOVE 1
- X#define SMART_SLIDE 2
- X
- Xextern int cur_linkmode;
- X
- X/* misc */
- Xextern int action_on;
- Xextern int highlighting;
- Xextern int aborting;
- Xextern int anypointposn;
- Xextern int figure_modified;
- Xextern int cur_numsides;
- Xextern char cur_fig_units[32];
- Xextern Boolean warnexist;
- X
- Xextern void reset_modifiedflag();
- Xextern void set_modifiedflag();
- Xextern void reset_action_on();
- Xextern void set_action_on();
- X
- X/********************** global mode variables ************************/
- X
- Xextern int num_point;
- Xextern int min_num_points;
- X
- X/*************************** Export Settings ****************************/
- X
- Xextern Boolean export_flushleft; /* flush left (true) or center (false) */
- X
- X/*************************** Print Settings ****************************/
- X
- Xextern int print_landscape;/* def. orientation for printer */
- Xextern Boolean print_flushleft; /* flush left (true) or center (false) */
- X
- X#define NUM_EXP_LANG 15 /* number of export languages */
- X#define LANG_EPS 7 /* position of eps starting from 0 */
- X#define LANG_PS 8 /* position of ps starting from 0 */
- X#define LANG_XBITMAP 14 /* position of xbm starting from 0 */
- X
- Xextern int cur_exp_lang;
- Xextern char *lang_items[NUM_EXP_LANG];
- Xextern char *lang_texts[NUM_EXP_LANG];
- Xextern Boolean batch_exists;
- Xextern char batch_file[];
- X
- X/*************************** Mode Settings ****************************/
- X
- Xextern int cur_objmask;
- Xextern int cur_updatemask;
- Xextern int cur_depth;
- X
- X/*************************** Text Settings ****************************/
- X
- Xextern int hidden_text_length;
- Xextern float cur_textstep;
- X
- X/*************************** File Settings ****************************/
- X
- Xextern char cur_dir[];
- Xextern char cur_filename[];
- Xextern char save_filename[]; /* to undo load */
- Xextern char file_header[];
- Xextern char cut_buf_name[];
- END_OF_FILE
- if test 4624 -ne `wc -c <'mode.h'`; then
- echo shar: \"'mode.h'\" unpacked with wrong size!
- fi
- # end of 'mode.h'
- fi
- if test -f 'u_fonts.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'u_fonts.c'\"
- else
- echo shar: Extracting \"'u_fonts.c'\" \(4300 characters\)
- sed "s/^X//" >'u_fonts.c' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1991 by Brian V. Smith
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X#include <X11/Xlib.h>
- X#include "fig.h"
- X#include "resources.h"
- X#include "u_fonts.h"
- X#include "object.h"
- X
- X/* printer font names for indicator window */
- X
- Xstruct _xfstruct x_fontinfo[NUM_X_FONTS] = {
- X {"-adobe-times-medium-r-*--", (struct xfont*) NULL},
- X {"-adobe-times-medium-i-*--", (struct xfont*) NULL},
- X {"-adobe-times-bold-r-*--", (struct xfont*) NULL},
- X {"-adobe-times-bold-i-*--", (struct xfont*) NULL},
- X {"-schumacher-clean-medium-r-*--", (struct xfont*) NULL},
- X {"-schumacher-clean-medium-i-*--", (struct xfont*) NULL},
- X {"-schumacher-clean-bold-r-*--", (struct xfont*) NULL},
- X {"-schumacher-clean-bold-i-*--", (struct xfont*) NULL},
- X {"-adobe-courier-medium-r-*--", (struct xfont*) NULL},
- X {"-adobe-courier-medium-o-*--", (struct xfont*) NULL},
- X {"-adobe-courier-bold-r-*--", (struct xfont*) NULL},
- X {"-adobe-courier-bold-o-*--", (struct xfont*) NULL},
- X {"-adobe-helvetica-medium-r-*--", (struct xfont*) NULL},
- X {"-adobe-helvetica-medium-o-*--", (struct xfont*) NULL},
- X {"-adobe-helvetica-bold-r-*--", (struct xfont*) NULL},
- X {"-adobe-helvetica-bold-o-*--", (struct xfont*) NULL},
- X {"-adobe-new century schoolbook-medium-r-*--", (struct xfont*) NULL},
- X {"-adobe-new century schoolbook-medium-i-*--", (struct xfont*) NULL},
- X {"-adobe-new century schoolbook-bold-r-*--", (struct xfont*) NULL},
- X {"-adobe-new century schoolbook-bold-i-*--", (struct xfont*) NULL},
- X {"-*-lucidabright-medium-r-*--", (struct xfont*) NULL},
- X {"-*-lucidabright-medium-i-*--", (struct xfont*) NULL},
- X {"-*-lucidabright-demibold-r-*--", (struct xfont*) NULL},
- X {"-*-lucidabright-demibold-i-*--", (struct xfont*) NULL},
- X {"-*-symbol-medium-r-*--", (struct xfont*) NULL},
- X {"-*-zapfchancery-medium-i-*--", (struct xfont*) NULL},
- X {"-*-zapfdingbats-*-*-*--", (struct xfont*) NULL},
- X};
- X
- Xstruct _fstruct ps_fontinfo[NUM_PS_FONTS + 1] = {
- X {"Default", -1},
- X {"Times-Roman", 0},
- X {"Times-Italic", 1},
- X {"Times-Bold", 2},
- X {"Times-BoldItalic", 3},
- X {"AvantGarde-Book", 4},
- X {"AvantGarde-BookOblique", 5},
- X {"AvantGarde-Demi", 6},
- X {"AvantGarde-DemiOblique", 7},
- X {"Bookman-Light", 0},
- X {"Bookman-LightItalic", 0},
- X {"Bookman-Demi", 0},
- X {"Bookman-DemiItalic", 0},
- X {"Courier", 8},
- X {"Courier-Oblique", 9},
- X {"Courier-Bold", 10},
- X {"Courier-BoldOblique", 11},
- X {"Helvetica", 12},
- X {"Helvetica-Oblique", 13},
- X {"Helvetica-Bold", 14},
- X {"Helvetica-BoldOblique", 15},
- X {"Helvetica-Narrow", 0},
- X {"Helvetica-Narrow-Oblique", 0},
- X {"Helvetica-Narrow-Bold", 0},
- X {"Helvetica-Narrow-BoldOblique", 0},
- X {"NewCenturySchlbk-Roman", 16},
- X {"NewCenturySchlbk-Italic", 17},
- X {"NewCenturySchlbk-Bold", 18},
- X {"NewCenturySchlbk-BoldItalic", 19},
- X {"Palatino-Roman", 20},
- X {"Palatino-Italic", 21},
- X {"Palatino-Bold", 22},
- X {"Palatino-BoldItalic", 23},
- X {"Symbol", 24},
- X {"ZapfChancery-MediumItalic", 25},
- X {"ZapfDingbats", 26},
- X};
- X
- Xstruct _fstruct latex_fontinfo[NUM_LATEX_FONTS] = {
- X {"Default", 0},
- X {"Roman", 0},
- X {"Bold", 2},
- X {"Italic", 1},
- X {"Modern", 12},
- X {"Typewriter", 8},
- X};
- X
- Xx_fontnum(psflag, fnum)
- X int psflag, fnum;
- X{
- X return (psflag ? ps_fontinfo[fnum + 1].xfontnum :
- X latex_fontinfo[fnum].xfontnum);
- X}
- X
- Xpsfontnum(font)
- Xchar *font;
- X{
- X int i;
- X
- X if (font == NULL)
- X return(DEF_PS_FONT);
- X for (i=0; i<NUM_PS_FONTS; i++)
- X if (strcmp(ps_fontinfo[i].name, font) == 0)
- X return (i-1);
- X return(DEF_PS_FONT);
- X}
- X
- Xlatexfontnum(font)
- Xchar *font;
- X{
- X int i;
- X
- X if (font == NULL)
- X return(DEF_LATEX_FONT);
- X for (i=0; i<NUM_LATEX_FONTS; i++)
- X if (strcmp(latex_fontinfo[i].name, font) == 0)
- X return (i);
- X return(DEF_LATEX_FONT);
- X}
- END_OF_FILE
- if test 4300 -ne `wc -c <'u_fonts.c'`; then
- echo shar: \"'u_fonts.c'\" unpacked with wrong size!
- fi
- # end of 'u_fonts.c'
- fi
- if test -f 'u_free.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'u_free.c'\"
- else
- echo shar: Extracting \"'u_free.c'\" \(3779 characters\)
- sed "s/^X//" >'u_free.c' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1985 by Supoj Sutanthavibul
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X#include "fig.h"
- X#include "resources.h"
- X#include "object.h"
- X
- Xfree_arc(list)
- X F_arc **list;
- X{
- X F_arc *a, *arc;
- X
- X for (a = *list; a != NULL;) {
- X arc = a;
- X a = a->next;
- X if (arc->for_arrow)
- X free((char *) arc->for_arrow);
- X if (arc->back_arrow)
- X free((char *) arc->back_arrow);
- X free((char *) arc);
- X }
- X *list = NULL;
- X}
- X
- Xfree_compound(list)
- X F_compound **list;
- X{
- X F_compound *c, *compound;
- X
- X for (c = *list; c != NULL;) {
- X compound = c;
- X c = c->next;
- X free_arc(&compound->arcs);
- X free_compound(&compound->compounds);
- X free_ellipse(&compound->ellipses);
- X free_line(&compound->lines);
- X free_spline(&compound->splines);
- X free_text(&compound->texts);
- X free((char *) compound);
- X }
- X *list = NULL;
- X}
- X
- Xfree_ellipse(list)
- X F_ellipse **list;
- X{
- X F_ellipse *e, *ellipse;
- X
- X for (e = *list; e != NULL;) {
- X ellipse = e;
- X e = e->next;
- X free((char *) ellipse);
- X }
- X *list = NULL;
- X}
- X
- Xfree_line(list)
- X F_line **list;
- X{
- X F_line *l, *line;
- X
- X for (l = *list; l != NULL;) {
- X line = l;
- X l = l->next;
- X free_linestorage(line);
- X }
- X *list = NULL;
- X}
- X
- Xfree_text(list)
- X F_text **list;
- X{
- X F_text *t, *text;
- X
- X for (t = *list; t != NULL;) {
- X text = t;
- X t = t->next;
- X free(text->cstring);
- X free((char *) text);
- X }
- X *list = NULL;
- X}
- X
- Xfree_spline(list)
- X F_spline **list;
- X{
- X F_spline *s, *spline;
- X
- X for (s = *list; s != NULL;) {
- X spline = s;
- X s = s->next;
- X free_splinestorage(spline);
- X }
- X *list = NULL;
- X}
- X
- Xfree_splinestorage(s)
- X F_spline *s;
- X{
- X F_control *a, *b;
- X
- X free_points(s->points);
- X for (a = s->controls; a != NULL; a = b) {
- X b = a->next;
- X free((char *) a);
- X }
- X if (s->for_arrow)
- X free((char *) s->for_arrow);
- X if (s->back_arrow)
- X free((char *) s->back_arrow);
- X free((char *) s);
- X}
- X
- Xfree_linestorage(l)
- X F_line *l;
- X{
- X free_points(l->points);
- X if (l->for_arrow)
- X free((char *) l->for_arrow);
- X if (l->back_arrow)
- X free((char *) l->back_arrow);
- X if (l->eps) {
- X if (l->eps->bitmap)
- X free((char *) l->eps->bitmap);
- X if (l->eps->pixmap != 0)
- X XFreePixmap(tool_d, l->eps->pixmap);
- X free((char *) l->eps);
- X }
- X free((char *) l);
- X}
- X
- Xfree_points(first_point)
- X F_point *first_point;
- X{
- X F_point *p, *q;
- X
- X for (p = first_point; p != NULL; p = q) {
- X q = p->next;
- X free((char *) p);
- X }
- X}
- X
- Xfree_linkinfo(list)
- X F_linkinfo **list;
- X{
- X F_linkinfo *l, *link;
- X
- X for (l = *list; l != NULL;) {
- X link = l;
- X l = l->next;
- X free((char *) link);
- X }
- X *list = NULL;
- X}
- X
- X/* free up all the GC's before leaving xfig */
- X
- Xfree_GCs()
- X {
- X int i;
- X
- X XFreeGC(tool_d, gc);
- X XFreeGC(tool_d, bold_gc);
- X XFreeGC(tool_d, button_gc);
- X XFreeGC(tool_d, color_gc);
- X XFreeGC(tool_d, ind_button_gc);
- X XFreeGC(tool_d, ind_blank_gc);
- X XFreeGC(tool_d, blank_gc);
- X XFreeGC(tool_d, mouse_blank_gc);
- X XFreeGC(tool_d, mouse_button_gc);
- X XFreeGC(tool_d, tr_gc);
- X XFreeGC(tool_d, tr_erase_gc);
- X XFreeGC(tool_d, tr_xor_gc);
- X XFreeGC(tool_d, sr_gc);
- X XFreeGC(tool_d, sr_erase_gc);
- X XFreeGC(tool_d, sr_xor_gc);
- X
- X for (i=0; i<NUMOPS; i++) {
- X XFreeGC(tool_d, gccache[i]);
- X }
- X for (i=0; i<NUMFILLPATS; i++) {
- X XFreeGC(tool_d, fill_gc[i]);
- X XFreeGC(tool_d, un_fill_gc[i]);
- X }
- X}
- END_OF_FILE
- if test 3779 -ne `wc -c <'u_free.c'`; then
- echo shar: \"'u_free.c'\" unpacked with wrong size!
- fi
- # end of 'u_free.c'
- fi
- if test -f 'w_grid.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'w_grid.c'\"
- else
- echo shar: Extracting \"'w_grid.c'\" \(4307 characters\)
- sed "s/^X//" >'w_grid.c' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1985 by Supoj Sutanthavibul
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X#include "fig.h"
- X#include "figx.h"
- X#include "resources.h"
- X#include "mode.h"
- X#include "paintop.h"
- X#include "object.h"
- X#include "w_setup.h"
- X#include "w_util.h"
- X#include "w_zoom.h"
- X
- X#define null_width 32
- X#define null_height 32
- X
- X#define MMTOPIX 3
- X#define IN16TOPIX 5
- X
- Xstatic char null_bits[null_width * null_height / 8] = {0};
- X
- Xstatic Pixmap null_pm, grid_pm = 0;
- Xstatic unsigned long bg, fg;
- X
- Xinit_grid()
- X{
- X DeclareArgs(2);
- X
- X if (null_pm == 0) {
- X FirstArg(XtNbackground, &bg);
- X NextArg(XtNforeground, &fg);
- X GetValues(canvas_sw);
- X
- X null_pm = XCreatePixmapFromBitmapData(tool_d, canvas_win,
- X (char *) null_bits, null_width, null_height,
- X fg, bg, DefaultDepthOfScreen(tool_s));
- X }
- X
- X if (appres.INCHES) {
- X posn_rnd[P_MAGNET] = 5; /* 1 x 1/8" */
- X posn_hlf[P_MAGNET] = 3;
- X posn_rnd[P_GRID1] = 20; /* 4 x 1/8" */
- X posn_hlf[P_GRID1] = 10;
- X posn_rnd[P_GRID2] = 40; /* 8 x 1/8" */
- X posn_hlf[P_GRID2] = 20;
- X grid_name[P_MAGNET] = "1/16 in";
- X grid_name[P_GRID1] = "1/4 in";
- X grid_name[P_GRID2] = "1/2 in";
- X grid_fine[P_GRID1] = 1 * IN16TOPIX; /* 1 x 1/16" */
- X grid_coarse[P_GRID1] = 4 * IN16TOPIX; /* 4 x 1/16" */
- X grid_fine[P_GRID2] = 1 * IN16TOPIX; /* 1 x 1/16" */
- X grid_coarse[P_GRID2] = 8 * IN16TOPIX; /* 8 x 1/16" */
- X } else {
- X posn_rnd[P_MAGNET] = 3; /* 1 mm */
- X posn_hlf[P_MAGNET] = 2;
- X posn_rnd[P_GRID1] = 15; /* 5 mm */
- X posn_hlf[P_GRID1] = 7;
- X posn_rnd[P_GRID2] = 30; /* 10 mm */
- X posn_hlf[P_GRID2] = 15;
- X grid_name[P_MAGNET] = "1 mm";
- X grid_name[P_GRID1] = "5 mm";
- X grid_name[P_GRID2] = "10 mm";
- X grid_fine[P_GRID1] = 1 * MMTOPIX; /* 1 mm */
- X grid_coarse[P_GRID1] = 5 * MMTOPIX; /* 5 mm */
- X grid_fine[P_GRID2] = 2 * MMTOPIX; /* 2 mm */
- X grid_coarse[P_GRID2] = 10 * MMTOPIX; /* 10 mm */
- X }
- X}
- X
- X/* grid in X11 is simply the background of the canvas */
- X
- Xsetup_grid(grid)
- X int grid;
- X{
- X float coarse, fine;
- X float x, x0c, x0f, y, y0c, y0f;
- X int ic, dim;
- X static prev_grid = -1;
- X
- X DeclareArgs(1);
- X
- X if (grid == GRID_0) {
- X FirstArg(XtNbackgroundPixmap, null_pm);
- X } else {
- X if (grid == GRID_1) {
- X coarse = grid_coarse[P_GRID1] * zoomscale;
- X fine = grid_fine[P_GRID1] * zoomscale;
- X } else {
- X coarse = grid_coarse[P_GRID2] * zoomscale;
- X fine = grid_fine[P_GRID2] * zoomscale;
- X }
- X
- X if (coarse==0.0 && fine==0.0) { /* grid values both zero */
- X FirstArg(XtNbackgroundPixmap, null_pm);
- X }
- X if (coarse == 0.0) { /* coarse must be <> 0 */
- X coarse = fine;
- X fine = 0.0;
- X }
- X ic = (int) coarse;
- X dim = (ic > 64.0) ? ic : (64 / ic + 1) * ic;
- X
- X if (grid_pm)
- X XFreePixmap(tool_d, grid_pm);
- X grid_pm = XCreatePixmap(tool_d, canvas_win, dim, dim,
- X DefaultDepthOfScreen(tool_s));
- X XSetForeground(tool_d, gc, bg);
- X XFillRectangle(tool_d, grid_pm, gc, 0, 0, dim, dim);
- X XSetForeground(tool_d, gc, fg);
- X x0c = round(-round(zoomscale * zoomxoff) % round(coarse) - zoomscale);
- X y0c = round(-round(zoomscale * zoomyoff) % round(coarse) - zoomscale);
- X if (fine != 0.0) {
- X x0f = round(-round(zoomscale * zoomxoff) % round(fine) - zoomscale);
- X y0f = round(-round(zoomscale * zoomyoff) % round(fine) - zoomscale);
- X for (x = x0c; x < dim; x += coarse)
- X for (y = y0f; y < dim; y += fine)
- X {
- X XDrawPoint(tool_d, grid_pm, gc, round(x), round(y));
- X }
- X for (y = y0c; y < dim; y += coarse)
- X for (x = x0f; x < dim; x += fine)
- X {
- X XDrawPoint(tool_d, grid_pm, gc, round(x), round(y));
- X }
- X } else {
- X for (x = x0c; x < dim; x += coarse)
- X for (y = y0c; y < dim; y += coarse)
- X {
- X XDrawPoint(tool_d, grid_pm, gc, round(x), round(y));
- X }
- X }
- X
- X FirstArg(XtNbackgroundPixmap, grid_pm);
- X }
- X SetValues(canvas_sw);
- X if (prev_grid == GRID_0 && grid == GRID_0)
- X redisplay_canvas();
- X prev_grid = grid;
- X}
- END_OF_FILE
- if test 4307 -ne `wc -c <'w_grid.c'`; then
- echo shar: \"'w_grid.c'\" unpacked with wrong size!
- fi
- # end of 'w_grid.c'
- fi
- if test -f 'w_zoom.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'w_zoom.c'\"
- else
- echo shar: Extracting \"'w_zoom.c'\" \(3733 characters\)
- sed "s/^X//" >'w_zoom.c' <<'END_OF_FILE'
- X/*
- X * FIG : Facility for Interactive Generation of figures
- X * Copyright (c) 1991 by Henning Spruth
- X *
- X * "Permission to use, copy, modify, distribute, and sell this software and its
- X * documentation for any purpose is hereby granted without fee, provided that
- X * the above copyright notice appear in all copies and that both the copyright
- X * notice and this permission notice appear in supporting documentation.
- X * No representations are made about the suitability of this software for
- X * any purpose. It is provided "as is" without express or implied warranty."
- X */
- X
- X#include <X11/keysym.h>
- X#include "fig.h"
- X#include "mode.h"
- X#include "resources.h"
- X#include "object.h"
- X#include "paintop.h"
- X#include "u_create.h"
- X#include "u_elastic.h"
- X#include "w_canvas.h"
- X#include "w_setup.h"
- X#include "w_zoom.h"
- X#include "w_indpanel.h"
- X
- Xextern elastic_box();
- Xextern show_zoom();
- Xextern pan_origin();
- X
- X/* extern int gc_thickness[NUMOPS]; */
- X
- Xstatic do_zoom();
- Xstatic zoom_up();
- Xstatic init_zoombox_drawing();
- X
- Xstatic int (*save_kbd_proc) ();
- Xstatic int (*save_locmove_proc) ();
- Xstatic int (*save_leftbut_proc) ();
- Xstatic int (*save_middlebut_proc) ();
- Xstatic int (*save_rightbut_proc) ();
- Xstatic Cursor save_cur_cursor;
- Xstatic int save_action_on;
- X
- Xfloat zoomscale = 1.0;
- Xint zoomxoff = 0;
- Xint zoomyoff = 0;
- X
- Xstatic Boolean zoom_in_progress = False;
- X
- X/* used for private box drawing functions */
- Xstatic int my_fix_x, my_fix_y;
- Xstatic int my_cur_x, my_cur_y;
- X
- Xzoom_selected(x, y, button)
- X int x, y;
- X unsigned int button;
- X{
- X if (!zoom_in_progress) {
- X switch (button) {
- X case Button1:
- X init_zoombox_drawing(x, y);
- X break;
- X case Button2:
- X pan_origin();
- X break;
- X case Button3:
- X zoomscale = 1.0;
- X show_zoom(&ind_switches[ZOOM_SWITCH_INDEX]);
- X break;
- X }
- X } else if (button == Button1)
- X do_zoom(x, y);
- X}
- X
- X
- Xstatic
- Xmy_box(x, y)
- X int x, y;
- X{
- X elastic_box(my_fix_x, my_fix_y, my_cur_x, my_cur_y);
- X my_cur_x = x;
- X my_cur_y = y;
- X elastic_box(my_fix_x, my_fix_y, my_cur_x, my_cur_y);
- X}
- X
- X
- X
- Xstatic
- Xinit_zoombox_drawing(x, y)
- X int x, y;
- X{
- X save_kbd_proc = canvas_kbd_proc;
- X save_locmove_proc = canvas_locmove_proc;
- X save_leftbut_proc = canvas_leftbut_proc;
- X save_middlebut_proc = canvas_middlebut_proc;
- X save_rightbut_proc = canvas_rightbut_proc;
- X save_kbd_proc = canvas_kbd_proc;
- X save_cur_cursor = cur_cursor;
- X
- X my_cur_x = my_fix_x = x;
- X my_cur_y = my_fix_y = y;
- X canvas_locmove_proc = moving_box;
- X
- X canvas_locmove_proc = my_box;
- X canvas_leftbut_proc = do_zoom;
- X canvas_middlebut_proc = canvas_rightbut_proc = null_proc;
- X elastic_box(my_fix_x, my_fix_y, my_cur_x, my_cur_y);
- X set_temp_cursor(null_cursor);
- X set_action_on();
- X zoom_in_progress = True;
- X}
- X
- Xstatic
- Xdo_zoom(x, y)
- X int x, y;
- X{
- X int dimx, dimy;
- X float scalex, scaley;
- X
- X elastic_box(my_fix_x, my_fix_y, my_cur_x, my_cur_y);
- X zoomxoff = my_fix_x < x ? my_fix_x : x;
- X zoomyoff = my_fix_y < y ? my_fix_y : y;
- X dimx = abs(x - my_fix_x);
- X dimy = abs(y - my_fix_y);
- X if (zoomxoff < 0)
- X zoomxoff = 0;
- X if (zoomyoff < 0)
- X zoomyoff = 0;
- X if (dimx && dimy) {
- X scalex = CANVAS_WD / (float) dimx;
- X scaley = CANVAS_HT / (float) dimy;
- X zoomscale = (int)((scalex > scaley ? scaley : scalex)+.99);
- X
- X show_zoom(&ind_switches[ZOOM_SWITCH_INDEX]);
- X }
- X /* restore state */
- X canvas_kbd_proc = save_kbd_proc;
- X canvas_locmove_proc = save_locmove_proc;
- X canvas_leftbut_proc = save_leftbut_proc;
- X canvas_middlebut_proc = save_middlebut_proc;
- X canvas_rightbut_proc = save_rightbut_proc;
- X canvas_kbd_proc = save_kbd_proc;
- X set_cursor(save_cur_cursor);
- X action_on = save_action_on;
- X zoom_in_progress = False;
- X}
- END_OF_FILE
- if test 3733 -ne `wc -c <'w_zoom.c'`; then
- echo shar: \"'w_zoom.c'\" unpacked with wrong size!
- fi
- # end of 'w_zoom.c'
- fi
- echo shar: End of archive 3 \(of 27\).
- cp /dev/null ark3isdone
- MISSING=""
- for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 ; do
- if test ! -f ark${I}isdone ; then
- MISSING="${MISSING} ${I}"
- fi
- done
- if test "${MISSING}" = "" ; then
- echo You have unpacked all 27 archives.
- rm -f ark[1-9]isdone ark[1-9][0-9]isdone
- else
- echo You still need to unpack the following archives:
- echo " " ${MISSING}
- fi
- ## End of shell archive.
- exit 0
-
- exit 0 # Just in case...
- --
- // chris@IMD.Sterling.COM | Send comp.sources.x submissions to:
- \X/ Amiga - The only way to fly! | sources-x@imd.sterling.com
- "It's intuitively obvious to the |
- most casual observer..." | GCS d+/-- p+ c++ l+ m+ s++/+ g+ w+ t+ r+ x+
-