diff -urNP ../siag-3.3.9/ChangeLog ./ChangeLog --- ../siag-3.3.9/ChangeLog Thu Jun 15 08:25:33 2000 +++ ./ChangeLog Sun Jun 18 22:35:15 2000 @@ -1,4 +1,13 @@ +000618 Egon: Load and save HTML and load MS Powerpoint using pptHtml. + Load Magicpoint as plaintext using the new converter mgptotxt. + Keyboard control. Docs for keybindings and file formats slightly + unbroken. + Siag: Moved only_space to common/common.c. + Released 3.3.10. + +000616 Egon: Load and save plain text. + 000615 Fixed a bunch of compiler warnings in Xfiler. Released 3.3.9. diff -urNP ../siag-3.3.9/Nws/Makefile.in ./Nws/Makefile.in --- ../siag-3.3.9/Nws/Makefile.in Thu Jun 15 08:25:45 2000 +++ ./Nws/Makefile.in Sun Jun 18 22:46:15 2000 @@ -221,47 +221,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -Base.o: Base.c PopText.h BaseP.h Base.h cvt.h dimdefP.h BaseConstP.h \ - BaseConst.h BaseCompP.h BaseComp.h Init.h utils.h Traverse.h -BaseComp.o: BaseComp.c PopText.h BaseCompP.h BaseComp.h cvt.h dimdefP.h \ - BaseConstP.h BaseConst.h Init.h utils.h Traverse.h -BaseConst.o: BaseConst.c PopText.h BaseConstP.h BaseConst.h cvt.h \ - dimdefP.h BaseCompP.h BaseComp.h Init.h utils.h Traverse.h -BaseME.o: BaseME.c BaseMEP.h BaseME.h cvt.h dimdefP.h Init.h utils.h -Button.o: Button.c utils.h cvt.h misc.h cvt.h ButtonP.h SButtonP.h \ - BaseP.h Base.h dimdefP.h SButton.h Button.h Init.h -CheckME.o: CheckME.c CheckMEP.h LabelMEP.h BaseMEP.h BaseME.h cvt.h \ - dimdefP.h LabelME.h CheckME.h Init.h utils.h mdoff.xpm mdon.xpm \ - mroff.xpm mron.xpm mcoff.xpm mcon.xpm mchoff.xpm mchon.xpm \ - mc2on.xpm mc2off.xpm mcron.xpm mcroff.xpm -LabelME.o: LabelME.c LabelMEP.h BaseMEP.h BaseME.h cvt.h dimdefP.h \ - LabelME.h Init.h utils.h misc.h -LineME.o: LineME.c LineMEP.h BaseMEP.h BaseME.h cvt.h dimdefP.h LineME.h \ - Init.h -MBButton.o: MBButton.c MenuBarP.h RowP.h BaseConstP.h BaseConst.h cvt.h \ - dimdefP.h Row.h MenuBar.h Init.h MenuP.h Menu.h BaseMEP.h \ - BaseME.h MBButtonP.h LabelMEP.h BaseMEP.h LabelME.h MBButton.h -Menu.o: Menu.c MenuP.h Menu.h cvt.h dimdefP.h BaseMEP.h BaseME.h Init.h \ - utils.h cvt.h -MenuBar.o: MenuBar.c MenuBarP.h RowP.h BaseConstP.h BaseConst.h cvt.h \ - dimdefP.h Row.h MenuBar.h Init.h MBButtonP.h LabelMEP.h \ - BaseMEP.h BaseME.h LabelME.h MBButton.h -MenuButton.o: MenuButton.c MenuButtonP.h ButtonP.h SButtonP.h BaseP.h \ - Base.h cvt.h dimdefP.h SButton.h Button.h MenuButton.h Init.h -NwsVendor.o: NwsVendor.c NwsVendor.h NwsVendorP.h -PopText.o: PopText.c PopTextP.h PopText.h Init.h misc.h -Row.o: Row.c RowP.h BaseConstP.h BaseConst.h cvt.h dimdefP.h Row.h \ - Init.h misc.h Traverse.h -SButton.o: SButton.c SButtonP.h BaseP.h Base.h cvt.h dimdefP.h SButton.h \ - Init.h -SubME.o: SubME.c MenuP.h Menu.h cvt.h dimdefP.h BaseMEP.h BaseME.h \ - Init.h SubMEP.h LabelMEP.h BaseMEP.h LabelME.h SubME.h utils.h \ - trion.xpm trioff.xpm -Traverse.o: Traverse.c Traverse.h BaseConstP.h BaseConst.h cvt.h \ - dimdefP.h BaseCompP.h BaseComp.h -cvt.o: cvt.c cvt.h -misc.o: misc.c misc.h -utils.o: utils.c utils.h cvt.h BaseMEP.h BaseME.h dimdefP.h info-am: info: info-am diff -urNP ../siag-3.3.9/common/Makefile.in ./common/Makefile.in --- ../siag-3.3.9/common/Makefile.in Thu Jun 15 08:25:41 2000 +++ ./common/Makefile.in Sun Jun 18 22:46:13 2000 @@ -360,12 +360,6 @@ || exit 1; \ fi; \ done -cmalloc.o: cmalloc.c cmalloc.h -common.o: common.c ../config.h cmalloc.h common.h traceme.h -fonts.o: fonts.c common.h oldfonts.h fonts.h -globals.o: globals.c -ps.o: ps.c ps.h -richchar.o: richchar.c cmalloc.h richchar.h traceme.h info-am: info: info-recursive diff -urNP ../siag-3.3.9/common/common.c ./common/common.c --- ../siag-3.3.9/common/common.c Fri May 26 07:56:53 2000 +++ ./common/common.c Sun Jun 18 14:55:55 2000 @@ -519,3 +519,9 @@ return pid; } +int only_space(char *p) +{ + while (*p && isspace(*p)) p++; + return (*p == '\0'); +} + diff -urNP ../siag-3.3.9/common/common.h ./common/common.h --- ../siag-3.3.9/common/common.h Fri May 26 07:57:00 2000 +++ ./common/common.h Sun Jun 18 14:56:19 2000 @@ -47,6 +47,7 @@ extern char *translate(char *); extern void quotecpy(char *, char *, char *); extern pid_t spawn(const char *); +extern int only_space(char *); #undef _ #define _ translate diff -urNP ../siag-3.3.9/configure ./configure --- ../siag-3.3.9/configure Thu Jun 15 07:04:47 2000 +++ ./configure Sun Jun 18 22:43:50 2000 @@ -706,7 +706,7 @@ PACKAGE=siag -VERSION=3.3.9 +VERSION=3.3.10 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff -urNP ../siag-3.3.9/configure.in ./configure.in --- ../siag-3.3.9/configure.in Thu Jun 15 07:04:36 2000 +++ ./configure.in Thu Jun 15 16:40:35 2000 @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(README) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(siag, 3.3.9) +AM_INIT_AUTOMAKE(siag, 3.3.10) dnl Set of available languages dnl ALL_LINGUAS="" diff -urNP ../siag-3.3.9/egon/Makefile.am ./egon/Makefile.am --- ../siag-3.3.9/egon/Makefile.am Tue Jun 13 22:18:11 2000 +++ ./egon/Makefile.am Sun Jun 18 14:50:32 2000 @@ -1,6 +1,8 @@ SUBDIRS = docs examples +bin_SCRIPTS = mgptotxt + noinst_LIBRARIES = libegon.a libegon_a_SOURCES = main.c railway.c matrix.c fileio.c cmds.c \ @@ -15,5 +17,5 @@ scmdir = $(datadir)/siag/egon scm_DATA = animator.scm egon.scm menu.scm external.load external.save -EXTRA_DIST = $(scm_DATA) +EXTRA_DIST = $(bin_SCRIPTS) $(scm_DATA) diff -urNP ../siag-3.3.9/egon/Makefile.in ./egon/Makefile.in --- ../siag-3.3.9/egon/Makefile.in Thu Jun 15 08:25:51 2000 +++ ./egon/Makefile.in Sun Jun 18 22:46:23 2000 @@ -85,6 +85,8 @@ SUBDIRS = docs examples +bin_SCRIPTS = mgptotxt + noinst_LIBRARIES = libegon.a libegon_a_SOURCES = main.c railway.c matrix.c fileio.c cmds.c buffer.c fileio_egon.c fileio_c.c fileio_scm.c fileio_html.c fileio_mgp.c fileio_txt.c siodi.c guilei.c tcli.c pythoni.c @@ -96,7 +98,7 @@ scmdir = $(datadir)/siag/egon scm_DATA = animator.scm egon.scm menu.scm external.load external.save -EXTRA_DIST = $(scm_DATA) +EXTRA_DIST = $(bin_SCRIPTS) $(scm_DATA) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = @@ -116,6 +118,8 @@ fileio_egon.o fileio_c.o fileio_scm.o fileio_html.o fileio_mgp.o \ fileio_txt.o siodi.o guilei.o tcli.o pythoni.o AR = ar +SCRIPTS = $(bin_SCRIPTS) + CFLAGS = @CFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) @@ -178,6 +182,25 @@ $(AR) cru libegon.a $(libegon_a_OBJECTS) $(libegon_a_LIBADD) $(RANLIB) libegon.a +install-binSCRIPTS: $(bin_SCRIPTS) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(bindir) + @list='$(bin_SCRIPTS)'; for p in $$list; do \ + if test -f $$p; then \ + echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ + $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ + else if test -f $(srcdir)/$$p; then \ + echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ + $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ + else :; fi; fi; \ + done + +uninstall-binSCRIPTS: + @$(NORMAL_UNINSTALL) + list='$(bin_SCRIPTS)'; for p in $$list; do \ + rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ + done + install-scmDATA: $(scm_DATA) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(scmdir) @@ -311,21 +334,6 @@ || exit 1; \ fi; \ done -buffer.o: buffer.c egon.h ../common/fonts.h types.h ../common/common.h \ - ../common/cmalloc.h -cmds.o: cmds.c ../common/common.h ../common/cmalloc.h ../common/plugin.h \ - ../siod/siod.h egon.h ../common/fonts.h types.h \ - user_interface.h -fileio.o: fileio.c egon.h ../common/fonts.h types.h ../common/common.h \ - ../common/cmalloc.h user_interface.h -fileio_html.o: fileio_html.c egon.h ../common/fonts.h types.h \ - ../common/common.h -fileio_mgp.o: fileio_mgp.c egon.h ../common/fonts.h types.h \ - ../common/common.h -fileio_ps.o: fileio_ps.c egon.h ../common/fonts.h types.h \ - ../common/common.h -fileio_txt.o: fileio_txt.c egon.h ../common/fonts.h types.h \ - ../common/common.h info-am: info: info-recursive @@ -335,7 +343,7 @@ check: check-recursive installcheck-am: installcheck: installcheck-recursive -install-exec-am: +install-exec-am: install-binSCRIPTS install-exec: install-exec-recursive install-data-am: install-scmDATA @@ -344,15 +352,15 @@ install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-recursive -uninstall-am: uninstall-scmDATA +uninstall-am: uninstall-binSCRIPTS uninstall-scmDATA uninstall: uninstall-recursive -all-am: Makefile $(LIBRARIES) $(DATA) $(HEADERS) +all-am: Makefile $(LIBRARIES) $(SCRIPTS) $(DATA) $(HEADERS) all-redirect: all-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: installdirs-recursive installdirs-am: - $(mkinstalldirs) $(DESTDIR)$(scmdir) + $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(scmdir) mostlyclean-generic: @@ -390,8 +398,9 @@ .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ mostlyclean-compile distclean-compile clean-compile \ -maintainer-clean-compile uninstall-scmDATA install-scmDATA \ -install-data-recursive uninstall-data-recursive install-exec-recursive \ +maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS \ +uninstall-scmDATA install-scmDATA install-data-recursive \ +uninstall-data-recursive install-exec-recursive \ uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ all-recursive check-recursive installcheck-recursive info-recursive \ dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ diff -urNP ../siag-3.3.9/egon/docs/TODO ./egon/docs/TODO --- ../siag-3.3.9/egon/docs/TODO Mon Oct 26 15:40:59 1998 +++ ./egon/docs/TODO Sun Jun 18 20:14:35 2000 @@ -5,24 +5,16 @@ Make the -play option start the program in mode ANI_PLAY. -Printing. - -Full-screen animations. - The C format should also save any pixmaps, so that they can be compiled into the application. Make an extremely small demo program to show how an X program can get animation capabilities with hardly any code of its own. -In the future, I will want several scenes -and so on, but that will just have to wait. - To begin with, there can be only one animation window going at a time. Move object in list Change tick time and move if needed -Save as animated GIF (implemented! Requires netpbm and transgif.) Selection (how?) Repeat a *sequence* of pixmaps as many times as it takes diff -urNP ../siag-3.3.9/egon/docs/fileformats.html ./egon/docs/fileformats.html --- ../siag-3.3.9/egon/docs/fileformats.html Thu Apr 8 23:14:02 1999 +++ ./egon/docs/fileformats.html Sun Jun 18 20:13:10 2000 @@ -7,8 +7,7 @@

File Formats

-Egon Animator has support for several file formats, intended for various -purposes. +Egon Animator has support for the following file formats:
Egon Animator @@ -26,18 +25,31 @@
The animation can be saved as a multi-image GIF file, which when displayed in a WWW browser like Netscape performs the animation without using Egon Animator. Egon cannot - load animated GIF files. + load animated GIF files. Saving animated GIFs requires + the netpbm package and the gifmerge program, neither + of which is part of Siag Office but must be installed + separately.
Postscript -
Egon Animator is not yet, but will in time be, able to - save Postscript images of the animation scene, with - DSC comments and all to make the resulting files - post-processable. Normally, this code goes straight +
Egon Animator can + save Postscript images of the animation scene. + Normally, this code goes straight to the printer or to Ghostview for previewing, but it can also be saved in a file. +
Text +
Plaintext files can be read and written. +
HTML +
Hypertext Markup Language can be read and written. +
Magic Point +
Presentations created for the Magic Point program + can be read. +
MS Powerpoint +
Presentations created for MS Powerpoint can be read + if the pptHtml program is available. pptHtml is part of + xlHtml by Steve Grubb, linux_4ever@yahoo.com.

-
Ulric Eriksson - February 1997 - ulric@siag.nu
+
Ulric Eriksson - June 2000 - ulric@siag.nu
diff -urNP ../siag-3.3.9/egon/docs/keys.html ./egon/docs/keys.html --- ../siag-3.3.9/egon/docs/keys.html Thu Apr 8 23:14:02 1999 +++ ./egon/docs/keys.html Sun Jun 18 20:04:05 2000 @@ -4,86 +4,31 @@

Keybindings

-Although some commands are available on the menu, it is -faster in the long run to use the keyboard to control -Egon Animator. Here are the standard keybindings. +Here are the standard keybindings that are +available when the stage is visible.

-
Home or Ctrl-A -
Move to column 1 on the current line. -
End or Ctrl-E -
Move to the last used position on the current line. -
Ctrl-Space -
Moves the mark to the current position. -
Left arrow or Ctrl-B -
Move one position to the left. -
Right arrow or Ctrl-F -
Move one position to the right. -
Uparrow or Ctrl-P -
Move one position up. -
Downarrow or Ctrl-N -
Move one position down. -
Delete or Ctrl-D -
Delete the contents of the current position. -
g -
Ask for two numbers and jumps to those coordinates. -
o or Ctrl-X Ctrl-F -
Asks for a file name and opens the file with that name as a - Egon Animator document. -
s or Ctrl-X Ctrl-S -
Saves the currently open document - using the most recently used filename. If no name has been - given to the document, the name "noname" is used. -
W or Ctrl-X Ctrl-W -
Asks for a filename and saves the currently open document - using that filename. -
q or Ctrl-X Ctrl-C -
Quits from Egon Animator. If there are any changes that have not - been saved, Egon Animator asks if they should be saved. -
v -
Copies the contents of the block to the current position. -
Ctrl-X Ctrl-X -
Swaps point and mark. -
Alt-X or ( -
Asks for the name of a command to execute. This is useful - for commands that do not have keybindings or that take - arguments. -
< or Alt-< -
Move to the beginning of the buffer. -
> or Alt-> -
Move to the end of the buffer. -
PgUp or Alt-V -
Move the document up one windowful. -
PgDown or Ctrl-V -
Move the document down one windowful. -
b -
Move the document left one windowful. -
f -
Move the document right one windowful. +
H +
Pop down the stage. +
O +
Pop down the stage and open another file. +
Q +
Quit the program. +
S +
Stop the animation.
P -
Move point to line one. +
Move to previous animation frame.
N -
Move point to the last used line. -
? or Ctrl-? -
Prints information about the contents of the current position. +
Move to next animation frame. +
C +
Play the animation.
Space -
Sets the block to the area between mark and the current position. -
Ctrl-X k -
Kill the current buffer. -
Ctrl-X b -
Change to another buffer. -
Ctrl-X 2 -
Split the current window vertically. -
Ctrl-X 1 -
Delete all windows except the current one. -
Ctrl-X 0 -
Delete the current window. -
F1 or Ctrl-H c -
Display the online help for Egon Animator. F1 is marginally - context-sensitive. +
Move to the next slide. +
Backspace +
Move to the prevous slide.

-
Ulric Eriksson - February 1997 - ulric@siag.nu
+
Ulric Eriksson - June 2000 - ulric@siag.nu
diff -urNP ../siag-3.3.9/egon/egon.scm ./egon/egon.scm --- ../siag-3.3.9/egon/egon.scm Wed Jun 14 06:49:05 2000 +++ ./egon/egon.scm Sun Jun 18 14:52:20 2000 @@ -366,5 +366,9 @@ (if (executable-file "pptHtml") (register-converter "MS Powerpoint (*.ppt)" "*.html" "pptHtml %s > %s" + nil nil)) + (if (executable-file "mgptotxt") + (register-converter "Magic Point (*.mgp)" + "*.txt" "mgptotxt %s > %s" nil nil))) diff -urNP ../siag-3.3.9/egon/fileio.c ./egon/fileio.c --- ../siag-3.3.9/egon/fileio.c Wed Jun 7 08:25:13 2000 +++ ./egon/fileio.c Sun Jun 18 14:41:34 2000 @@ -26,6 +26,7 @@ #include #include +#include "../siod/siod.h" #include "egon.h" #include "types.h" #include "../common/common.h" @@ -37,6 +38,7 @@ static int format_count = 0; static int nloader = 0; static int nsaver = 0; +static char *fmt_name; struct { int (*load)(char *, buffer *); @@ -55,6 +57,7 @@ extern void fileio_txt_init(void); extern void fileio_ps_init(void); extern void fileio_html_init(void); +extern void fileio_extconv_init(void); static int siag_fmt; @@ -140,6 +143,7 @@ fileio_gif_init(); fileio_ps_init(); fileio_scm_init(); + fileio_extconv_init(); /* Put this catch-all last */ register_format(load_all, save_all, myformat, "All files (*)"); @@ -154,6 +158,8 @@ int (*fun)(char *, buffer *); int i; + fmt_name = format; + if (format) { i = fmt_index(format); if (i < 0) return 1; @@ -173,6 +179,8 @@ int (*fun)(char *, buffer *); int i; + fmt_name = format; + if (format) { i = fmt_index(format); if (i < 0) return 1; @@ -198,5 +206,143 @@ return fileformats[i].pattern; } return NULL; +} + +void get_format_handlers(char *ext, int *loader, int *saver) +{ + int i; + char e[1024]; + + sprintf(e, "(%s)", ext); + *loader = *saver = -1; + + for (i = 0; i < nloader; i++) { + if (strstr(loader_patterns[i], e)) { + *loader = fmt_index(loader_patterns[i]); + break; + } + } + for (i = 0; i < nsaver; i++) { + if (strstr(saver_patterns[i], e)) { + *saver = fmt_index(saver_patterns[i]); + break; + } + } +} + +static struct { + char *name; + char *lext; + char *lcmd; + char *sext; + char *scmd; +} *conv = NULL; +static int nconv = 0; + +static char *tempname; +static char *maketempname(void) +{ + char p[1024]; + if (tempname == NULL) { + sprintf(p, "%s/conv_ext.tmp", siag_tmpdir); + tempname = cstrdup(p); + } + return tempname; +} + +#define TMPNAME (maketempname()) + +#define BLACKLIST "\\\"\'$?*|&;()<>[]{}! \t\n\r" + +static int save_ext(char *fn, buffer *buf) +{ + int loader, saver; + int i, n; + char cmd[1024]; + char qn[1024]; + + for (i = 0; i < nconv; i++) { + if (!strcmp(fmt_name, conv[i].name)) break; + } + if (i == nconv) return 1; + get_format_handlers(conv[i].sext, &loader, &saver); + if (saver < 0) return 1; + n = savematrix(TMPNAME, buf, fileformats[saver].pattern); + quotecpy(qn, fn, BLACKLIST); + sprintf(cmd, conv[i].scmd, TMPNAME, qn); + system(cmd); + remove(TMPNAME); + return n; +} + +static int load_ext(char *fn, buffer *buf) +{ + int loader, saver; + int i, n; + char cmd[1024]; + char qn[1024]; + + for (i = 0; i < nconv; i++) { + if (!strcmp(fmt_name, conv[i].name)) break; + } + if (i == nconv) return 1; + get_format_handlers(conv[i].lext, &loader, &saver); + if (loader < 0) return 1; + quotecpy(qn, fn ,BLACKLIST); + sprintf(cmd, conv[i].lcmd, qn, TMPNAME); + system(cmd); + n = loadmatrix(TMPNAME, buf, fileformats[loader].pattern); + remove(TMPNAME); + return n; +} + +static int myformat_ext(char *fn) +{ + return 0; +} + +static void register_converter(char *fmt, char *lext, char *lcmd, + char *sext, char *scmd) +{ + int (*saver)(char *, buffer *); + int (*loader)(char *, buffer *); + + conv = crealloc(conv, (nconv+1)*sizeof *conv); + conv[nconv].name = cstrdup(fmt); + if (lext) { + loader = load_ext; + conv[nconv].lext = cstrdup(lext); + conv[nconv].lcmd = cstrdup(lcmd); + } else { + loader = NULL; + conv[nconv].lext = conv[nconv].lcmd = NULL; + } + if (sext) { + saver = save_ext; + conv[nconv].sext = cstrdup(sext); + conv[nconv].scmd = cstrdup(scmd); + } else { + saver = NULL; + conv[nconv].sext = conv[nconv].scmd = NULL; + } + nconv++; + register_format(loader, saver, myformat_ext, fmt); +} + +static LISP lregister_converter(LISP fmt, LISP lext, LISP lcmd, + LISP sext, LISP scmd) +{ + register_converter(get_c_string(fmt), + NULLP(lext)?NULL:get_c_string(lext), + NULLP(lcmd)?NULL:get_c_string(lcmd), + NULLP(sext)?NULL:get_c_string(sext), + NULLP(scmd)?NULL:get_c_string(scmd)); + return NIL; +} + +void fileio_extconv_init(void) +{ + init_subr_5("register-converter", lregister_converter); + execute("(register-converters)"); } diff -urNP ../siag-3.3.9/egon/fileio_html.c ./egon/fileio_html.c --- ../siag-3.3.9/egon/fileio_html.c Wed Jun 7 08:06:17 2000 +++ ./egon/fileio_html.c Sun Jun 18 19:21:48 2000 @@ -31,7 +31,476 @@ #include "egon.h" #include "types.h" #include "../common/common.h" +#include "../common/cmalloc.h" +static void save_line(FILE *fp, char *line) +{ + int c; + char b[100]; + if (!line) return; + while ((c = *line)) { + to_cchar(b, c); + fprintf(fp, b); + line++; + } +} + +static int save(char *fn, buffer *buf) +/* Returns: 0 if successful, otherwise 1 */ +{ + FILE *fp; + int s = 0; + ani_object *o = NULL; + + if ((fp = fopen(fn, "w")) == NULL) return 1; + + /* do the header */ + fprintf(fp, "\n\n\n"); + /* use buffer name as title */ + save_line(fp, buf->name); + + fprintf(fp, "\n\n\n\n\n"); + + for (s = 0; s < buf->nsht; s++) { + for (o = buf->sht[s].cast; o; o = o->next) { + if (o->type == ANI_STRING) { + save_line(fp, o->string); + fprintf(fp, "

\n"); + } + } + } + fprintf(fp, "\n\n"); + fclose(fp); + return 0; +} + + +static enum {START, INATAG, INACHAR, END} state; +static int errflag; +static buffer *buf; +static char tagbuf[256]; /* for &chars; and */ +static char outbuf[256]; /* for unwritten lines */ +static int tbi, obi, mute, pre, sty; +static int fmt; +static unsigned int row; +static int sht; +static ani_object *ao; +static int y; +static int nobj; + +/* replace these two functions with the ecPrintChar from fileio_rtf.c, which + handles line breaking and formats properly + + Even better: don't touch anything until the bop code works. Then just + insert everything as it is and rebreak the whole document when we are + done. It will be faster and more reliable, and work for the RTF loader + as well. + + Store each paragraph on a long line and break it up afterwards. That + way we *know* that each line will be a bop, and we only need to change + the style in tag handlers that deal with such things. Preformatted + text needs special handling, as usual, but even such text get one + bop per line. +*/ + +static void emitchar(int c) +{ + char name[1024]; + ani_script *as; + + if (mute) return; + + if (c == '\f') { + if (obi) emitchar('\n'); /* flush pending text */ + sht++; + if (sht >= buf->nsht) { + buffer_add_sheet(buf, sht); + } + y = 20; + } else if (c == '\n') { /* break the current line */ + outbuf[obi] = '\0'; + if (!only_space(outbuf)) { + if (buf->sht[sht].cast == NULL) { + ao = cmalloc(sizeof *ao); + buf->sht[sht].cast = ao; + } else { + ao->next = cmalloc(sizeof *ao); + ao = ao->next; + } + ao->next = NULL; + ao->type = ANI_STRING; + ao->fmt = fmt; + sprintf(name, "String %d", nobj++); + ao->name = cstrdup(name); + ao->string = cstrdup(outbuf); + as = cmalloc(sizeof *as); + ao->script = as; + as->next = NULL; + as->time = 0; + as->x = 10; + as->y = y; + as->width = 500; + as->height = 20; + as->visible = TRUE; + } + y += 20; + obi = 0; + } else { + if (obi < 255) outbuf[obi++] = c; + } +} + + +/* &#xxx; => emitchar(atoi(xxx)) */ +static void emitcchar(char *p) +{ + int i; + i = from_cchar(p); + if (i != -1) emitchar(i); +} + +static void tag_ignore(void) +{ + ; +} + +static void tag_newline(void) +{ + emitchar('\n'); +} + +static void tag_listitem(void) +{ + emitchar('\n'); + emitchar(' '); + emitchar('-'); + emitchar(' '); +} + +static void tag_descdesc(void) +{ + emitchar('\n'); + emitchar('\t'); +} + +static void tag_mute(void) +{ + mute = 1; +} + +static void tag_unmute(void) +{ + mute = 0; +} + +static void tag_pre(void) +{ +#if 0 + sty = STY_PREFORMAT; + fmt = style_table[sty].format; +#endif + emitchar('\n'); + pre = 1; +} + +static void tag_pre_(void) +{ +#if 0 + sty = STY_DEFAULT; + fmt = style_table[sty].format; +#endif + emitchar('\n'); + pre = 0; +} + +static void tag_h1(void) +{ +#if 0 + sty = STY_HEADER1; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_h2(void) +{ +#if 0 + sty = STY_HEADER2; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_h3(void) +{ +#if 0 + sty = STY_HEADER3; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_h4(void) +{ +#if 0 + sty = STY_HEADER4; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_h5(void) +{ +#if 0 + sty = STY_HEADER5; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_h6(void) +{ +#if 0 + sty = STY_HEADER6; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_address(void) +{ +#if 0 + sty = STY_ADDRESS; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_plain(void) +{ +#if 0 + sty = STY_DEFAULT; + fmt = style_table[sty].format; +#endif + emitchar('\n'); +} + +static void tag_i(void) +{ +#if 0 + sfmt ft; + decode_format(fmt, ~0, &ft); + ft.italic = 1; + fmt = encode_format(~0, &ft); +#else + ; +#endif +} + +static void tag_i_(void) +{ +#if 0 + sfmt ft; + decode_format(fmt, ~0, &ft); + ft.italic = 0; + fmt = encode_format(~0, &ft); +#else + ; +#endif +} + +static void tag_b(void) +{ +#if 0 + sfmt ft; + decode_format(fmt, ~0, &ft); + ft.bold = 1; + fmt = encode_format(~0, &ft); +#else + ; +#endif +} + +static void tag_b_(void) +{ +#if 0 + sfmt ft; + decode_format(fmt, ~0, &ft); + ft.bold = 0; + fmt = encode_format(~0, &ft); +#else + ; +#endif +} + +static struct { + char *name; + void (*action)(void); +} tag[] = { + {"br", tag_newline}, + {"p", tag_newline}, + {"ol", tag_newline}, + {"/ol", tag_newline}, + {"ul", tag_newline}, + {"li", tag_listitem}, + {"dl", tag_newline}, + {"dt", tag_newline}, + {"dd", tag_descdesc}, + {"table", tag_newline}, + {"/table", tag_newline}, + {"tr", tag_newline}, + {"th", tag_newline}, + {"/p", tag_ignore}, + {"h1", tag_h1}, + {"/h1", tag_plain}, + {"h2", tag_h2}, + {"/h2", tag_plain}, + {"h3", tag_h3}, + {"/h3", tag_plain}, + {"h4", tag_h4}, + {"/h4", tag_plain}, + {"h5", tag_h5}, + {"/h5", tag_plain}, + {"h6", tag_h6}, + {"/h6", tag_plain}, + {"hr", tag_newline}, + {"li", tag_newline}, + {"pre", tag_pre}, + {"/pre", tag_pre_}, + {"address", tag_address}, + {"/address", tag_plain}, + {"i", tag_i}, + {"/i", tag_i_}, + {"b", tag_b}, + {"/b", tag_b_}, + {"head", tag_mute}, + {"/head", tag_unmute}, + {NULL, NULL} +}; + +/* any unrecognized tag is ignored */ +static void emittag(char *p) +{ + int i; + for (i = 0; p[i]; i++) + if (isspace(p[i])) break; + p[i] = '\0'; + for (i = 0; tag[i].name; i++) + if (!cstrcasecmp(p, tag[i].name)) break; + if (tag[i].name) (*tag[i].action)(); +} + +static void html_char(int c) +{ + switch (state) { + case START: + if (isspace(c)) { + if (pre) emitchar(c); + else emitchar(' '); + } else if (c == '<') { + tbi = 0; + state = INATAG; + } else if (c == '&') { + tbi = 0; + state = INACHAR; + } else if (c == EOF) { + state = END; + } else { + emitchar(c); + } + break; + case INATAG: + if (c == '>') { + tagbuf[tbi] = '\0'; + emittag(tagbuf); + state = START; + } else if (c == EOF) { + errflag = 1; + state = END; + } else { + if (tbi+10 < sizeof tagbuf) + tagbuf[tbi++] = c; + } + break; + case INACHAR: + if (c == ';') { + tagbuf[tbi] = '\0'; + emitcchar(tagbuf); + state = START; + } else if (c == EOF) { + errflag = 1; + state = END; + } else { + if (tbi+10 < sizeof tagbuf) + tagbuf[tbi++] = c; + } + break; + default: + fprintf(stderr, "In html_char(): shouldn't be here!\n"); + errflag = 1; + state = END; + break; + } +} + +static int load(char *fn, buffer *b) +{ + FILE *fp; + sfmt ft; + char instr[1024]; + char *p; + + fp = fopen(fn, "r"); + if (!fp) return 1; + + nobj = 0; + y = 20; + buf = b; + decode_format(0, ~0, &ft); + ft.size = 140; + ft.fg = "white"; + fmt = encode_format(~0, &ft); + buf->sht[sht].delta = 100; + buf->sht[sht].duration = 4000; + buf->sht[sht].now = 0; + buf->width = 600; + buf->height = 400; + buf->sht[sht].cast = NULL; + buf->state = ANI_STOP; + buf->sht[sht].bg = NULL; + buf->change = FALSE; + buf->sht[sht].plugin = NULL; + buf->sht[sht].nplugin = 0; + + state = START; + errflag = 0; + mute = 0; + obi = 0; + tbi = 0; + pre = 0; + row = 1; + sht = 0; + sty = STY_DEFAULT; +#if 0 + fmt = style_table[sty].format; +#endif + /* some trickery required to figure out powerpoint slides */ + while (fgets(instr, 1024, fp)) { + if (state == END) { + break; + } else if (!cstrcasecmp(instr, "



\n")) { + /* pptHtml uses this as page separator */ + emitchar('\f'); + } else { + for (p = instr; *p; p++) + html_char(*p); + } + } + + buf->change = 0; + fclose(fp); + return 0; +} /* --- format guessing: @@ -58,7 +527,7 @@ */ void fileio_html_init(void) { - register_format(NULL, NULL, myformat, + register_format(load, save, myformat, "Hypertext Markup Language (*.html)"); } diff -urNP ../siag-3.3.9/egon/fileio_txt.c ./egon/fileio_txt.c --- ../siag-3.3.9/egon/fileio_txt.c Wed Jun 7 08:04:59 2000 +++ ./egon/fileio_txt.c Sun Jun 18 18:49:37 2000 @@ -31,6 +31,103 @@ #include "egon.h" #include "types.h" #include "../common/common.h" +#include "../common/cmalloc.h" + +/* All objects of type string are saved. No attempt is made to preserve +the layout. Objects of other types are ignored. Form feed between sheets. +*/ +static int save(char *fn, buffer *buf) +{ + FILE *fp = fopen(fn, "w"); + ani_object *o = NULL; + int s; + + if (!fp) return 1; + + for (s = 0; s < buf->nsht; s++) { + if (s) fputs("\f\n", fp); + for (o = buf->sht[s].cast; o; o = o->next) { + if (o->type == ANI_STRING) { + fprintf(fp, "%s\n", o->string); + } + } + } + fclose(fp); + return 0; +} + +static int load(char *fn, buffer *buf) +{ + FILE *fp; + ani_object *o = NULL; + ani_script *s = NULL; + char b[1024], name[100]; + int sht = 0; + int y = 20; + int n = 1; + int f; + sfmt fmt; + + if ((fp = fopen(fn, "r")) == NULL) return 1; + + decode_format(0, ~0, &fmt); /* put valid fields in fmt */ + fmt.size = 140; + fmt.fg = "white"; + f = encode_format(~0, &fmt); + + buf->sht[sht].delta = 100; + buf->sht[sht].duration = 4000; + buf->sht[sht].now = 0; + buf->width = 600; + buf->height = 400; + buf->sht[sht].cast = NULL; + buf->state = ANI_STOP; + buf->sht[sht].bg = NULL; + buf->change = FALSE; + buf->sht[sht].plugin = NULL; + buf->sht[sht].nplugin = 0; + + while (fgets(b, 1024, fp) != NULL) { + if (b[0] == '\f') { + sht++; + if (sht >= buf->nsht) { + buffer_add_sheet(buf, sht); + } + y = 20; + } else { + chomp(b); + if (only_space(b)) { + y += 20; + continue; + } + if (buf->sht[sht].cast == NULL) { + o = (ani_object *)cmalloc(sizeof(ani_object)); + buf->sht[sht].cast = o; + } else { + o->next = (ani_object *)cmalloc(sizeof(ani_object)); + o = o->next; + } + o->next = NULL; + o->type = ANI_STRING; + o->fmt = f; + sprintf(name, "String %d", n++); + o->name = cstrdup(name); + o->string = cstrdup(b); + s = (ani_script *)cmalloc(sizeof(ani_script)); + o->script = s; + s->next = NULL; + s->time = 0; + s->x = 10; + s->y = y; + s->width = 500; + s->height = 20; + s->visible = TRUE; + y += 20; + } + } + fclose(fp); + return 0; +} /* --- @@ -58,6 +155,6 @@ */ void fileio_txt_init(void) { - register_format(NULL, NULL, myformat, "Text (*.txt)"); + register_format(load, save, myformat, "Text (*.txt)"); } diff -urNP ../siag-3.3.9/egon/menu.scm ./egon/menu.scm --- ../siag-3.3.9/egon/menu.scm Tue Jun 13 22:28:34 2000 +++ ./egon/menu.scm Sat Jun 17 22:33:24 2000 @@ -57,15 +57,15 @@ (add-menu-entry "Format" "Header and Footer" "(change-headfoot \"\")") (add-menu-entry "Format" "First Page Number" "(change-first-page \"\")") -(add-menu "Window") -(add-menu-entry "Window" "Change Buffer" "(switch-to-buffer)") - -(add-menu "Window") -(add-menu-entry "Window" "Change Buffer" "(switch-to-buffer)") - -(add-menu "Window") -(add-menu-entry "Window" "Change Buffer" "(switch-to-buffer)") - +;(add-menu "Window") +;(add-menu-entry "Window" "Change Buffer" "(switch-to-buffer)") +; +;(add-menu "Window") +;(add-menu-entry "Window" "Change Buffer" "(switch-to-buffer)") +; +;(add-menu "Window") +;(add-menu-entry "Window" "Change Buffer" "(switch-to-buffer)") +; (add-menu "Window") (add-menu-entry "Window" "Change Buffer" "(switch-to-buffer)") (add-menu-entry "Window" "Delete Buffer" "(kill-buffer)") diff -urNP ../siag-3.3.9/egon/mgptotxt ./egon/mgptotxt --- ../siag-3.3.9/egon/mgptotxt Thu Jan 1 01:00:00 1970 +++ ./egon/mgptotxt Sun Jun 18 18:59:34 2000 @@ -0,0 +1,3 @@ +#!/bin/sh +# Print formfeed for %page. Ignore all other directives. +cat $1 | awk '/^%page/ {print "\f"}; !/^%/' diff -urNP ../siag-3.3.9/gvu/Makefile.in ./gvu/Makefile.in --- ../siag-3.3.9/gvu/Makefile.in Thu Jun 15 08:25:56 2000 +++ ./gvu/Makefile.in Sun Jun 18 22:46:28 2000 @@ -303,21 +303,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -callbacks.o: callbacks.c ../common/common.h ../common/cmalloc.h \ - ../xcommon/filesel.h ../xcommon/dialogs.h ../xcommon/xcommon.h \ - gv.h ../xcommon/Ghostview.h ../Nws/cvt.h ../common/ps.h -main.o: main.c blank.xpm dot.xpm ../Nws/utils.h ../Nws/cvt.h \ - ../Nws/Menu.h ../Nws/MenuBar.h ../Nws/Row.h ../Nws/BaseConst.h \ - ../Nws/MBButton.h ../Nws/LabelME.h ../Nws/BaseME.h \ - ../Nws/LineME.h ../Nws/SubME.h ../common/common.h \ - ../xcommon/xcommon.h ../xcommon/dialogs.h ../xcommon/Rudegrid.h \ - ../xcommon/Frame.h ../xcommon/Tooltip.h ../xcommon/Handle.h \ - ../xcommon/../XawM/Label.h gv.h ../xcommon/Ghostview.h \ - ../common/ps.h ../xcommon/xcommon-ad.h ../xcommon/filesel-ad.h \ - ../xcommon/dialogs-ad.h ../xcommon/nws-ad.h gvu-ad.h -misc.o: misc.c ../Nws/Menu.h ../Nws/cvt.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h gv.h \ - ../xcommon/Ghostview.h ../common/ps.h info-am: info: info-am diff -urNP ../siag-3.3.9/plugins/Makefile.in ./plugins/Makefile.in --- ../siag-3.3.9/plugins/Makefile.in Thu Jun 15 08:25:53 2000 +++ ./plugins/Makefile.in Sun Jun 18 22:46:25 2000 @@ -380,21 +380,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -clipart.o: clipart.c ../common/cmalloc.h ../common/ps.h \ - ../common/common.h ../xcommon/xcommon.h ../xcommon/Rudegrid.h \ - ../xcommon/Frame.h ../xcommon/filesel.h ../xcommon/dialogs.h \ - ../xcommon/Ghostview.h -dummy.o: dummy.c ../siod/siod.h ../common/common.h ../common/cmalloc.h -form.o: form.c ../xcommon/Notebook.h ../xcommon/Check.h \ - ../xcommon/TextField.h ../xcommon/Frame.h ../xcommon/Combo.h \ - form-ad.h -hello.o: hello.c -image.o: image.c ../common/common.h ../common/cmalloc.h \ - ../common/bitmaps/image.xpm ../xcommon/Image.h \ - ../xcommon/icon.h -plot.o: plot.c ../common/common.h ../common/cmalloc.h ../xcommon/Image.h -siodi.o: siodi.c ../siod/siod.h -text.o: text.c ../common/common.h info-am: info: info-am diff -urNP ../siag-3.3.9/pw/Makefile.in ./pw/Makefile.in --- ../siag-3.3.9/pw/Makefile.in Thu Jun 15 08:25:49 2000 +++ ./pw/Makefile.in Sun Jun 18 22:46:21 2000 @@ -313,47 +313,6 @@ || exit 1; \ fi; \ done -buffer.o: buffer.c ../common/common.h ../common/cmalloc.h \ - ../common/plugin.h pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h -cmds.o: cmds.c ../common/cmalloc.h ../common/common.h ../common/plugin.h \ - pw.h ../common/richchar.h ../common/fonts.h ../common/traceme.h \ - user_interface.h ../siod/siod.h -fileio.o: fileio.c ../siod/siod.h ../common/common.h ../common/cmalloc.h \ - pw.h ../common/richchar.h ../common/fonts.h ../common/traceme.h \ - user_interface.h -fileio_html.o: fileio_html.c ../common/common.h pw.h \ - ../common/richchar.h ../common/fonts.h ../common/traceme.h \ - user_interface.h -fileio_ps.o: fileio_ps.c pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h ../common/common.h \ - ../common/cmalloc.h ../common/plugin.h -fileio_pw.o: fileio_pw.c ../common/common.h ../common/cmalloc.h \ - ../common/plugin.h pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h -fileio_rtf.o: fileio_rtf.c pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h ../common/common.h \ - ../common/cmalloc.h -fileio_txt.o: fileio_txt.c pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h ../common/common.h \ - ../common/cmalloc.h -guilei.o: guilei.c -main.o: main.c ../common/common.h ../common/cmalloc.h pw.h \ - ../common/richchar.h ../common/fonts.h ../common/traceme.h \ - user_interface.h ../siod/siod.h -matrix.o: matrix.c ../common/common.h ../common/cmalloc.h \ - ../common/plugin.h pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h -position.o: position.c pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h -pythoni.o: pythoni.c -railway.o: railway.c ../siod/siod.h ../common/common.h \ - ../common/cmalloc.h pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h -siodi.o: siodi.c pw.h ../common/richchar.h ../common/fonts.h \ - ../common/traceme.h user_interface.h ../siod/siod.h \ - ../common/common.h -tcli.o: tcli.c info-am: info: info-recursive diff -urNP ../siag-3.3.9/siag/Makefile.in ./siag/Makefile.in --- ../siag-3.3.9/siag/Makefile.in Thu Jun 15 08:25:47 2000 +++ ./siag/Makefile.in Sun Jun 18 22:46:18 2000 @@ -317,52 +317,6 @@ || exit 1; \ fi; \ done -buffer.o: buffer.c ../common/common.h ../common/cmalloc.h \ - ../common/fonts.h ../common/plugin.h calc.h ../common/traceme.h \ - user_interface.h -ci.o: ci.c ../common/cmalloc.h ../common/common.h calc.h \ - ../common/traceme.h user_interface.h -cmds.o: cmds.c ../siod/siod.h ../common/cmalloc.h ../common/fonts.h \ - ../common/common.h ../common/plugin.h calc.h \ - ../common/traceme.h user_interface.h -fileio.o: fileio.c ../siod/siod.h ../common/common.h ../common/cmalloc.h \ - ../common/fonts.h calc.h ../common/traceme.h user_interface.h \ - fileio.h -fileio_html.o: fileio_html.c ../common/fonts.h ../common/common.h calc.h \ - ../common/traceme.h user_interface.h -fileio_latex.o: fileio_latex.c ../common/common.h calc.h \ - ../common/traceme.h user_interface.h -fileio_ps.o: fileio_ps.c ../common/fonts.h ../common/common.h \ - ../common/plugin.h calc.h ../common/traceme.h user_interface.h -fileio_scm.o: fileio_scm.c calc.h ../common/traceme.h user_interface.h -fileio_siag.o: fileio_siag.c ../common/cmalloc.h ../common/fonts.h \ - ../common/common.h ../common/plugin.h calc.h \ - ../common/traceme.h user_interface.h -fileio_tbl.o: fileio_tbl.c ../common/common.h calc.h ../common/traceme.h \ - user_interface.h -fileio_txt.o: fileio_txt.c calc.h ../common/traceme.h user_interface.h \ - ../common/fonts.h ../common/common.h -fileio_wk1.o: fileio_wk1.c ../siod/siod.h ../common/common.h \ - ../common/cmalloc.h ../common/fonts.h calc.h \ - ../common/traceme.h user_interface.h -globals.o: globals.c calc.h ../common/traceme.h user_interface.h -guilei.o: guilei.c -main.o: main.c ../common/cmalloc.h ../common/common.h ../common/fonts.h \ - calc.h ../common/traceme.h user_interface.h ../siod/siod.h -mathwrap.o: mathwrap.c ../siod/siod.h ../config.h -matrix.o: matrix.c ../common/common.h ../common/cmalloc.h \ - ../common/fonts.h calc.h ../common/traceme.h user_interface.h -position.o: position.c calc.h ../common/traceme.h user_interface.h -pythoni.o: pythoni.c -railway.o: railway.c ../common/cmalloc.h calc.h ../common/traceme.h \ - user_interface.h ../common/common.h -selection.o: selection.c ../common/cmalloc.h ../common/common.h calc.h \ - ../common/traceme.h user_interface.h selection.h -siodi.o: siodi.c ../common/cmalloc.h ../common/common.h calc.h \ - ../common/traceme.h user_interface.h ../siod/siod.h -tcli.o: tcli.c -window.o: window.c ../siod/siod.h ../common/common.h ../common/cmalloc.h \ - ../common/fonts.h calc.h ../common/traceme.h user_interface.h info-am: info: info-recursive diff -urNP ../siag-3.3.9/siag/fileio_html.c ./siag/fileio_html.c --- ../siag-3.3.9/siag/fileio_html.c Fri Apr 28 13:44:10 2000 +++ ./siag/fileio_html.c Sun Jun 18 14:56:54 2000 @@ -115,11 +115,6 @@ static int pi; static int sf = 0; -static int only_space(char *p) -{ - while (*p && isspace(*p)) p++; - return (*p == '\0'); -} static int guess_type(char *p) { diff -urNP ../siag-3.3.9/siag/fileio_txt.c ./siag/fileio_txt.c --- ../siag-3.3.9/siag/fileio_txt.c Fri Apr 28 13:44:32 2000 +++ ./siag/fileio_txt.c Sun Jun 18 14:56:59 2000 @@ -90,12 +90,6 @@ static int pi; static int sf = 0; -static int only_space(char *p) -{ - while (*p && isspace(*p)) p++; - return (*p == '\0'); -} - static int guess_type(char *p) { char *endp; diff -urNP ../siag-3.3.9/siag/tcli.c ./siag/tcli.c --- ../siag-3.3.9/siag/tcli.c Thu Apr 6 14:53:23 2000 +++ ./siag/tcli.c Sun Jun 18 14:57:03 2000 @@ -48,11 +48,6 @@ static double value; static int tcl_interpreter; -static int only_space(char *p) -{ - while (*p && isspace(*p)) p++; - return (*p == '\0'); -} static int guess_type(char *p) { diff -urNP ../siag-3.3.9/siod/Makefile.in ./siod/Makefile.in --- ../siag-3.3.9/siod/Makefile.in Thu Jun 15 08:25:41 2000 +++ ./siod/Makefile.in Sun Jun 18 22:46:11 2000 @@ -314,15 +314,6 @@ || exit 1; \ fi; \ done -md5.o: md5.c md5.h -ndbm.o: ndbm.c -regex.o: regex.c siod.h -slib.o: slib.c siod.h siodp.h silence.i ../common/traceme.h -sliba.o: sliba.c siod.h siodp.h -slibu.o: slibu.c ../config.h siod.h siodp.h md5.h -ss.o: ss.c siod.h ss.h -tar.o: tar.c siod.h -trace.o: trace.c siod.h siodp.h info-am: info: info-recursive diff -urNP ../siag-3.3.9/tsiag/Makefile.in ./tsiag/Makefile.in --- ../siag-3.3.9/tsiag/Makefile.in Thu Jun 15 08:25:49 2000 +++ ./tsiag/Makefile.in Sun Jun 18 22:46:20 2000 @@ -231,14 +231,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -fonts.o: fonts.c ../common/common.h ../common/cmalloc.h \ - ../common/oldfonts.h ../common/fonts.h fonts.h -tsiag.o: tsiag.c ../common/common.h ../common/cmalloc.h ../siod/siod.h \ - ../siag/calc.h ../siag/../common/traceme.h \ - ../siag/user_interface.h tsiag.h -window.o: window.c ../config.h ../common/cmalloc.h ../common/common.h \ - ../common/fonts.h ../siag/calc.h ../siag/../common/traceme.h \ - ../siag/user_interface.h ../siod/siod.h tsiag.h info-am: info: info-am diff -urNP ../siag-3.3.9/xcommon/Makefile.in ./xcommon/Makefile.in --- ../siag-3.3.9/xcommon/Makefile.in Thu Jun 15 08:25:45 2000 +++ ./xcommon/Makefile.in Sun Jun 18 22:46:16 2000 @@ -314,71 +314,6 @@ || exit 1; \ fi; \ done -Animator.o: Animator.c ../common/cmalloc.h ../common/common.h \ - ../common/fonts.h xcommon.h xfonts.h ../config.h \ - ../common/richchar.h AnimatorP.h Animator.h ../egon/types.h -Canvas.o: Canvas.c xfonts.h ../config.h ../common/richchar.h CanvasP.h \ - Canvas.h -Check.o: Check.c ../common/common.h ../common/cmalloc.h CheckP.h Check.h \ - check_motif_off.xpm check_motif_on.xpm radio_motif_off.xpm \ - radio_motif_on.xpm tickbox_off.xpm tickbox_on.xpm \ - radio_16_off.xpm radio_16_on.xpm -Combo.o: Combo.c TextField.h ComboP.h Combo.h combo.xpm -DragAndDrop.o: DragAndDrop.c DragAndDrop.h DragAndDropTypes.h \ - cursor/file.xbm cursor/file_mask.xbm cursor/files.xbm \ - cursor/files_mask.xbm cursor/dir.xbm cursor/dir_mask.xbm \ - cursor/text.xbm cursor/text_mask.xbm cursor/grey.xbm \ - cursor/grey_mask.xbm cursor/link.xbm cursor/link_mask.xbm \ - cursor/app.xbm cursor/app_mask.xbm cursor/url.xbm \ - cursor/url_mask.xbm cursor/mime.xbm cursor/mime_mask.xbm -Frame.o: Frame.c FrameP.h Frame.h Gcs.h -Gcs.o: Gcs.c Gcs.h -Ghostview.o: Ghostview.c GhostviewP.h Ghostview.h -Handle.o: Handle.c HandleP.h Handle.h ../XawM/Label.h ../XawM/Simple.h \ - ../XawM/XawVersion.h ../XawM/LabelP.h ../XawM/ThreeDP.h \ - ../XawM/ThreeD.h ../XawM/SimpleP.h xcommon.h -Image.o: Image.c xfonts.h ../config.h ../common/richchar.h ImageP.h \ - Image.h -Notebook.o: Notebook.c ../common/common.h ../common/cmalloc.h \ - NotebookP.h Notebook.h -Richtext.o: Richtext.c ../common/cmalloc.h ../common/fonts.h xfonts.h \ - ../config.h ../common/richchar.h embed.h Ruler.h \ - ../common/traceme.h RichtextP.h Richtext.h -Rudegrid.o: Rudegrid.c RudegridP.h Rudegrid.h -Ruler.o: Ruler.c xfonts.h ../config.h ../common/richchar.h RulerP.h \ - Ruler.h -Tabbing.o: Tabbing.c ../common/common.h ../common/cmalloc.h TabbingP.h \ - Tabbing.h -Table.o: Table.c ../common/cmalloc.h ../common/fonts.h xfonts.h \ - ../config.h ../common/richchar.h embed.h TableP.h Table.h -Tabs.o: Tabs.c TabsP.h Tabs.h Gcs.h -TextField.o: TextField.c TextFieldP.h ../config.h TextField.h -Tooltip.o: Tooltip.c TooltipP.h Tooltip.h ../XawM/Cardinals.h \ - ../XawM/Label.h ../XawM/Simple.h ../XawM/XawVersion.h \ - ../common/cmalloc.h -dialogs.o: dialogs.c ../common/common.h ../common/bitmaps/unknown.xpm \ - dialogs.h xcommon.h TextField.h Rudegrid.h Frame.h Image.h -embed.o: embed.c ../common/cmalloc.h embed.h -filesel.o: filesel.c ../config.h ../Nws/Menu.h ../Nws/cvt.h \ - ../Nws/MenuBar.h ../Nws/Row.h ../Nws/BaseConst.h \ - ../Nws/MenuButton.h ../Nws/Button.h ../Nws/SButton.h \ - ../Nws/Base.h ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h \ - ../common/cmalloc.h ../common/common.h TextField.h xcommon.h \ - dialogs.h filesel.h Rudegrid.h Frame.h -fonts.o: fonts.c ../config.h ../common/common.h ../common/cmalloc.h \ - ../common/oldfonts.h ../common/fonts.h ../common/richchar.h \ - ../common/traceme.h xfonts.h -forminput.o: forminput.c ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MenuButton.h \ - ../Nws/Button.h ../Nws/SButton.h ../Nws/Base.h ../Nws/LabelME.h \ - ../Nws/BaseME.h ../Nws/LineME.h ../Nws/SubME.h ../siod/siod.h \ - ../common/cmalloc.h ../common/common.h TextField.h Check.h \ - xcommon.h dialogs.h -icon.o: icon.c -plugin.o: plugin.c ../common/common.h ../common/cmalloc.h plugin.h \ - ../common/plugin.h ../common/traceme.h -tooltip.o: tooltip.c ../common/common.h xcommon.h -xcommon.o: xcommon.c ../common/common.h info-am: info: info-recursive diff -urNP ../siag-3.3.9/xed/Makefile.in ./xed/Makefile.in --- ../siag-3.3.9/xed/Makefile.in Thu Jun 15 08:25:54 2000 +++ ./xed/Makefile.in Sun Jun 18 22:46:25 2000 @@ -304,47 +304,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -commands.o: commands.c xedit.h ../Nws/Menu.h ../Nws/cvt.h \ - ../Nws/MenuBar.h ../Nws/Row.h ../Nws/BaseConst.h \ - ../Nws/MBButton.h ../Nws/LabelME.h ../Nws/BaseME.h \ - ../Nws/LineME.h -dnd.o: dnd.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h -edit.o: edit.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h -file.o: file.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h \ - ../common/common.h -file_sel.o: file_sel.c ../common/cmalloc.h ../xcommon/filesel.h -jump.o: jump.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h -search.o: search.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h -special.o: special.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h \ - ../common/common.h ../xcommon/xcommon.h ../xcommon/dialogs.h -warning.o: warning.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h \ - ../common/common.h -xedit.o: xedit.c xedit.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h \ - ../common/bitmaps/xedplus.xpm ../common/common.h \ - ../xcommon/icon.h ../xcommon/Frame.h ../xcommon/Rudegrid.h \ - ../xcommon/Tooltip.h ../xcommon/Handle.h \ - ../xcommon/../XawM/Label.h ../xcommon/xcommon.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h \ - ../xcommon/dialogs.h ../xcommon/xcommon-ad.h \ - ../xcommon/dialogs-ad.h ../xcommon/filesel-ad.h \ - ../xcommon/nws-ad.h app-defaults.h info-am: info: info-am diff -urNP ../siag-3.3.9/xegon/Egon.ad ./xegon/Egon.ad --- ../siag-3.3.9/xegon/Egon.ad Sat Jun 3 23:28:54 2000 +++ ./xegon/Egon.ad Sun Jun 18 20:04:58 2000 @@ -148,185 +148,35 @@ : siag-highlight(1)\n\ : siag-unhighlight(0) -Egon*tbOpen.translations: #override \n\ - : siag-highlight(1)\ - tooltip() \n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbSave.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbView.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbPrint.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbQuit.translations: #override \n\ - : siag-highlight(1)\ - tooltip(Pop down animation)\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbStop.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbPrev.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbPlay.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbNext.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbHelp.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() - -Egon*tbCopy.translations: #override \n\ - : siag-highlight(1)\ - tooltip()\n\ - : siag-unhighlight(0)\ - draw-input() Egon*toolbar_toggle.translations: #override \n\ : siag-highlight(1 1)\n\ : siag-unhighlight(0 1) -Egon*cmdItalic.translations: #override \n\ - : siag-highlight(1 1)\ - tooltip() \n\ - : siag-unhighlight(0 1)\ - draw-input() - -Egon*cmdHLeft.translations: #override \n\ - : siag-highlight(1 1)\ - tooltip(Left adjusted text) \n\ - : siag-unhighlight(0 1)\ - draw-input() - -Egon*cmdHCenter.translations: #override \n\ - : siag-highlight(1 1)\ - tooltip(Centered text) \n\ - : siag-unhighlight(0 1)\ - draw-input() - -Egon*cmdHRight.translations: #override \n\ - : siag-highlight(1 1)\ - tooltip(Right adjusted text) \n\ - : siag-unhighlight(0 1)\ - draw-input() - -Egon*viewport.left: ChainLeft -Egon*viewport.right: ChainRight -Egon*viewport.top: ChainTop -Egon*viewport.bottom: ChainBottom + Egon*viewport.height: 200 Egon*viewport.width: 600 Egon*grid.background: white !*grid.foreground: black -Egon*grid.left: ChainLeft -Egon*grid.right: ChainRight -Egon*grid.top: ChainTop -Egon*grid.bottom: ChainBottom -! : pr-grid() \n\ Egon*stage.gradient: 100 100 128 0 1 black blue Egon*stage.translations:\ :: execute(next-page) \n\ :: place-shortcuts() XtMenuPopup(shortcuts) \n\ - :h: execute(popdown-stage) \n\ - o: execute(load-buffer) \n\ - s: execute(save-buffer-as) \n\ + h: execute(popdown-stage) \n\ + o: execute(popdown-stage) execute(load-buffer) \n\ q: execute(quit-program) \n\ s: execute(ani-ctl ANI_STOP 0) \n\ p: execute(ani-ctl ANI_PREVIOUS 0) \n\ n: execute(ani-ctl ANI_NEXT 0) \n\ - c: execute(ani-ctl ANI_CONTINUE 0) + c: execute(ani-ctl ANI_CONTINUE 0) \n\ + space: execute(next-page) \n\ + BackSpace: execute(previous-page) -!Egon*viewport.translations:\ -! :Home: execute(beginning-of-line) \n\ -! Ctrla: execute(beginning-of-line) \n\ -! :End: execute(end-of-line) \n\ -! Ctrle: execute(end-of-line) \n\ -! Ctrlspace: execute(set-mark-command) \n\ -! :Left: execute(backward-char) \n\ -! Ctrlb: execute(backward-char) \n\ -! :Delete: execute(delete-char) \n\ -! Ctrld: execute(delete-char) \n\ -! :BackSpace: execute(delete-char-backward) \n\ -! :Right: execute(forward-char) \n\ -! Ctrlf: execute(forward-char) \n\ -! :Down: execute(next-line) \n\ -! Ctrln: execute(next-line) \n\ -! Ctrlo: execute(split-line) \n\ -! :Return: execute(newline) \n\ -! Ctrlk: execute(kill-line) \n\ -! Ctrll: execute(recenter) \n\ -! Ctrlx,Ctrlf: execute(load-buffer) \n\ -! :Up: execute(previous-line) \n\ -! Ctrlp: execute(previous-line) \n\ -! Ctrlx,Ctrlc: execute(quit-egon) \n\ -! Ctrlx,Ctrls: execute(save-buffer) \n\ -! Ctrlx,Ctrlw: execute(save-buffer-as) \n\ -! Ctrlx,Ctrlx: execute(exchange-point-and-mark) \n\ -! Ctrlx,Ctrlspace: execute(set-block) \n\ -! Metax: execute(execute-extended-command) \n\ -! :Metaless: execute(beginning-of-buffer) \n\ -! :Metagreater: execute(end-of-buffer) \n\ -! :Page_Up: execute(scroll-up) \n\ -! Metav: execute(scroll-up) \n\ -! :Page_Down: execute(scroll-down) \n\ -! Ctrlv: execute(scroll-down) \n\ -! Ctrlw: execute(delete-block) \n\ -! Ctrlx,question: execute(what-cursor-position) \n\ -! Ctrlx,k: execute(kill-buffer) \n\ -! Ctrlx,b: execute(switch-to-buffer) \n\ -! Ctrlx,2: execute(split-window-vertically) \n\ -! Ctrlx,1: execute(delete-other-windows) \n\ -! Ctrlx,0: execute(delete-window) \n\ -! Ctrlx,o: execute(other-window) \n\ -! :F1: execute(help-contents) \n\ -! Ctrlh,c: execute(help-contents) \n\ -! :F4: execute(more complicated test) - -Egon*hscroll.left: ChainLeft -Egon*hscroll.right: ChainRight -Egon*hscroll.top: ChainBottom -Egon*hscroll.bottom: ChainBottom Egon*hscroll.orientation: Horizontal -Egon*vscroll.left: ChainRight -Egon*vscroll.right: ChainRight -Egon*vscroll.top: ChainTop -Egon*vscroll.bottom: ChainBottom Egon*vscroll.orientation: Vertical Egon*font_pshell.x: 80 diff -urNP ../siag-3.3.9/xegon/Makefile.in ./xegon/Makefile.in --- ../siag-3.3.9/xegon/Makefile.in Thu Jun 15 08:25:53 2000 +++ ./xegon/Makefile.in Sun Jun 18 22:46:24 2000 @@ -234,28 +234,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -fileio_ps.o: fileio_ps.c ../egon/egon.h ../egon/../common/fonts.h \ - ../egon/types.h ../common/common.h ../xcommon/xcommon.h \ - ../xcommon/Animator.h ../xcommon/../egon/types.h \ - ../xcommon/xfonts.h ../xcommon/../config.h \ - ../xcommon/../common/richchar.h xegon.h -window.o: window.c ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h ../Nws/SubME.h \ - ../siod/siod.h ../egon/types.h ../xcommon/Animator.h \ - ../xcommon/../egon/types.h ../egon/egon.h \ - ../egon/../common/fonts.h xegon.h ../common/common.h \ - ../xcommon/xfonts.h ../xcommon/../config.h \ - ../xcommon/../common/richchar.h ../xcommon/embed.h \ - ../common/cmalloc.h ../xcommon/xcommon.h ../xcommon/Combo.h \ - ../xcommon/Frame.h ../xcommon/plugin.h \ - ../xcommon/../common/plugin.h ../common/bitmaps/egon.xpm \ - ../xcommon/icon.h ../xcommon/dialogs.h ../xcommon/filesel.h \ - ../xcommon/Rudegrid.h ../xcommon/Tooltip.h ../xcommon/Handle.h \ - ../xcommon/../XawM/Label.h ../xcommon/Tabbing.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h \ - ../xcommon/xcommon-ad.h ../xcommon/dialogs-ad.h \ - ../xcommon/filesel-ad.h ../xcommon/nws-ad.h app-defaults.h info-am: info: info-am diff -urNP ../siag-3.3.9/xegon/TODO ./xegon/TODO --- ../siag-3.3.9/xegon/TODO Thu Jun 15 06:52:26 2000 +++ ./xegon/TODO Sun Jun 18 22:35:10 2000 @@ -42,16 +42,6 @@ Make a few fullscreen presentations to include as examples. -Read MagicPoint files. - -Read PowerPoint files. - -Read and write HTML files. - -Read and write plaintext files. - -Keyboard control even in fullscreen mode. - To do later: @@ -66,4 +56,5 @@ Templates. DND drop target for background images. + diff -urNP ../siag-3.3.9/xegon/app-defaults.h ./xegon/app-defaults.h --- ../siag-3.3.9/xegon/app-defaults.h Mon Jun 5 22:50:13 2000 +++ ./xegon/app-defaults.h Sun Jun 18 22:46:24 2000 @@ -105,116 +105,26 @@ "Egon*toolbar_command.translations: #override \\n\ : siag-highlight(1)\\n\ : siag-unhighlight(0)", -"Egon*tbOpen.translations: #override \\n\ - : siag-highlight(1)\ - tooltip() \\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbSave.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbView.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbPrint.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbQuit.translations: #override \\n\ - : siag-highlight(1)\ - tooltip(Pop down animation)\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbStop.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbPrev.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbPlay.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbNext.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbHelp.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", -"Egon*tbCopy.translations: #override \\n\ - : siag-highlight(1)\ - tooltip()\\n\ - : siag-unhighlight(0)\ - draw-input()", "Egon*toolbar_toggle.translations: #override \\n\ : siag-highlight(1 1)\\n\ : siag-unhighlight(0 1)", -"Egon*cmdItalic.translations: #override \\n\ - : siag-highlight(1 1)\ - tooltip() \\n\ - : siag-unhighlight(0 1)\ - draw-input()", -"Egon*cmdHLeft.translations: #override \\n\ - : siag-highlight(1 1)\ - tooltip(Left adjusted text) \\n\ - : siag-unhighlight(0 1)\ - draw-input()", -"Egon*cmdHCenter.translations: #override \\n\ - : siag-highlight(1 1)\ - tooltip(Centered text) \\n\ - : siag-unhighlight(0 1)\ - draw-input()", -"Egon*cmdHRight.translations: #override \\n\ - : siag-highlight(1 1)\ - tooltip(Right adjusted text) \\n\ - : siag-unhighlight(0 1)\ - draw-input()", -"Egon*viewport.left: ChainLeft", -"Egon*viewport.right: ChainRight", -"Egon*viewport.top: ChainTop", -"Egon*viewport.bottom: ChainBottom", "Egon*viewport.height: 200", "Egon*viewport.width: 600", "Egon*grid.background: white", -"Egon*grid.left: ChainLeft", -"Egon*grid.right: ChainRight", -"Egon*grid.top: ChainTop", -"Egon*grid.bottom: ChainBottom", -"Egon*stage.gradient: 100 100 128 0 1 red yellow", +"Egon*stage.gradient: 100 100 128 0 1 black blue", "Egon*stage.translations:\ :: execute(next-page) \\n\ :: place-shortcuts() XtMenuPopup(shortcuts) \\n\ - :h: execute(popdown-stage) \\n\ - o: execute(load-buffer) \\n\ - s: execute(save-buffer-as) \\n\ + h: execute(popdown-stage) \\n\ + o: execute(popdown-stage) execute(load-buffer) \\n\ q: execute(quit-program) \\n\ s: execute(ani-ctl ANI_STOP 0) \\n\ p: execute(ani-ctl ANI_PREVIOUS 0) \\n\ n: execute(ani-ctl ANI_NEXT 0) \\n\ - c: execute(ani-ctl ANI_CONTINUE 0)", -"Egon*hscroll.left: ChainLeft", -"Egon*hscroll.right: ChainRight", -"Egon*hscroll.top: ChainBottom", -"Egon*hscroll.bottom: ChainBottom", + c: execute(ani-ctl ANI_CONTINUE 0) \\n\ + space: execute(next-page) \\n\ + BackSpace: execute(previous-page)", "Egon*hscroll.orientation: Horizontal", -"Egon*vscroll.left: ChainRight", -"Egon*vscroll.right: ChainRight", -"Egon*vscroll.top: ChainTop", -"Egon*vscroll.bottom: ChainBottom", "Egon*vscroll.orientation: Vertical", "Egon*font_pshell.x: 80", "Egon*font_pshell.y: 80", diff -urNP ../siag-3.3.9/xegon/window.c ./xegon/window.c --- ../siag-3.3.9/xegon/window.c Thu Jun 15 08:00:52 2000 +++ ./xegon/window.c Sun Jun 18 19:43:32 2000 @@ -1264,9 +1264,11 @@ { buffer *b = w->buf; Display *dpy = XtDisplay(topLevel); - Window root; + Window win, dummy, root; int x, y; unsigned int width, height, border, depth; + int xem; + int revert; if (w->ui->ani_shell) return; @@ -1296,6 +1298,19 @@ XtNwidth, width, XtNheight, height, (char *)0); + + win = XtWindow(w->ui->stage); + xem = KeyPressMask + | KeyReleaseMask + | ButtonPressMask + | StructureNotifyMask + | ExposureMask + | ButtonReleaseMask + | Button1MotionMask; + XSelectInput(dpy, win, xem); + XGetInputFocus(dpy, &dummy, &revert); + XSetInputFocus(dpy, win, RevertToParent, CurrentTime); + draw_buffer(w); } diff -urNP ../siag-3.3.9/xfiler/Makefile.in ./xfiler/Makefile.in --- ../siag-3.3.9/xfiler/Makefile.in Thu Jun 15 08:25:54 2000 +++ ./xfiler/Makefile.in Sun Jun 18 22:46:26 2000 @@ -439,80 +439,6 @@ || exit 1; \ fi; \ done -Bitmaps.o: Bitmaps.c bitmaps/xfm_file.xbm bitmaps/xfm_filemsk.xbm \ - bitmaps/xfm_files.xbm bitmaps/xfm_filesmsk.xbm \ - bitmaps/xfm_noentry.xbm bitmaps/xfm_noentrymsk.xbm \ - bitmaps/xfm_dir.xbm bitmaps/xfm_dirmsk.xbm bitmaps/xfm_exec.xbm \ - bitmaps/xfm_execmsk.xbm bitmaps/xfm_watch.xbm \ - bitmaps/xfm_watchmsk.xbm bitmaps/xfm_lline.xbm \ - bitmaps/xfm_tline.xbm bitmaps/xfm_fline.xbm \ - bitmaps/xfm_cline.xbm bitmaps/xfm_larrow.xbm \ - bitmaps/xfm_rarrow.xbm bitmaps/xfm_wavy_arrow.xbm \ - bitmaps/xfm_tick.xbm bitmaps/xfm_notick.xbm \ - bitmaps/xfm_excl.xbm pixmaps/xfm_file.xpm pixmaps/xfm_dir.xpm \ - pixmaps/xfm_updir.xpm pixmaps/xfm_exec.xpm \ - pixmaps/xfm_files.xpm pixmaps/xfm_symlnk.xpm \ - pixmaps/xfm_dirlnk.xpm pixmaps/xfm_execlnk.xpm \ - pixmaps/xfm_blackhole.xpm pixmaps/xfm_icon.xpm Files.h \ - ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h -Chmod.o: Chmod.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h \ - ../xcommon/xcommon.h -Comms.o: Comms.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h Comms.h -Confirm.o: Confirm.c ../xcommon/xcommon.h Files.h ../config.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h -Delete.o: Delete.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h -Dirs.o: Dirs.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h -Dnd.o: Dnd.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h -Errors.o: Errors.c ../xcommon/xcommon.h Files.h ../config.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h -Exec.o: Exec.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h -Fw.o: Fw.c ../Nws/MenuBar.h ../Nws/Row.h ../Nws/BaseConst.h ../Nws/cvt.h \ - Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h \ - ../common/cmalloc.h ../xcommon/Frame.h ../xcommon/Handle.h \ - ../xcommon/../XawM/Label.h ../xcommon/Tooltip.h \ - ../xcommon/Rudegrid.h ../xcommon/TextField.h \ - ../xcommon/xcommon.h -FwActions.o: FwActions.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h -FwCb.o: FwCb.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h \ - ../common/cmalloc.h ../xcommon/dialogs.h -Info.o: Info.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h \ - ../xcommon/xcommon.h -Main.o: Main.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h \ - ../xcommon/xcommon.h ../xcommon/Tooltip.h \ - ../xcommon/xcommon-ad.h ../xcommon/dialogs-ad.h \ - ../xcommon/nws-ad.h xfiler-ad.h -Ops.o: Ops.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h -Popup.o: Popup.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h ../common/common.h \ - ../xcommon/dialogs.h ../xcommon/TextField.h -Utils.o: Utils.c ../Nws/utils.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/Menu.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h \ - ../xcommon/TextField.h Files.h ../config.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h \ - ../common/common.h ../common/cmalloc.h blank.xpm dot.xpm -exec.o: exec.c Files.h ../config.h ../xcommon/DragAndDrop.h \ - ../xcommon/DragAndDropTypes.h -magic.o: magic.c magic.h regexp.h -regerror.o: regerror.c -regexp.o: regexp.c regexp.h regmagic.h -regsub.o: regsub.c regexp.h regmagic.h -runcmd.o: runcmd.c ../common/common.h ../xcommon/xcommon.h \ - ../xcommon/xcommon-ad.h runcmd-ad.h -tycoon.o: tycoon.c info-am: info: info-recursive diff -urNP ../siag-3.3.9/xpw/Makefile.in ./xpw/Makefile.in --- ../siag-3.3.9/xpw/Makefile.in Thu Jun 15 08:25:51 2000 +++ ./xpw/Makefile.in Sun Jun 18 22:46:22 2000 @@ -234,33 +234,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -selection.o: selection.c ../common/common.h ../common/cmalloc.h \ - ../pw/pw.h ../pw/../common/richchar.h ../pw/../common/fonts.h \ - ../pw/../common/traceme.h ../pw/user_interface.h xpw.h -window.o: window.c ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h ../Nws/SubME.h \ - ../common/common.h ../common/cmalloc.h ../common/bitmaps/pw.xpm \ - ../xcommon/xcommon.h ../xcommon/xfonts.h ../xcommon/../config.h \ - ../xcommon/../common/richchar.h ../xcommon/embed.h \ - ../xcommon/Ruler.h ../xcommon/Richtext.h ../xcommon/Combo.h \ - ../xcommon/Frame.h ../xcommon/Tabbing.h ../xcommon/Rudegrid.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h \ - ../xcommon/plugin.h ../xcommon/../common/plugin.h \ - ../xcommon/icon.h ../xcommon/Tooltip.h ../xcommon/Handle.h \ - ../xcommon/../XawM/Label.h ../xcommon/dialogs.h ../pw/pw.h \ - ../pw/../common/richchar.h ../pw/../common/fonts.h \ - ../pw/../common/traceme.h ../pw/user_interface.h xpw.h \ - ../siod/siod.h ../xcommon/xcommon-ad.h ../xcommon/dialogs-ad.h \ - ../xcommon/filesel-ad.h ../xcommon/nws-ad.h app-defaults.h -xpw.o: xpw.c ../siod/siod.h ../pw/pw.h ../pw/../common/richchar.h \ - ../pw/../common/fonts.h ../pw/../common/traceme.h \ - ../pw/user_interface.h ../common/cmalloc.h ../common/common.h \ - ../xcommon/xfonts.h ../xcommon/../config.h \ - ../xcommon/../common/richchar.h ../xcommon/dialogs.h \ - ../xcommon/embed.h ../xcommon/plugin.h \ - ../xcommon/../common/plugin.h ../xcommon/filesel.h \ - ../xcommon/xcommon.h xpw.h info-am: info: info-am diff -urNP ../siag-3.3.9/xsiag/Makefile.in ./xsiag/Makefile.in --- ../siag-3.3.9/xsiag/Makefile.in Thu Jun 15 08:25:48 2000 +++ ./xsiag/Makefile.in Sun Jun 18 22:46:20 2000 @@ -234,35 +234,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -selection.o: selection.c ../common/cmalloc.h ../common/common.h \ - ../siag/calc.h ../siag/../common/traceme.h \ - ../siag/user_interface.h ../siag/selection.h xsiag.h -window.o: window.c ../XawM/Label.h ../XawM/Simple.h ../XawM/XawVersion.h \ - ../XawM/Scrollbar.h ../XawM/Box.h ../XawM/Command.h \ - ../XawM/Toggle.h ../XawM/Paned.h ../XawM/Repeater.h \ - ../XawM/Viewport.h ../XawM/Form.h ../XawM/Reports.h \ - ../XawM/List.h ../Nws/Menu.h ../Nws/cvt.h ../Nws/MenuBar.h \ - ../Nws/Row.h ../Nws/BaseConst.h ../Nws/MBButton.h \ - ../Nws/LabelME.h ../Nws/BaseME.h ../Nws/LineME.h ../Nws/SubME.h \ - ../siod/siod.h ../common/common.h ../common/cmalloc.h \ - ../common/fonts.h ../common/bitmaps/siag.xpm \ - ../xcommon/xfonts.h ../xcommon/../config.h \ - ../xcommon/../common/richchar.h ../xcommon/Table.h \ - ../xcommon/embed.h ../xcommon/dialogs.h \ - ../xcommon/DragAndDrop.h ../xcommon/DragAndDropTypes.h \ - ../xcommon/icon.h ../xcommon/xcommon.h ../xcommon/plugin.h \ - ../xcommon/../common/plugin.h ../xcommon/Richtext.h \ - ../xcommon/Tabbing.h ../xcommon/Combo.h ../xcommon/Frame.h \ - ../xcommon/Rudegrid.h ../xcommon/Tooltip.h ../xcommon/Handle.h \ - ../xcommon/../XawM/Label.h ../siag/calc.h \ - ../siag/../common/traceme.h ../siag/user_interface.h xsiag.h \ - ../xcommon/xcommon-ad.h ../xcommon/filesel-ad.h \ - ../xcommon/dialogs-ad.h ../xcommon/nws-ad.h app-defaults.h -xsiag.o: xsiag.c ../siod/siod.h ../common/common.h ../common/cmalloc.h \ - ../common/fonts.h ../xcommon/xfonts.h ../xcommon/../config.h \ - ../xcommon/../common/richchar.h ../xcommon/dialogs.h \ - ../xcommon/embed.h ../xcommon/filesel.h ../siag/calc.h \ - ../siag/../common/traceme.h ../siag/user_interface.h xsiag.h info-am: info: info-am