You can subscribe to this list here.
2003 |
Jan
|
Feb
(52) |
Mar
(47) |
Apr
(10) |
May
(5) |
Jun
|
Jul
(20) |
Aug
|
Sep
(5) |
Oct
(12) |
Nov
(22) |
Dec
(61) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(35) |
Feb
(33) |
Mar
(14) |
Apr
(7) |
May
(72) |
Jun
(35) |
Jul
(83) |
Aug
(28) |
Sep
(50) |
Oct
(4) |
Nov
(40) |
Dec
(39) |
2005 |
Jan
(38) |
Feb
(65) |
Mar
(58) |
Apr
(27) |
May
(2) |
Jun
|
Jul
(2) |
Aug
(25) |
Sep
(25) |
Oct
(74) |
Nov
(82) |
Dec
(82) |
2006 |
Jan
(68) |
Feb
(81) |
Mar
(52) |
Apr
(6) |
May
|
Jun
(14) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2007 |
Jan
(3) |
Feb
(15) |
Mar
(3) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
(3) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(41) |
From: Dominique B. <ber...@us...> - 2010-12-26 11:40:07
|
Update of /cvsroot/windom/htdocs/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv25914/dfrm Modified Files: index.html Log Message: Fix typos. Index: index.html =================================================================== RCS file: /cvsroot/windom/htdocs/dfrm/index.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- index.html 23 Dec 2010 22:22:38 -0000 1.2 +++ index.html 26 Dec 2010 11:39:59 -0000 1.3 @@ -12,7 +12,7 @@ <div class="content"> <center><img src="img/dfrm.gif" alt="DFRM"></center> -<p class="petittitre"><i>DFRM: Dynamics FoRMulars (for WinDom)</i></p> +<p class="petittitre"><i>DFRM: Dynamic FoRMs (for WinDom)</i></p> <br> <p><b>Current version</b>: 0.4.5 (december 2010)<br> @@ -22,8 +22,13 @@ <h2>What's new</h2> -<p> -</p> +<b>version 0.4.5 (december 2010):</b> + <ul> + <li> Bug fix in <tt>dfrm_win_attach()</tt> + <li> <tt>dfrm_toolbar()</tt> now correctly defined in <tt>dfrm.h</tt> + <li> More tutorials + </ul> + <H2>DFRM, what is it?</H2> <P>DFRM is an extension of <a href="http://windom.sourceforge.net">WinDom</a> allowing it to build dynamically GEM object @@ -36,19 +41,17 @@ pixel precision your objects. With DFRM you have a better control of object size and object position. You can give directives of alignement and spacing between objects.</LI> - <LI>With DFRM it is very easy to build big structure of object (e.g. sliders) + <LI>With DFRM it is very easy to build big structure of objects (e.g. sliders) <em>ready to use</em>.</LI> </OL> <P>Programming with DFRM is very similar to widget libraries used in Unix world - (like TK ou GTK). We provide an complete documentation with examples and tutorial.</P> + (like TK ou GTK). We provide a full documentation with some examples and tutorials.</P> <H2>Documents</H2> <OL> <li> <a href="html/index.html">Online documentation</a> <li> <a href="tutorial/index.html">Tutorials</a> </OL> -<HR> - <h2>Download</h2> DFRM archives are available in this <a href="http://windom.free.fr/dfrm/download">directory</a>. @@ -56,7 +59,7 @@ </div> <div class="links"> -<p><i>DFRM is a WinDom extension, see:</i><br> +<p><i>DFRM is hosted by sourceforge:</i><br> <a href="http://sourceforge.net/projects/windom"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=68507&type=16" width="150" height="40" alt="Get WinDom, a high level GEM library. at SourceForge.net. Fast, secure and Free Open Source software downloads" border=0 /></a><br> <h2>Links</h2> |
From: Dominique B. <ber...@us...> - 2010-12-24 15:52:30
|
Update of /cvsroot/windom/extensions/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv19645 Modified Files: ChangeLog Makefile.am Makefile.in NEWS TODO VERSION Added Files: HOW_TO_RELEASE Log Message: small minors modifs. core.c is modified due to a strange behavior on my system (FIXME). Index: ChangeLog =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/ChangeLog,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ChangeLog 4 Mar 2006 18:48:58 -0000 1.2 +++ ChangeLog 24 Dec 2010 15:52:21 -0000 1.3 @@ -1,3 +1,87 @@ +2010-12-23 22:43 bereziat + + * Makefile: clean dfrm dir. + +2010-12-23 22:06 bereziat + + * configure: adding autoconf missing stuff (configure!!!) removing + the directory htdocs: it is not the right place. It has been + moved to the CVS module htdocs/dfrm in Windom repository. + +2010-12-23 19:28 bereziat + + * TODO: the autoconf port should be improved. + +2010-12-23 19:00 bereziat + + * aclocal.m4: adding autoconf stuff ... + +2010-12-23 18:58 bereziat + + * AUTHORS, INSTALL, Makefile, Makefile.in, config.guess, + config.sub, depcomp, install-sh, missing, docs/Makefile.in, + docs/demo/Makefile.in, docs/tutorial/Makefile.in, + include/Makefile.in, src/Makefile.in, src/doxydoc.c: adding + autoconf/automake stuff (pass 2) + +2010-12-23 18:50 bereziat + + * COPYING, COPYRIGHT, Doxyfile, Makefile.am, Makefile.st, NEWS, + configure.ac, docs/Makefile.am, docs/demo/Makefile.am, + docs/demo/Makefile.st, docs/demo/README, docs/demo/common.mak, + docs/demo/demo.c, docs/demo/dom.gif, docs/demo/gcc281.mak, + docs/demo/icons.h, docs/demo/icons.hrd, docs/demo/icons.rsc, + docs/demo/img.c, docs/demo/img.h, docs/demo/motif2.iff, + docs/demo/pc.mak, docs/tutorial/Makefile.am, + docs/tutorial/Makefile.gcc, docs/tutorial/Makefile.pc, + docs/tutorial/index.html, docs/tutorial/lang.c, + docs/tutorial/lang.en, docs/tutorial/lang.fr, + docs/tutorial/lang.h, docs/tutorial/lang.mak, + docs/tutorial/toolbar.c, docs/tutorial/tut_1-1.gif, + docs/tutorial/tut_1-2.gif, docs/tutorial/tut_1-3.gif, + docs/tutorial/tut_1-4.gif, docs/tutorial/tut_1.c, + docs/tutorial/tut_1.html, docs/tutorial/tut_2.c, + docs/tutorial/tut_2.html, docs/tutorial/tut_3.html, + examples/Makefile, examples/README, examples/common.mak, + examples/demo.c, examples/dom.gif, examples/gcc281.mak, + examples/icons.h, examples/icons.hrd, examples/icons.rsc, + examples/img.c, examples/img.h, examples/lang.c, + examples/lang.en, examples/lang.fr, examples/lang.mak, + examples/motif2.iff, examples/pc.mak, include/Makefile.am, + src/Makefile, src/Makefile.am, src/Makefile.st, src/doxydoc.c: + adding autoconf and automake stuff (first pass) move examples as + demo in docs some restructuraction in tutorial and adding two + tutorials + +2010-12-21 22:48 bereziat + + * include/windom/dfrm.h: Fix typo in the dfrm_toolbar name macro. + +2010-12-21 18:02 bereziat + + * src/: attach.c, globals.h: bug fix in dfrm_win_attach() for + binding variable to objects. + +2007-03-13 01:19 bereziat + + * Doxyfile, src/doxydoc.c: Minor changes for doxygen 1.4.4 + +2006-03-09 21:31 bercegeay + + * Makefile: added srcrpm target to build the rpm-sources .tgz file + +2006-03-09 21:30 bercegeay + + * src/rpm/dfrm.spec: added SPEC file to build RPM packages + +2006-03-04 22:05 bereziat + + * Doxyfile, NEWS, README: update date & release number. + +2006-03-04 19:48 bereziat + + * ChangeLog: Update last commit before tagging to 0.4.4 + 2006-03-04 19:46 bereziat * ChangeLog, VERSION, include/windom/mt_dfrm.h: Set release number @@ -27,9 +111,8 @@ 2006-02-26 21:25 bereziat - * Makefile, docs/tutorial/tut1/tut_1.c, - docs/tutorial/tut1/tut_1.html, examples/demo.c, examples/lang.c, - include/dfrm.h, include/mt_dfrm.h, include/windom/dfrm.h, + * Makefile, examples/demo.c, examples/lang.c, include/dfrm.h, + include/mt_dfrm.h, include/windom/dfrm.h, include/windom/mt_dfrm.h, src/debug.c, src/doxydoc.c, src/globals.h: - dfrm headers have moved in include/windom (as a WinDom extension). - #include <[mt_]dfrm.h> changed to #include @@ -72,14 +155,13 @@ 2006-02-13 23:10 bereziat - * Doxyfile, README, TODO, docs/tutorial/tut1/tut_1.html, - examples/demo.c, examples/img.c, include/dfrm.h, - include/mt_dfrm.h, src/Makefile, src/align.c, src/attach.c, - src/box.c, src/core.c, src/debug.c, src/dfrmstr.c, src/doxydoc.c, - src/gcc295.mak, src/icon.c, src/image.c, src/line.c, src/menu.c, - src/rscstr.c, src/slider.c, src/string.c, src/tedinfo.c, - src/thumb.c, src/tune.c: Change formulars into forms (english - enhancement). + * Doxyfile, README, TODO, examples/demo.c, examples/img.c, + include/dfrm.h, include/mt_dfrm.h, src/Makefile, src/align.c, + src/attach.c, src/box.c, src/core.c, src/debug.c, src/dfrmstr.c, + src/doxydoc.c, src/gcc295.mak, src/icon.c, src/image.c, + src/line.c, src/menu.c, src/rscstr.c, src/slider.c, src/string.c, + src/tedinfo.c, src/thumb.c, src/tune.c: Change formulars into + forms (english enhancement). 2006-02-13 23:09 bereziat @@ -94,14 +176,13 @@ 2006-02-13 21:51 bereziat - * Doxyfile, README, TODO, docs/tutorial/tut1/tut_1.html, - examples/demo.c, examples/img.c, include/dfrm.h, - include/mt_dfrm.h, src/Makefile, src/align.c, src/attach.c, - src/box.c, src/core.c, src/debug.c, src/dfrmstr.c, src/doxydoc.c, - src/icon.c, src/image.c, src/line.c, src/menu.c, src/pc.mak, - src/rscstr.c, src/slider.c, src/string.c, src/tedinfo.c, - src/thumb.c, src/tune.c: - Change Dynamical Formular in Dynamic - Formulars - update copyright year + * Doxyfile, README, TODO, examples/demo.c, examples/img.c, + include/dfrm.h, include/mt_dfrm.h, src/Makefile, src/align.c, + src/attach.c, src/box.c, src/core.c, src/debug.c, src/dfrmstr.c, + src/doxydoc.c, src/icon.c, src/image.c, src/line.c, src/menu.c, + src/pc.mak, src/rscstr.c, src/slider.c, src/string.c, + src/tedinfo.c, src/thumb.c, src/tune.c: - Change Dynamical + Formular in Dynamic Formulars - update copyright year 2006-01-17 00:47 bereziat @@ -213,12 +294,8 @@ 2004-07-09 15:15 bereziat - * NEWS, docs/tutorial/tut1/Makefile, - docs/tutorial/tut1/tut_1-1.gif, docs/tutorial/tut1/tut_1-2.gif, - docs/tutorial/tut1/tut_1-3.gif, docs/tutorial/tut1/tut_1-4.gif, - docs/tutorial/tut1/tut_1.c, docs/tutorial/tut1/tut_1.html, - examples/gcc295.mak, src/doxydoc.c, src/icon.c: Adding NEWS file - Importing tutorial + * NEWS, examples/gcc295.mak, src/doxydoc.c, src/icon.c: Adding NEWS + file Importing tutorial 2004-07-05 00:51 bereziat Index: Makefile.in =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/Makefile.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.in 23 Dec 2010 17:58:11 -0000 1.1 +++ Makefile.in 24 Dec 2010 15:52:21 -0000 1.2 @@ -16,6 +16,7 @@ # DFRM: Dynamic FoRMular # Copyright (c) 1997-2011 Dominique Bereziat + VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -57,6 +58,15 @@ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgdatadir)" +pkgdataDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdata_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags @@ -173,6 +183,11 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = include src docs +EXTRA_DIST = Doxyfile debian/changelog debian/compat debian/control \ + debian/copyright debian/docs debian/files debian/README.Debian \ + debian/rules + +pkgdata_DATA = NEWS AUTHORS README ChangeLog TODO all: all-recursive .SUFFIXES: @@ -209,6 +224,23 @@ cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +install-pkgdataDATA: $(pkgdata_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" + @list='$(pkgdata_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done + +uninstall-pkgdataDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdata_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -490,9 +522,12 @@ exit 1; } >&2 check-am: all-am check: check-recursive -all-am: Makefile all-local +all-am: Makefile $(DATA) all-local installdirs: installdirs-recursive installdirs-am: + for dir in "$(DESTDIR)$(pkgdatadir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive @@ -536,7 +571,7 @@ info-am: -install-data-am: install-data-local +install-data-am: install-data-local install-pkgdataDATA install-dvi: install-dvi-recursive @@ -572,7 +607,7 @@ ps-am: -uninstall-am: uninstall-local +uninstall-am: uninstall-local uninstall-pkgdataDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip @@ -587,17 +622,20 @@ install-data-am install-data-local install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs installdirs-am \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am uninstall-local + install-pdf-am install-pkgdataDATA install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ + tags-recursive uninstall uninstall-am uninstall-local \ + uninstall-pkgdataDATA all-local: docs/html/index.html docs/html/index.html: Doxyfile src/doxydoc.c - @doxygen -s $< >/dev/null + doxygen -s $< >/dev/null +docs: docs/html/index.html + clean-local: $(RM) -r docs/html Index: VERSION =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/VERSION,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- VERSION 4 Mar 2006 18:46:22 -0000 1.2 +++ VERSION 24 Dec 2010 15:52:21 -0000 1.3 @@ -1 +1 @@ -0.4.4 +0.4.5 --- NEW FILE: HOW_TO_RELEASE --- Build a tar ball of source files: % make dist Build a debian package of binaries (by cross-compilation) % vi debian/... % make dist % mv dfrm-xxx.tar.ge /tmp % cd /tmp % tar xvfz dfrm-xxx.tar.gz % cd dfrm-xxx.tar.gz % dpkg-buildpackage -rfakeroot Buid a RPM package of binaries TODO --host=m68k-atari-mint --prefix=/usr/m68k-atari-mint /home/bereziat/Aranym/src/sf/extensions/dfrm/dfrm-0.4.5/src/core.c:139: undefined reference to `rpl_malloc' Index: NEWS =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/NEWS,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NEWS 23 Dec 2010 17:50:07 -0000 1.5 +++ NEWS 24 Dec 2010 15:52:21 -0000 1.6 @@ -1,7 +1,7 @@ v 0.4.5 (december 10) Bug fix in dfrm_win_attach() dfrm_toolbar() now correctly defined - More tutorials + More tutorials. v 0.4.4 (march 06) Minor changes for better integration in WinDom 2 Index: TODO =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/TODO,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- TODO 23 Dec 2010 18:28:34 -0000 1.4 +++ TODO 24 Dec 2010 15:52:21 -0000 1.5 @@ -1,5 +1,9 @@ -- autoconf: adding test of windom, ldg and gem libs avability -- adding a pointer to routine to release memory +- configure.ac: adding test of windom, ldg and gem libs avability +- packaging debian: the package is built using cross compilation... + so the library should be cross-compiled but not the frmstr + utility... (provide a specific package ?) +- debian/control: adds the futur dependencies (ldg,windom,gem) +- adding a pointer to routine to release memory... of an object in the global DFRM structure : it is a destroy event of the object. : actually, it is not usefull because memory release is assumed by Index: Makefile.am =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 23 Dec 2010 17:50:07 -0000 1.1 +++ Makefile.am 24 Dec 2010 15:52:21 -0000 1.2 @@ -2,11 +2,18 @@ # Copyright (c) 1997-2011 Dominique Bereziat SUBDIRS = include src docs +EXTRA_DIST = Doxyfile debian/changelog debian/compat debian/control \ + debian/copyright debian/docs debian/files debian/README.Debian \ + debian/rules + +pkgdata_DATA = NEWS AUTHORS README ChangeLog TODO all-local: docs/html/index.html docs/html/index.html: Doxyfile src/doxydoc.c - @doxygen -s $< >/dev/null + doxygen -s $< >/dev/null +docs: docs/html/index.html + clean-local: $(RM) -r docs/html @@ -18,3 +25,4 @@ uninstall-local: $(RM) -r $(DESTDIR)$(docdir)/html + |
From: Dominique B. <ber...@us...> - 2010-12-24 15:52:29
|
Update of /cvsroot/windom/extensions/dfrm/src In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv19645/src Modified Files: Makefile.am Makefile.in core.c Log Message: small minors modifs. core.c is modified due to a strange behavior on my system (FIXME). Index: Makefile.in =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/src/Makefile.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.in 23 Dec 2010 17:58:11 -0000 1.1 +++ Makefile.in 24 Dec 2010 15:52:21 -0000 1.2 @@ -184,6 +184,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = -I../include +EXTRA_DIST = doxydoc.c libdfrm_a_SOURCES = core.c tune.c align.c tedinfo.c string.c box.c icon.c \ image.c rscstr.c attach.c menu.c slider.c line.c thumb.c \ debug.c globals.h Index: Makefile.am =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/src/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 23 Dec 2010 17:50:08 -0000 1.1 +++ Makefile.am 24 Dec 2010 15:52:21 -0000 1.2 @@ -4,7 +4,7 @@ # $Id$ INCLUDES = -I../include - +EXTRA_DIST = doxydoc.c libdfrm_a_SOURCES = core.c tune.c align.c tedinfo.c string.c box.c icon.c \ image.c rscstr.c attach.c menu.c slider.c line.c thumb.c \ debug.c globals.h Index: core.c =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/src/core.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- core.c 13 Feb 2006 22:10:50 -0000 1.5 +++ core.c 24 Dec 2010 15:52:21 -0000 1.6 @@ -136,7 +136,7 @@ if( type == TYPE_MENU && maxobj < 4) return NULL; - dfrm = (DFRM *)malloc( sizeof(DFRM)); + dfrm = (DFRM *)calloc( 1, sizeof(DFRM)); assert( dfrm); dfrm->root = root = (OBJECT *)calloc( maxobj, sizeof(OBJECT)); |
From: Dominique B. <ber...@us...> - 2010-12-24 15:52:29
|
Update of /cvsroot/windom/extensions/dfrm/include/windom In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv19645/include/windom Modified Files: mt_dfrm.h Log Message: small minors modifs. core.c is modified due to a strange behavior on my system (FIXME). Index: mt_dfrm.h =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/include/windom/mt_dfrm.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- mt_dfrm.h 4 Mar 2006 18:46:22 -0000 1.3 +++ mt_dfrm.h 24 Dec 2010 15:52:21 -0000 1.4 @@ -101,7 +101,7 @@ #define ALIGN_JUSTIFY 4 /**< Justify object */ #define ALIGN_FJUSTIFY 5 /**< Full JUSTIFY */ -/** \enum Mode for dfrm_order() */ +/* Mode for dfrm_order() */ #define ORD_TOP 0 #define ORD_BOT -1 |
From: Dominique B. <ber...@us...> - 2010-12-24 15:52:29
|
Update of /cvsroot/windom/extensions/dfrm/include In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv19645/include Modified Files: Makefile.in Log Message: small minors modifs. core.c is modified due to a strange behavior on my system (FIXME). |
From: Dominique B. <ber...@us...> - 2010-12-24 15:43:31
|
Update of /cvsroot/windom/extensions/dfrm/debian In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv17877 Added Files: README.Debian changelog compat control copyright docs files rules Log Message: Debian packaging added. --- NEW FILE: files --- dfrm_0.4.5-1_i386.deb emuluation/atari-st extra --- NEW FILE: control --- (This appears to be a binary file; contents omitted.) --- NEW FILE: copyright --- (This appears to be a binary file; contents omitted.) --- NEW FILE: changelog --- (This appears to be a binary file; contents omitted.) --- NEW FILE: rules --- #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) #DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) #DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) #ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) #CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) #else #CROSS= --build $(DEB_BUILD_GNU_TYPE) #endif # Debian packaging is necessarly for cross compilation # because these tools do not exist on atari-mint CROSS = --host=m68k-atari-mint --prefix=/usr/m68k-atari-mint config.status: configure dh_testdir # Add here commands to configure the package. ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif ./configure $(CROSS) --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" build: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/dfrm.sgml > dfrm.1 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f config.sub config.guess dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/dfrm. $(MAKE) DESTDIR=$(CURDIR)/debian/dfrm install # Build architecture-independent files here. binary-indep: install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link # FIXME how to use m68k-atari-mint-strip ? # dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install --- NEW FILE: docs --- NEWS README TODO --- NEW FILE: compat --- 7 --- NEW FILE: README.Debian --- dfrm for Debian --------------- <possible notes regarding this package - if none, delete this file> -- Dominique Béréziat <ber...@so...> Fri, 24 Dec 2010 12:21:34 +0100 |
From: Dominique B. <ber...@us...> - 2010-12-24 15:41:20
|
Update of /cvsroot/windom/extensions/dfrm/debian In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv17741/debian Log Message: Directory /cvsroot/windom/extensions/dfrm/debian added to the repository |
From: Dominique B. <ber...@us...> - 2010-12-23 22:22:46
|
Update of /cvsroot/windom/htdocs/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv4004/dfrm Modified Files: index.html Log Message: fix buggy href. Index: index.html =================================================================== RCS file: /cvsroot/windom/htdocs/dfrm/index.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- index.html 23 Dec 2010 21:14:27 -0000 1.1 +++ index.html 23 Dec 2010 22:22:38 -0000 1.2 @@ -70,7 +70,7 @@ <a href="http://sourceforge.net/cvs/?group_id=68507">WinDom CVS Repository</a><br> </p> <h3>Documentation</h3> -<a href="doc/html/index.html">Online documentation of windom</a><br> +<a href="/doc/html/index.html">Online documentation of windom</a><br> <a href="http://arnaud.bercegeay.free.fr/gemlib/html">Online documentation of the Gemlib API</a></p> <h3>WinDom extensions</h3> <p><a href="http://windom.sourceforge.net/dfrm">Dynamic Forms</a><br> |
From: Dominique B. <ber...@us...> - 2010-12-23 21:48:46
|
Update of /cvsroot/windom/htdocs/dfrm/tutorial In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv27394/tutorial Added Files: Makefile.am Makefile.gcc Makefile.in Makefile.pc index.html lang.c lang.en lang.fr lang.h lang.mak toolbar.c tut_1-1.gif tut_1-2.gif tut_1-3.gif tut_1-4.gif tut_1.c tut_1.html tut_2.c tut_2.html tut_3.html Log Message: docs in dfrm website. --- NEW FILE: lang.en --- # Le menu M0_DESK DFRM lang M0_INFO About ... ^I M0_FILE Files M0_QUIT Quit ^Q M0_LANG Language M0_FR Franais M0_EN English # Dial 0 D0_LABEL0 Demonstration of D0_LABEL1 multi-language support D0_OK OK D0_TITLE Info --- NEW FILE: tut_2.c --- #include <windom/dfrm.h> void ok_clicked( WINDOW *win, int index, int mode, int *data) { ObjcChange( mode, win, index, ~SELECTED, TRUE); ApplWrite( _AESapid, WM_CLOSED, win->handle, 0, 0, 0, 0); FormAlert(1,"[1][The user selects button %d][OK]", *data); } void cancel_clicked( WINDOW *win, int index, int mode) { ObjcChange( mode, win, index, ~SELECTED, TRUE); ApplWrite( _AESapid, WM_CLOSED, win->handle, 0, 0, 0, 0); } int main() { void *frm; int pind, cind; int rbut = 1; ApplInit(); frm = dfrm_create( 10, TYPE_NORMAL); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_RBUT, "tea"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); /* The value 1 will be set in rbut when this button will be selected */ dfrm_attach( frm, cind, BIND_VAR, &rbut, 1); /*dfrm_setstate( frm, cind, SELECTED, TRUE);*/ cind = dfrm_new_button( frm, TYPE_RBUT, "coffee"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_attach( frm, cind, BIND_VAR, &rbut, 2); cind = dfrm_new_button( frm, TYPE_RBUT, "beer"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_attach( frm, cind, BIND_VAR, &rbut, 3); dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_DBUT, "OK"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_attach( frm, cind, BIND_FUNC, ok_clicked, &rbut); cind = dfrm_new_button( frm, TYPE_EBUT, "Cancel"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_attach( frm, cind, BIND_FUNC, cancel_clicked); dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); dfrm_repack( frm); dfrm_form( frm, WAT_FORM, "Favorite drink?", TRUE); for(;;) EvntWindom(MU_MESAG+MU_KEYBD); return 0; } --- NEW FILE: tut_2.html --- <html> <head> <title>DFRM tutorial: playing with radio buttons</title> </head> <body> <h5 align=right>DFRM tutorial</h5> <h1 align=center>Example 2: playing with radio buttons</h1> <H2 align=center>by Dominique Béréziat</H2> <p> Now, we know how to design a simple dialog box containing several buttons. We are going to create one formular containg three radio buttons, i.e. the user can only choose one button among the three one. In addition, we will add two buttons: a first one to validate the user choice and a second one to cancel. The result will be stored a in variable. </p> <table width="100%" border="1" > <tr> <td width="50%"> <pre> #include <windom/dfrm.h> int main() { void *frm; int pind, cind; ApplInit(); frm = dfrm_create( 10, TYPE_NORMAL); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_RBUT, "tea"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); <font color=red>dfrm_setstate( frm, cind, SELECTED, TRUE);</font> cind = dfrm_new_button( frm, TYPE_RBUT, "coffee"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); cind = dfrm_new_button( frm, TYPE_RBUT, "beer"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); dfrm_repack( frm); dfrm_form( frm, WAT_FORM, "Favorite drink?", TRUE); for(;;) EvntWindom(MU_MESAG+MU_KEYBD); return 0; } </pre> </td> <td width="50%" valign="top"> <h3>First step</h3> <p> Similarly to the first example, we create 3 buttons embedded in an invisible box to obtain a correct alignment. We choose now <tt>TYPE_RBUT</tt> which stands for a radio button.</p> <p> At this time, we decide the first button should be selected (because it could be a default choice). For that, we use the function <tt>dfrm_setstate</tt> to manipulate object states. </td> </tr> <tr> <td width="50%"> <pre> #include <windom/dfrm.h> int main() { void *frm; int pind, cind; ApplInit(); frm = dfrm_create( 10, TYPE_NORMAL); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_RBUT, "tea"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_setstate( frm, cind, SELECTED, TRUE); cind = dfrm_new_button( frm, TYPE_RBUT, "coffee"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); cind = dfrm_new_button( frm, TYPE_RBUT, "beer"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); <font color=red>pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_DBUT, "OK"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); cind = dfrm_new_button( frm, TYPE_EBUT, "Cancel"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT);</font> dfrm_repack( frm); dfrm_form( frm, WAT_FORM, "Favorite drink?", TRUE); for(;;) EvntWindom(MU_MESAG+MU_KEYBD); return 0; } </pre> </td> <td width="50%" valign="top"> <h3>Second step</h3> <p> Next, let us add two buttons, "OK" and "Cancel", to validate of to cancel the User's choice. The first one will be an "default" (<tt>TYPE_DBUT</tt>) button, i.e. an "exit" button which can be selected using the RETURN key, and the second one an "exit" (<tt>TYPE_EBUT</tt>) button, i.e. a button which can execute an user function when it is selected. Off course, these two buttons must be embedded in a box in order to obtain to correct alignment with the radio buttons. </p> </td> </tr> <tr> <td width="50%"> <pre> #include <windom/dfrm.h> <font color="red">void ok_clicked( WINDOW *win, int index, int mode) { ObjcChange( mode, win, index, ~SELECTED, TRUE); ApplWrite( _AESapid, WM_CLOSED, win->handle, 0, 0, 0, 0); }</font> int main() { void *frm; int pind, cind; ApplInit(); frm = dfrm_create( 10, TYPE_NORMAL); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_RBUT, "tea"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_setstate( frm, cind, SELECTED, TRUE); cind = dfrm_new_button( frm, TYPE_RBUT, "coffee"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); cind = dfrm_new_button( frm, TYPE_RBUT, "beer"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_DBUT, "OK"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); <font color=red>dfrm_attach( frm, cind, BIND_FUNC, ok_clicked);</font> cind = dfrm_new_button( frm, TYPE_EBUT, "Cancel"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); <font color=red>dfrm_attach( frm, cind, BIND_FUNC, ok_clicked);</font> dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); dfrm_repack( frm); dfrm_form( frm, WAT_FORM, "Favorite drink?", TRUE); for(;;) EvntWindom(MU_MESAG+MU_KEYBD); return 0; } </pre> </td> <td width="50%" valign="top"> <h3>Third step</h3> <p> The dialog box is over, we need now to interpret the user events. If you click on Ok or Cancel button, you will see the buttons staying selected. The first thing to do is to catch the event of selecting these button. To this end, we need to define a user function <i>binded</i> to these buttons. The binding between the function and the object is performed using <tt>dfrm_attach()</tt>.</p> <p>The user function, here <tt>ok_clicked</tt>, does basically two things: first the object state is set to non-selected, second a GEM signal is emitted requiring the closure of the window (and next the exit of the program because it is the standard behavior of WinDom to terminate when the last window is closed). </p> </td> </tr> <tr> <td width="50%"> <pre> #include <windom/dfrm.h> void ok_clicked( WINDOW *win, int index, int mode<font color=red>, int *data</font>) { ObjcChange( mode, win, index, ~SELECTED, TRUE); ApplWrite( _AESapid, WM_CLOSED, win->handle, 0, 0, 0, 0); <font color=red>FormAlert(1,"[1][The user selects button %d][OK]", *data);</font> } <font color=red> void cancel_clicked( WINDOW *win, int index, int mode) { ObjcChange( mode, win, index, ~SELECTED, TRUE); ApplWrite( _AESapid, WM_CLOSED, win->handle, 0, 0, 0, 0); }</font> int main() { void *frm; int pind, cind; <font color=red>int rbut = 1;</font> ApplInit(); frm = dfrm_create( 10, TYPE_NORMAL); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_RBUT, "tea"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); <font color=red>/* The value 1 will be set in rbut when this button will be selected */ dfrm_attach( frm, cind, BIND_VAR, &rbut, 1);</font> <font color=blue>/*dfrm_setstate( frm, cind, SELECTED, TRUE);*/</font> cind = dfrm_new_button( frm, TYPE_RBUT, "coffee"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); <font color=red>dfrm_attach( frm, cind, BIND_VAR, &rbut, 2);</font> cind = dfrm_new_button( frm, TYPE_RBUT, "beer"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); <font color=red>dfrm_attach( frm, cind, BIND_VAR, &rbut, 3);</font> dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); pind = dfrm_new_box( frm, 0, 0, 0, 0); cind = dfrm_new_button( frm, TYPE_DBUT, "OK"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_attach( frm, cind, BIND_FUNC, ok_clicked, <font color=red>&rbut</font>); cind = dfrm_new_button( frm, TYPE_EBUT, "Cancel"); dfrm_add( frm, pind, cind, 10, 10, DIR_HORI); dfrm_attach( frm, cind, BIND_FUNC, <font color=red>cancel_clicked</font>); dfrm_add( frm, ROOT, pind, 10, 20, DIR_VERT); dfrm_repack( frm); dfrm_form( frm, WAT_FORM, "Favorite drink?", TRUE); for(;;) EvntWindom(MU_MESAG+MU_KEYBD); return 0; } </pre> </td> <td width="50%" valign="top"> <h3>Last step</h3> <p> We also want to know which radio button the user has chosen. For that, to bind the three radio button to a unique variable. When the user selects a radio button, the specific value, identifying the button is put to the variable. The binding is perform again with the <tt>dfrm_attach</tt> function. When the interaction with is user finish, one can read in the variable the final user's choice. </p> <p> The call to <tt>dfrm_setstate()</tt> must be removed because WinDom will select the radio button with respect to the value read in the binded variable. Here, the first radio button will be selected because <tt>rbut</tt> is initialized to 1 and 1 is the value which is affected to <tt>rbut</tt> if the first button is selected. </p> <p> User function <tt>ok_clicked()</tt> is modified to get the final value chosen: the variable <tt>rbut</tt> may be given to the user function. A <tt>cancel_clicked()</tt> function is introduced which is basically the previous version of <tt>ok_clicked()</tt>. </p> </td> </tr> </table> <address> <a href="mailto:Dominique ^.^ Bereziat _@_ inria ^.^fr (a cause des spams)">Dominique Béréziat</a> </address> </body> </html> --- NEW FILE: toolbar.c --- #include <windom/dfrm.h> void draw( WINDOW *win, short msg[], int *type) { INT16 x, y, w, h, pxy[4]; WindGet( win, WF_WORKXYWH, &x, &y, &w, &h); vsf_color( win->graf->handle, BLACK); switch( *type) { case 1: v_circle( win->graf->handle, x+w/2, y+h/2, MIN(w,h)/2); break; case 2: v_ellipse( win->graf->handle, x+w/2, y+h/2, w/2, h/2); break; case 3: pxy[0]=x+w/3; pxy[1]=y+h/3; pxy[2]=x+2*w/3; pxy[3]=y+2*h/3; v_bar( win->graf->handle, pxy); break; } } void redraw( WINDOW *win) { snd_rdw(win); } void main( void) { WINDOW *win; int type = 3; void *dial; int child; ApplInit(); win = WindCreate( WAT_NOINFO, app.x, app.y, app.w, app.h); EvntDataAdd( win, WM_REDRAW, draw, &type, EV_BOT); WindOpen( win, -1, -1, app.w/2, app.h/2); dial = dfrm_create( 10, TYPE_NORMAL); dfrm_seth( dial, ROOT, -6); dfrm_setw( dial, ROOT, app.w); child = dfrm_new_button(dial, TYPE_XRBUT, "[circle"); dfrm_add( dial, ROOT, child, -4, -2, DIR_HORI); dfrm_attach( dial, child, BIND_VAR, &type, 1); dfrm_setflags( dial, child, TOUCHEXIT, TRUE); dfrm_attach( dial, child, BIND_FUNC, snd_rdw); child = dfrm_new_button(dial, TYPE_XRBUT, "[ellipse"); dfrm_add( dial, ROOT, child, -1, -2, DIR_HORI); dfrm_attach( dial, child, BIND_VAR, &type, 2); dfrm_setflags( dial, child, TOUCHEXIT, TRUE); dfrm_attach( dial, child, BIND_FUNC, snd_rdw); child = dfrm_new_button(dial, TYPE_XRBUT, "[box"); dfrm_add( dial, ROOT, child, -1, -2, DIR_HORI); dfrm_attach( dial, child, BIND_VAR, &type, 3); dfrm_setflags( dial, child, TOUCHEXIT, TRUE); dfrm_attach( dial, child, BIND_FUNC, snd_rdw); dfrm_repack(dial); dfrm_toolbar( win, dial); while( wglb.first) EvntWindom(MU_MESAG); ApplExit(); } --- NEW FILE: Makefile.am --- EXTRA_DIST = index.html Makefile.gcc Makefile.pc tut_1.html \ tut_1-1.gif tut_1-2.gif tut_1-3.gif tut_1-4.gif tut_1.c \ tut_2.html tut_2.c tut_3.html \ lang.c lang.h lang.fr lang.en lang.mak \ toolbar.c # a nettoyer --- NEW FILE: lang.h --- /* * Generated by dfrmstr on Sun Dec 11 18:34:26 2005 */ #define M0_DESK 0 #define M0_INFO 1 #define M0_FILE 2 #define M0_QUIT 3 #define M0_LANG 4 #define M0_FR 5 #define M0_EN 6 #define D0_LABEL0 7 #define D0_LABEL1 8 #define D0_OK 9 #define D0_TITLE 10 --- NEW FILE: index.html --- <html> <head> <title>DFRM tutorial</title> </head> <body> <h1 align=center>DFRM tutorial</h1> <h2 align=center>by Dominique Béréziat</h2> You can find in the directory <tt>docs/tutorial</tt> in the DFRM archive (or in <tt>/usr/share/doc/dfrm/tutorial</tt>) a series of small programs illustrating GEM programing using DFRM/WinDom. Use this <a href="Makefile.gcc">Makefile</a> to compile them with <tt>gcc</tt> in a MiNT text-terminal environnement. <ul> <li><a href="tut_1.html">Example 1</a>: create a simple alert box. <li><a href="tut_2.html">Example 2</a>: a simple example with radio buttons. <li><a href="tut_3.html">Example 3</a>: an example to handle several languages in a GEM application without resource file. <li>Example 4: manipulation of macro object is easier than an ressource editor. </ul> <address> <a href="mailto:ANT...@fr...">Dominique Béréziat</a><br> last update: dec 2010 </address> </body> </html> --- NEW FILE: Makefile.gcc --- # Generic Makefile for Gcc CC = gcc CPPFLAGS = CFLAGS = LDFLAGS = LDLIBS = -ldfrm -lwindom -lldg -lgem all: tut_1.app tut_2.app toolbar.app clean: rm -f tut_1.app toolbar.app .c.app:; $(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LDFLAGS) $(LDLIBS) .SUFFIXES: .SUFFIXES: .c .app .PHONY: all clean --- NEW FILE: lang.c --- /* Test multilanguage support */ #include <windom/dfrm.h> #include <stdlib.h> #include "lang.h" void *menu; char **strs; /* All strings of the program */ void __CDECL MenuInfo( WINDOW *win, int item, int title) { void *dial; int ind; dial = dfrm_create( 10, TYPE_NORMAL); ind = dfrm_new_label( dial, TYPE_LABEL, strs[D0_LABEL0] ); dfrm_add( dial, ROOT, ind, -1, -2, DIR_VERT); dfrm_align( dial, ind, DIR_HORI, ALIGN_CENTER); ind = dfrm_new_label( dial, TYPE_LABEL, strs[D0_LABEL1] ); dfrm_add( dial, ROOT, ind, -1, 0, DIR_VERT); dfrm_align( dial, ind, DIR_HORI, ALIGN_CENTER); ind = dfrm_new_button( dial, TYPE_DBUT, strs[D0_OK] ); dfrm_add( dial, ROOT, ind, -1, -2, DIR_VERT); dfrm_align( dial, ind, DIR_HORI, ALIGN_CENTER); dfrm_repack( dial); dfrm_modal( dial, strs[D0_TITLE]); FormWindDo( MU_MESAG); FormWindEnd(); MenuTnormal( NULL, title, 1); } void __CDECL MenuQuit( WINDOW *win, int item, int title) { ApplWrite( _AESapid, AP_TERM, 0, 0, 0, 0, 0); MenuTnormal( win, title, 1); } void __CDECL MenuEnglish( WINDOW *win, int item, int title) { void BuildMenu(void); char **_strs = dfrm_load_str( "lang.en"); if( _strs) { dfrm_free_str( strs); menu_bar( dfrm_tree( menu), 0); dfrm_free_str( strs); strs = _strs; BuildMenu(); } else { FormAlert ( 1, "[1][File \"lang.en\" not found][END]"); MenuTnormal( win, title, 1); } } void __CDECL MenuFrench( WINDOW *dummy, int item, int type, int title) { void BuildMenu(void); char **_strs = dfrm_load_str( "lang.fr"); if( _strs) { dfrm_free_str( strs); menu_bar( dfrm_tree( menu), 0); dfrm_free_str( strs); strs = _strs; BuildMenu(); } else { FormAlert ( 1, "[1][File \"lang.fr\" not found][END]"); MenuTnormal( NULL, title, 1); } } void BuildMenu(void) { int ind, pind; menu = dfrm_create( 30, TYPE_MENU); /* Create a minimal desktop menu structure */ ind = dfrm_new_dmenu( menu, strs[M0_DESK], strs[M0_INFO]); dfrm_attach( menu, ind, BIND_FUNC, MenuInfo); /* Other menu items */ pind = dfrm_add_menu( menu, strs[M0_FILE]); ind = dfrm_new_label( menu, TYPE_MITEM, strs[M0_QUIT]); dfrm_add( menu, pind, ind, 0, 0, DIR_VERT); dfrm_attach( menu, ind, BIND_FUNC, MenuQuit); /* Other menu items */ pind = dfrm_add_menu( menu, strs[M0_LANG]); ind = dfrm_new_label( menu, TYPE_MITEM, strs[M0_FR]); dfrm_align( menu, ind, DIR_HORI, ALIGN_JUSTIFY); dfrm_add( menu, pind, ind, 0, 0, DIR_VERT); dfrm_attach( menu, ind, BIND_FUNC, MenuFrench); ind = dfrm_new_label( menu, TYPE_MITEM, strs[M0_EN]); dfrm_align( menu, ind, DIR_HORI, ALIGN_JUSTIFY); dfrm_add( menu, pind, ind, 0, 0, DIR_VERT); dfrm_attach( menu, ind, BIND_FUNC, MenuEnglish); dfrm_repack( menu); /* now, install the menu */ dfrm_menu( NULL, menu); } void __CDECL ApTerm( WINDOW *dummy, short msg[]) { UNUSED(dummy); dfrm_free_str( strs); ApplExit(); exit(0); } void main( void) { ApplInit(); strs = dfrm_load_str( "lang.fr"); if( !strs) { FormAlert ( 1, "[1][File \"lang.fr\" not found][END]"); ApplExit(); return; } BuildMenu(); EvntAttach( NULL, AP_TERM, ApTerm); for( ;;) EvntWindom( MU_MESAG); } --- NEW FILE: tut_3.html --- <html> <head> <title>DFRM tutorial: several languages in a GEM application (without resource file)</title> </head> <body> <h5 align=right>DFRM tutorial</h5> <h1 align=center>Example 3: several languages in a GEM application (without resource file)</h1> <H2 align=center>by Dominique Béréziat</H2> <p> The file <a href="lang.c"><tt>lang.c</tt></a> shows how to have several languages in a GEM application. The technique is very simple: an ASCII file contains strings, it is the language file. Each line begins with an unique alphanumerical identificator followed by the string. From this file, the <tt>dfrmstr</tt> utility builds a C-header file containing the definition of the identificators. As DFRM builds dynamically dialog box, it is possible to read one or several language file, and get from this file the required strings using the unique identificator provided by the C-header generated by <tt>dfrmstr</tt>. </p> <p> In this example, the makefile <a href="lang.mak"><tt>lang.mak</tt></a> builds the <a href="lang.h"><tt>lang.h</tt></a> file from the english language file <a href="lang.en"><tt>lang.en</tt></a> using <tt>dfrmstr</tt>. <a href="lang.fr"><tt>lang.fr</tt></a> is the french version of <tt>lang.en</tt>. The program <tt>lang.c</tt> includes <tt>lang.h</tt>, loads the good language file, and stores all strings in a global array <tt>strs</tt> which can be accessed easily using indices defined in <tt>lang.h</tt>. <address> <a href="mailto:Dominique ^.^ Bereziat _@_ inria ^.^fr (a cause des spams)">Dominique Béréziat</a> </address> </body> </html> --- NEW FILE: Makefile.in --- # Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = docs/tutorial DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = index.html Makefile.gcc Makefile.pc tut_1.html \ tut_1-1.gif tut_1-2.gif tut_1-3.gif tut_1-4.gif tut_1.c \ tut_2.html tut_2.c tut_3.html \ lang.c lang.h lang.fr lang.en lang.mak \ toolbar.c all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/tutorial/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/tutorial/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am # a nettoyer # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --- NEW FILE: lang.mak --- # Example of multi-language support # $Id: lang.mak,v 1.1 2010/12/23 21:48:37 bereziat Exp $ ifeq ($(CROSS),yes) CROSSPREFIX = m68k-atari-mint CC = $(CROSSPREFIX)-gcc AR = $(CROSSPREFIX)-ar PREFIX = /usr/$(CROSSPREFIX) else CC = gcc AR = ar PREFIX = /usr endif CFLAGS = -I../include LDFLAGS = LDLIBS = ../lib/gcc295/libdfrm.a -lwindom -lldg -lgem # rule to link a GEM application %.app: %.o; $(CC) $^ -o $@ $(LDFLAGS) $(LDLIBS) # rule to generate string symbol header %.h: %.en; dfrmstr $< $@ all: lang.app lang.o: lang.h --- NEW FILE: tut_1.c --- #include <stdlib.h> #include <windom/dfrm.h> #define WITH_TEXT 1 #define WITH_ALIGN 1 #define ADD_BUTTON 1 #define BIND_BUTTON 1 void ApTerm(void) { while( wglb.first) { ApplWrite( _AESapid, WM_CLOSED, wglb.first->handle, 0, 0, 0, 0); EvntWindom( MU_MESAG); } ApplExit(); exit( 0); } void wclose( WINDOW *win, int index) { ObjcChange( OC_FORM, win, index, NORMAL, TRUE); ApplWrite( _AESapid, AP_TERM, 0, 0, 0, 0, 0); } void winfo( WINDOW *win, int index) { FormAlert( 1, "[1][Compiling using|WinDom v%x.%02x|DFRM v%x.%02x][OK]", WinDom.patchlevel >> 8 , WinDom.patchlevel & 0x00FF, __DFRM_MAJOR__,__DFRM_MINOR__); ObjcChange( OC_FORM, win, index, NORMAL, TRUE); } int main( void) { WINDOW *win; void* dial; int child, parent; ApplInit(); dial = dfrm_create( 10, TYPE_NORMAL); #if WITH_TEXT child = dfrm_new_label( dial, TYPE_LABEL, "This alert box"); dfrm_add( dial, ROOT, child, -4, -1, DIR_VERT); #if WITH_ALIGN dfrm_align( dial, child, DIR_HORI, ALIGN_CENTER); #endif child = dfrm_new_label( dial, TYPE_LABEL, "is designed using DFRM"); dfrm_add( dial, ROOT, child, -4, 0, DIR_VERT); #if WITH_ALIGN dfrm_align( dial, child, DIR_HORI, ALIGN_CENTER); #endif #else dfrm_setw( dial, ROOT, 100); dfrm_seth( dial, ROOT, 50); #endif #if ADD_BUTTON parent = dfrm_new_box( dial, 0, 0, 0, 0); child = dfrm_new_button( dial, TYPE_XDBUT, "Exit"); dfrm_add( dial, parent, child, 0, -1, DIR_HORI); #if BIND_BUTTON dfrm_attach( dial, child, BIND_FUNC, wclose); #endif child = dfrm_new_button( dial, TYPE_XEBUT, "[Info"); dfrm_add( dial, parent, child, -4, -1, DIR_HORI); #if BIND_BUTTON dfrm_attach( dial, child, BIND_FUNC, winfo); #endif dfrm_add( dial, ROOT, parent, -4, 0, DIR_VERT); #if WITH_ALIGN dfrm_align( dial, parent, DIR_HORI, ALIGN_CENTER); #endif #endif #if WITH_ALIGN dfrm_repack( dial); #endif win = dfrm_form( dial, WAT_FORM, "Alert Box", TRUE); EvntAttach( NULL, AP_TERM, ApTerm); for( ;;) EvntWindom( MU_MESAG); return 0; } --- NEW FILE: tut_1.html --- <HTML> <HEAD> <TITLE>TDFRM tutorial: a simple alert box</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <h5 align=right>DFRM tutorial</h5> <H1 align=center>Example 1: a simple alert box.</H1> <H2 align=center>by Dominique Béréziat</H2> <P>The purpose of this example is to create a alert box : a box containing a text object and two buttons "Ok" and "Cancel".</P> <TABLE WIDTH="100%" BORDER="1" HEIGHT="233"> <TR> <TD WIDTH="52%"> <PRE> #include <stdlib.h> #include <windom/dfrm.h> void ApTerm( void); void WinTerm( WINDOW *win, void *data); void main( void) { WINDOW *win; void* dial; ApplInit(); dial = dfrm_create( 10, TYPE_NORMAL); dfrm_setw( dial, ROOT, 100); dfrm_seth( dial, ROOT, 50); win = dfrm_form( dial,WAT_FORM,"Alert Box", TRUE); EvntAttach( NULL, AP_TERM, ApTerm); for( ;;) EvntWindom( MU_MESAG); } void ApTerm(void) { while( wglb.first) { ApplWrite( app.id, WM_DESTROY, wglb.first->handle, 0, 0, 0, 0); EvntWindom( MU_MESAG); } ApplExit(); exit( 0); } </PRE> </TD> <TD VALIGN="TOP" WIDTH="48%"> <h3>First Step</h3> <p> First of all, you have to initialise WinDom. Next we declare a local variable to build our dialog box : a dialog pointer. </p> <P>The second thing to do is to create a master dialog structure. The function dfrm_create() creates : </P> <UL> <LI> A dynamic structure which will contain objects.</LI> <LI>Using TYPE_NORMAL mode, we create a root object in the which is box with relief borders. Second parameter stand for the maximal number of object in the form.</LI> </UL> <P> The third thing is to place the dialog form into a window using dfrm_open(). This function is a custom call of the WinDom function FormCreate(). </p> <p> Rest of the code address some WinDom aspect to handle GEM event : the callback function ApTerm() catches AP_TERM message (application terminaison), and we handle GEM event in an infinite loop. </p> <P> <center><img src="tut_1-1.gif"></center> </P> </TD> </TR> <TR> <TD WIDTH="52%"> <PRE> #include <stdlib.h> #include <windom/dfrm.h> void ApTerm( void); void WinTerm( WINDOW *win, void *data); void main( void) { WINDOW *win; void* dial; <font color=red>int child;</font> ApplInit(); dial = dfrm_create( 10, TYPE_NORMAL); <font color=green>/* Useless code dfrm_setw( dial, ROOT, 100); dfrm_seth( dial, ROOT, 50); */</font> <font color=red> child = dfrm_new_label( dial, TYPE_LABEL, "This alert box"); dfrm_add( dial, ROOT, child, -4, -1, DIR_VERT); child = dfrm_new_label( dial, TYPE_LABEL, "is designed using DFRM"); dfrm_add( dial, ROOT, child, -4, 0, DIR_VERT);</font> win = dfrm_form( dial,WAT_FORM,"Alert Box", TRUE); EvntAttach( NULL, AP_TERM, ApTerm); for( ;;) EvntWindom( MU_MESAG); } void ApTerm(void) { while( wglb.first) { ApplWrite( app.id, WM_DESTROY, wglb.first->handle, 0, 0, 0, 0); EvntWindom( MU_MESAG); } ApplExit(); exit( 0); } </PRE> </TD> <TD WIDTH="48%" valign=TOP> <h3>Second Step</h3> <p> In the next step, we add two labeled objects. For that purpose we have to declare a local variable, <tt>child</tt>, which hold the index of created object. </p> <p> Directive of size on the root object (<tt>dfrm_setw()</tt> and <tt>dfrm_seth()</tt>) are now useness because when we add children objects to a object, its size is recomputed in order to contain its children objects. </P> <p> DFRM functions with prefix <tt>dfrm_new_</tt> create new objects. Here we create two label objects with <tt>dfrm_new_label()</tt>. </p> <p> After object creation, we can add it in the dialog structure using <tt>dfrm_add()</tt>. So They are added as children of ROOT object, they are vertically aligned, each object are spaced using a demi-height character (-1). Objects are placed from 2 width character (-4) from the left border because objects are left-aligned by default. </p> <p> <center> <img src="tut_1-2.gif"> </center> </p> </TD> </TR> <TR> <TD WIDTH="52%"> <PRE> #include <stdlib.h> #include <windom/dfrm.h> void ApTerm( void); void WinTerm( WINDOW *win, void *data); void main( void) { WINDOW *win; void* dial; int child, <font color=red>parent;</font> ApplInit(); dial = dfrm_create( 10, TYPE_NORMAL); child = dfrm_new_label( dial, TYPE_LABEL, "This alert box"); dfrm_add( dial, ROOT, child, -4, -1, DIR_VERT); child = dfrm_new_label( dial, TYPE_LABEL, "is designed using DFRM"); dfrm_add( dial, ROOT, child, -4, 0, DIR_VERT); <font color=red>/* 1. Create an Invisible BOX */ parent = dfrm_new_box( dial, 0, 0, 0, 0); /* 2. create a button */ child = dfrm_new_button( dial, TYPE_XDBUT, "Exit"); /* 3. horizontaly aligned in inv. box */ dfrm_add( dial, parent, child, 0, -1, DIR_HORI); /* another button */ child = dfrm_new_button( dial, TYPE_XEBUT, "[Info"); dfrm_add( dial, parent, child, -4, -1, DIR_HORI); /* 4. adding invisible box in ROOT object */ dfrm_add( dial, ROOT, parent, -4, 0, DIR_VERT);</font> win = dfrm_form( dial,WAT_FORM,"Alert Box", TRUE); EvntAttach( NULL, AP_TERM, ApTerm); for( ;;) EvntWindom( MU_MESAG); } void ApTerm(void) { while( wglb.first) { ApplWrite( app.id, WM_DESTROY, wglb.first->handle, 0, 0, 0, 0); EvntWindom( MU_MESAG); } ApplExit(); exit( 0); } </PRE> </TD> <TD WIDTH="48%" VALIGN=TOP> <h3>Third Step</h3> Now, we want to add horizontaly aligned buttons above label objects. We need a second local variable containing a parent object index. To align horizontal buttons we have to : <ol> <li> create an invisible box. <li> create and align buttons. <li> add button as children of invisible box. <li> add invisible as children of ROOT object with an vertical alignment. </ol> <center> <img src="tut_1-3.gif"> </center> </TD> </TR> <TR> <TD WIDTH="52%"> <PRE> #include <stdlib.h> #include <windom/dfrm.h> void ApTerm( void); void WinTerm( WINDOW *win, void *data); <font color=red>void winfo( WINDOW *win, int index); void wclose( WINDOW *win, int index);</font> void main( void) { WINDOW *win; void* dial; int child, parent; ApplInit(); dial = dfrm_create( 10, TYPE_NORMAL); child = dfrm_new_label( dial, TYPE_LABEL, "This alert box"); dfrm_add( dial, ROOT, child, -4, -1, DIR_VERT); <font color=red>dfrm_align( dial, child, DIR_HORI, ALIGN_CENTER);</font> child = dfrm_new_label( dial, TYPE_LABEL, "is designed using DFRM"); dfrm_add( dial, ROOT, child, -4, 0, DIR_VERT); <font color=red>dfrm_align( dial, child, DIR_HORI, ALIGN_CENTER);</font> /* 1. Create an Invisible BOX */ parent = dfrm_new_box( dial, 0, 0, 0, 0); /* 2. create a button */ child = dfrm_new_button( dial, TYPE_XDBUT, "Exit"); <font color=red>dfrm_attach( dial, child, BIND_FUNC, wclose);</font> /* 3. horizontaly aligned in inv. box */ dfrm_add( dial, parent, child, 0, -1, DIR_HORI); /* another button */ child = dfrm_new_button( dial, TYPE_XEBUT, "[Info"); dfrm_add( dial, parent, child, -4, -1, DIR_HORI); <font color=red>dfrm_attach( dial, child, BIND_FUNC, winfo);</font> /* 4. adding invisible box in ROOT object */ dfrm_add( dial, ROOT, parent, -4, 0, DIR_VERT); <font color=red>dfrm_align( dial, parent, DIR_HORI, ALIGN_CENTER);</font> <font color=red>dfrm_repack( dial);</font> win = dfrm_form( dial, WAT_FORM,"Alert Box", TRUE); EvntAttach( NULL, AP_TERM, ApTerm); for( ;;) EvntWindom( MU_MESAG); } void ApTerm(void) { while( wglb.first) { ApplWrite( app.id, WM_DESTROY, wglb.first->handle, 0, 0, 0, 0); EvntWindom( MU_MESAG); } ApplExit(); exit( 0); } <font color=red> void wclose( WINDOW *win, int index) { ObjcChange( OC_FORM, win, index, NORMAL, TRUE); ApplWrite( app.id, AP_TERM, 0, 0, 0, 0, 0); } void winfo( WINDOW *win, int index) { FormAlert( 1, "[1][Compiling using|WinDom v%x.%02x" "|DFRM v%x.%02x][OK]", WinDom.patchlevel >> 8 , WinDom.patchlevel & 0x00FF, __DFRM_MAJOR__,__DFRM_MINOR__); ObjcChange( OC_FORM, win, index, NORMAL, TRUE); } </font> </PRE> </TD> <TD WIDTH="48%" VALIGN=TOP> <h3>Last Step</h3> <p> In this last step, we can adding some alignement/justification directive. For example, we want to center texts and buttons inside the form : we specified a centered directive for each concerned object using <tt>dfrm_align()</tt> function. </p> <p> Directives of alignment are effective only after the function <tt>dfrm_repack()</tt> is invoked. </p> <p> <img src="tut_1-4.gif"> </p> <p> We finish by adding callback funtions to selectable objects. We attach the functions : <ol> <li><tt>wclose</tt> to the button "Exit". The function simply close the window. <li><tt>winfo</tt> to the button "Info". This function open an alert box displaying WinDom and DFRM number version. </ol> </p> </TD> </TR> </TABLE> <hr> <address> Comment ? suggestion ? Send a mail to <a href="Dom...@li...">Dominique Béréziat</a>. </address> </BODY> </HTML> --- NEW FILE: tut_1-3.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: tut_1-2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: tut_1-4.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Makefile.pc --- # Makefile for Pure C using the cc driver. I guess it is totaly obsolet # Prefer gcc CC = cc CFLAGS = -O -W0,-P LDFLAGS = -lwindom -ldfrm -lpcgemlib -lpcgmxlib -lpctoslib tut_1.app: tut_1.o $(CC) $^ -o $@ $(LDFLAGS) clean: $(RM) *.app *.o --- NEW FILE: tut_1-1.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lang.fr --- # Le menu M0_DESK DFRM lang M0_INFO A propos ... ^I M0_FILE Fichiers M0_QUIT Quitter ^Q M0_LANG Langue M0_FR Franais M0_EN English # Dial 0 D0_LABEL0 Dmonstration du D0_LABEL1 support multi-langue D0_OK OK D0_TITLE Info |
Update of /cvsroot/windom/htdocs/dfrm/html In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv27394/html Added Files: align_8c.html annotated.html attach_8c.html box_8c.html classes.html core_8c.html debug_8c.html dfrm_8h-source.html dfrm_8h.html dfrmstr.html dfrmstr_8c.html doxydoc_8c.html doxygen.css doxygen.png files.html functions.html functions_vars.html globals.html globals_0x61.html globals_0x62.html globals_0x64.html globals_0x66.html globals_0x67.html globals_0x6c.html globals_0x6d.html globals_0x6e.html globals_0x6f.html globals_0x70.html globals_0x73.html globals_0x74.html globals_0x75.html globals_0x77.html globals_0x78.html globals_8h-source.html globals_8h.html globals_defs.html globals_func.html globals_type.html group__dfrm__base.html group__dfrm__beta.html group__dfrm__macro.html group__dfrm__new.html group__dfrm__tun.html group__dfrm__utils.html history.html icon_8c.html image_8c.html index.html installation.html introduction.html lang.html legal.html line_8c.html menu_8c.html modules.html mt__dfrm_8h-source.html mt__dfrm_8h.html pages.html prog.html rscstr_8c.html slider_8c.html string_8c.html struct__dfrm.html struct__dfrm_1_1__bind.html struct__dfrm_1_1properties.html structdfrm__thumb.html structline__style.html structmfdb__handle.html tab_b.gif tab_l.gif tab_r.gif tabs.css tedinfo_8c.html thumb_8c.html todo.html tune_8c.html Log Message: docs in dfrm website. --- NEW FILE: tab_r.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: group__dfrm__beta.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Dynamic Forms: Beta functions</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1>Beta functions</h1>Weak functions under developement. Use at your own risk ! <a href="#_details">More...</a> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__beta.html#g04e25198d58ee59eeac9c5d0b9faf5a0">dfrm_new_xcicon</a>(d, i, du) mt_dfrm_new_xcicon(gl_appvar,d,i,du)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a WinDom color icon , see <a class="el" href="group__dfrm__beta.html#g1d7214365e86ec8bbfbd916fab415ef4" title="Create an icon color from WinDom extended color icon type (XCICON - 0xD).">mt_dfrm_new_xcicon()</a>. <a href="#g04e25198d58ee59eeac9c5d0b9faf5a0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__beta.html#g1ea7c87700802cfbed35eb9b0f1dd518">dfrm_new_image</a>(d, i, du) mt_dfrm_new_image(gl_appvar,d,i,du)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an object displaying an image, see <a class="el" href="group__dfrm__beta.html#g9e4c133bca7b7e527b77dc8e583039e8" title="Creates an object displaying an image.">mt_dfrm_new_image()</a>. <a href="#g1ea7c87700802cfbed35eb9b0f1dd518"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__beta.html#g43ce03baabeb6e3213cd73a8eb315440">dfrm_new_texture</a>(d, i, w, h) mt_dfrm_new_texture(gl_appvar,d,i,w,h)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an object displaying a texture, see <a class="el" href="group__dfrm__beta.html#g01438caa0363c5485d9ef50e73b9bebb" title="Creates an object displaying a texture.">mt_dfrm_new_texture()</a>. <a href="#g43ce03baabeb6e3213cd73a8eb315440"></a><br></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__beta.html#g1d7214365e86ec8bbfbd916fab415ef4">mt_dfrm_new_xcicon</a> (APPvar *ap, void *dfrm, CICONBLK *icon, int dup)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an icon color from WinDom extended color icon type (<b>XCICON</b> - 0xD). <a href="#g1d7214365e86ec8bbfbd916fab415ef4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__beta.html#g9e4c133bca7b7e527b77dc8e583039e8">mt_dfrm_new_image</a> (APPvar *ap, void *dfrm, MFDB *img, int dup)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an object displaying an image. <a href="#g9e4c133bca7b7e527b77dc8e583039e8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__beta.html#g01438caa0363c5485d9ef50e73b9bebb">mt_dfrm_new_texture</a> (APPvar *ap, void *dfrm, MFDB *img, int w, int h)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an object displaying a texture. <a href="#g01438caa0363c5485d9ef50e73b9bebb"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Weak functions under developement. Use at your own risk ! <hr><h2>Define Documentation</h2> <a class="anchor" name="g1ea7c87700802cfbed35eb9b0f1dd518"></a><!-- doxytag: member="dfrm.h::dfrm_new_image" ref="g1ea7c87700802cfbed35eb9b0f1dd518" args="(d, i, du)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define dfrm_new_image </td> <td>(</td> <td class="paramtype">d, <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">i, <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">du </td> <td class="paramname"> </td> <td> ) </td> <td> mt_dfrm_new_image(gl_appvar,d,i,du)</td> </tr> </table> </div> <div class="memdoc"> <p> Creates an object displaying an image, see <a class="el" href="group__dfrm__beta.html#g9e4c133bca7b7e527b77dc8e583039e8" title="Creates an object displaying an image.">mt_dfrm_new_image()</a>. <p> </div> </div><p> <a class="anchor" name="g43ce03baabeb6e3213cd73a8eb315440"></a><!-- doxytag: member="dfrm.h::dfrm_new_texture" ref="g43ce03baabeb6e3213cd73a8eb315440" args="(d, i, w, h)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define dfrm_new_texture </td> <td>(</td> <td class="paramtype">d, <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">i, <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">w, <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">h </td> <td class="paramname"> </td> <td> ) </td> <td> mt_dfrm_new_texture(gl_appvar,d,i,w,h)</td> </tr> </table> </div> <div class="memdoc"> <p> Creates an object displaying a texture, see <a class="el" href="group__dfrm__beta.html#g01438caa0363c5485d9ef50e73b9bebb" title="Creates an object displaying a texture.">mt_dfrm_new_texture()</a>. <p> </div> </div><p> <a class="anchor" name="g04e25198d58ee59eeac9c5d0b9faf5a0"></a><!-- doxytag: member="dfrm.h::dfrm_new_xcicon" ref="g04e25198d58ee59eeac9c5d0b9faf5a0" args="(d, i, du)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define dfrm_new_xcicon </td> <td>(</td> <td class="paramtype">d, <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">i, <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">du </td> <td class="paramname"> </td> <td> ) </td> <td> mt_dfrm_new_xcicon(gl_appvar,d,i,du)</td> </tr> </table> </div> <div class="memdoc"> <p> Create a WinDom color icon , see <a class="el" href="group__dfrm__beta.html#g1d7214365e86ec8bbfbd916fab415ef4" title="Create an icon color from WinDom extended color icon type (XCICON - 0xD).">mt_dfrm_new_xcicon()</a>. <p> </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="g9e4c133bca7b7e527b77dc8e583039e8"></a><!-- doxytag: member="mt_dfrm.h::mt_dfrm_new_image" ref="g9e4c133bca7b7e527b77dc8e583039e8" args="(APPvar *ap, void *dfrm, MFDB *img, int dup)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int mt_dfrm_new_image </td> <td>(</td> <td class="paramtype">APPvar * </td> <td class="paramname"> <em>app</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>dfrm</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">MFDB * </td> <td class="paramname"> <em>mfdb</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>dup</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Creates an object displaying an image. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>app</em> </td><td>application descriptor, </td></tr> <tr><td valign="top"></td><td valign="top"><em>dfrm</em> </td><td>form descriptor, </td></tr> <tr><td valign="top"></td><td valign="top"><em>mfdb</em> </td><td>pointer to a image data in MFDB format, </td></tr> <tr><td valign="top"></td><td valign="top"><em>dup</em> </td><td>if <b>TRUE</b>, data image will be memory-duplicated, </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>index of the created object.</dd></dl> This function creates an object displaying an image. The image should have the same number of plan than current screen resolution.<p> Notice than SCREEN (see <a href="http://ldg.free.fr/screen/">http://ldg.free.fr/screen/</a>) may adpated very easily any image format to the current resolution. The demonstration program of DFRM depicts the usage of SCREEN.<p> The image is displayed using the UserDraw WinDom extended type (see RsrcUserDraw() for details) and the link will be effective only after a <a class="el" href="group__dfrm__base.html#gb21fd6d08d0b47089ec1919b3cb2d21f" title="Makes effective bindings performed with mt_dfrm_attach(), see mt_dfrm_win_attach()...">dfrm_win_attach()</a> call.<p> If <em>dup</em> parameter is set to <b>FALSE</b>, the object uses data from image buffer given as parameter. These data should always available as long as the object is displayed. Otherwise, you can duplicate memory (<em>dup</em> parameter set to <b>TRUE</b>), in this case image object will be totally independant from image buffer data. <p>References <a class="el" href="attach_8c.html#ffba44401f4a32242b99b7a3aaa73054">__malloc_obspec()</a>, <a class="el" href="box_8c-source.html#l00039">dfrm_new_box()</a>, <a class="el" href="core_8c-source.html#l00202">dfrm_tree()</a>, <a class="el" href="image_8c-source.html#l00041">mfdb_handle::handle</a>, and <a class="el" href="image_8c-source.html#l00040">mfdb_handle::mfdb</a>.</p> <p>Referenced by <a class="el" href="image_8c-source.html#l00159">mt_dfrm_new_texture()</a>.</p> </div> </div><p> <a class="anchor" name="g01438caa0363c5485d9ef50e73b9bebb"></a><!-- doxytag: member="mt_dfrm.h::mt_dfrm_new_texture" ref="g01438caa0363c5485d9ef50e73b9bebb" args="(APPvar *ap, void *dfrm, MFDB *img, int w, int h)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int mt_dfrm_new_texture </td> <td>(</td> <td class="paramtype">APPvar * </td> <td class="paramname"> <em>app</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>dfrm</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">MFDB * </td> <td class="paramname"> <em>mfdb</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>h</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Creates an object displaying a texture. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>app</em> </td><td>application descriptor, </td></tr> <tr><td valign="top"></td><td valign="top"><em>dfrm</em> </td><td>form descriptor, </td></tr> <tr><td valign="top"></td><td valign="top"><em>mfdb</em> </td><td>pointer to a image data in MFDB format, </td></tr> <tr><td valign="top"></td><td valign="top"><em>w,h</em> </td><td>object dimension, </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>index of the created object.</dd></dl> A texture is just a pattern of a same image repeated until the area to paint is filled. For details, see <a class="el" href="group__dfrm__beta.html#g9e4c133bca7b7e527b77dc8e583039e8" title="Creates an object displaying an image.">mt_dfrm_new_image()</a>. <p>References <a class="el" href="tune_8c-source.html#l00046">dfrm_seth()</a>, <a class="el" href="tune_8c-source.html#l00098">dfrm_setstate()</a>, <a class="el" href="tune_8c-source.html#l00035">dfrm_setw()</a>, <a class="el" href="image_8c-source.html#l00102">mt_dfrm_new_image()</a>, and <a class="el" href="mt__dfrm_8h-source.html#l00138">STATE8</a>.</p> </div> </div><p> <a class="anchor" name="g1d7214365e86ec8bbfbd916fab415ef4"></a><!-- doxytag: member="mt_dfrm.h::mt_dfrm_new_xcicon" ref="g1d7214365e86ec8bbfbd916fab415ef4" args="(APPvar *ap, void *dfrm, CICONBLK *icon, int dup)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int mt_dfrm_new_xcicon </td> <td>(</td> <td class="paramtype">APPvar * </td> <td class="paramname"> <em>app</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>dfrm</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">CICONBLK * </td> <td class="paramname"> <em>icon</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>dup</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Create an icon color from WinDom extended color icon type (<b>XCICON</b> - 0xD). <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>app</em> </td><td>application descriptor, </td></tr> <tr><td valign="top"></td><td valign="top"><em>dfrm</em> </td><td>form pointer, </td></tr> <tr><td valign="top"></td><td valign="top"><em>icon</em> </td><td>pointer to AES cicon data, </td></tr> <tr><td valign="top"></td><td valign="top"><em>dup</em> </td><td>if <b>TRUE</b> icon data will be memory duplicated.</td></tr> </table> </dl> When WinDom uses internal resource or RsrcXload() function, it uses it own format of icon (advantage is color icons are available on any TOS version, and XCICON have some additional display control) These icons must be fixed with RsrcFixCicon() (that is the case with RsrcXload().<p> Rem : the WinDom macro GET_CICONBLK returns the CICONBLK structure of an object, a XCICON object has a ob_type value of 0xD18.<p> <dl compact><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>There are some change in WinDom 2 about this. </dd></dl> <p>References <a class="el" href="attach_8c.html#ffba44401f4a32242b99b7a3aaa73054">__malloc_obspec()</a>, <a class="el" href="core_8c-source.html#l00072">dfrm_init_obj()</a>, and <a class="el" href="core_8c-source.html#l00202">dfrm_tree()</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Dec 23 18:55:34 2010 for Dynamic Forms by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html> --- NEW FILE: globals_8h.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Dynamic Forms: globals.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="contents"> <h1>globals.h File Reference</h1><code>#include <assert.h></code><br> <code>#include <string.h></code><br> <code>#include <stdlib.h></code><br> <code>#include <stdio.h></code><br> <code>#include <<a class="el" href="mt__dfrm_8h-source.html">windom/mt_dfrm.h</a>></code><br> <code>#include <compiler.h></code><br> <p> <a href="globals_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__dfrm.html">_dfrm</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__dfrm_1_1properties.html">_dfrm::_dfrm::properties</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__dfrm_1_1__bind.html">_dfrm::_dfrm::_bind</a></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#9065c014fd7e93a4eedc547e9b417173">TRACE_ALERT</a>() FormAlert( 1, "[1][TRACE|%s|%d][OK]",__FILE__, __LINE__)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#7b222070c0f0c425367cc3eca6fd9426">TRACE_PRINTF</a>() printf( "TRACE:%s:%d\r\n",__FILE__, __LINE__)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#771af6f75a1eaad2a82440ce3395a40f">TRACE_WOUT</a>() wout_printf( "TRACE:%s:%d\n",__FILE__, __LINE__)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#06c948de2e7636750fd8a4a085213d90">USERDRAW</a> 0xFF</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#e7c2c30d9ef8cf63af373d365e28e16e">XCICON</a> 0x0D</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#85d58b5aa6537bd285b611e8f8fe3251">XBOXLONGTEXT</a> 0x09</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#3dc98078995014c5e90d3955e2153778">XFREESTR</a> 0x0C</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#b0b98495554b00fe7afa54c35985cc93">XTEDINFO</a> 0x0B</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#6cb9f4232ba24e84a0d048fb0cb863dc">XBFOBSPEC</a> 0x0A</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#369e860b6b4666fc02d501500e505775">XSMENU</a> 0x01</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#7f0e6a45645fd3340759abad36e2ba6d">FREEOBJ</a> 0x8000</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#6a1edfb1978ca1093dcf082681a66a61">NILOBJ</a> -1</td></tr> <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef struct <a class="el" href="struct__dfrm.html">_dfrm</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#6628b02a3b5d7814bc438f362b3dc375">DFRM</a></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a8afe7d40b34c4c92e3628ea8f7ad183">dfrm_init_obj</a> (OBJECT *tree)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#4efe6f06892355052613024622de5afd">dfrm_adjust_size</a> (int *w, int *h)</td></tr> </table> <hr><h2>Define Documentation</h2> <a class="anchor" name="7f0e6a45645fd3340759abad36e2ba6d"></a><!-- doxytag: member="globals.h::FREEOBJ" ref="7f0e6a45645fd3340759abad36e2ba6d" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define FREEOBJ 0x8000 </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="6a1edfb1978ca1093dcf082681a66a61"></a><!-- doxytag: member="globals.h::NILOBJ" ref="6a1edfb1978ca1093dcf082681a66a61" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define NILOBJ -1 </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Referenced by <a class="el" href="core_8c-source.html#l00306">dfrm_add()</a>, <a class="el" href="core_8c-source.html#l00072">dfrm_init_obj()</a>, <a class="el" href="align_8c-source.html#l00109">dfrm_repack()</a>, <a class="el" href="menu_8c-source.html#l00044">mt_dfrm_add_menu()</a>, and <a class="el" href="core_8c-source.html#l00119">mt_dfrm_create()</a>.</p> </div> </div><p> <a class="anchor" name="9065c014fd7e93a4eedc547e9b417173"></a><!-- doxytag: member="globals.h::TRACE_ALERT" ref="9065c014fd7e93a4eedc547e9b417173" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TRACE_ALERT </td> <td>(</td> </td> <td class="paramname"> </td> <td> ) </td> <td> FormAlert( 1, "[1][TRACE|%s|%d][OK]",__FILE__, __LINE__)</td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="7b222070c0f0c425367cc3eca6fd9426"></a><!-- doxytag: member="globals.h::TRACE_PRINTF" ref="7b222070c0f0c425367cc3eca6fd9426" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TRACE_PRINTF </td> <td>(</td> </td> <td class="paramname"> </td> <td> ) </td> <td> printf( "TRACE:%s:%d\r\n",__FILE__, __LINE__)</td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="771af6f75a1eaad2a82440ce3395a40f"></a><!-- doxytag: member="globals.h::TRACE_WOUT" ref="771af6f75a1eaad2a82440ce3395a40f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TRACE_WOUT </td> <td>(</td> </td> <td class="paramname"> </td> <td> ) </td> <td> wout_printf( "TRACE:%s:%d\n",__FILE__, __LINE__)</td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="06c948de2e7636750fd8a4a085213d90"></a><!-- doxytag: member="globals.h::USERDRAW" ref="06c948de2e7636750fd8a4a085213d90" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define USERDRAW 0xFF </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="6cb9f4232ba24e84a0d048fb0cb863dc"></a><!-- doxytag: member="globals.h::XBFOBSPEC" ref="6cb9f4232ba24e84a0d048fb0cb863dc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define XBFOBSPEC 0x0A </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="85d58b5aa6537bd285b611e8f8fe3251"></a><!-- doxytag: member="globals.h::XBOXLONGTEXT" ref="85d58b5aa6537bd285b611e8f8fe3251" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define XBOXLONGTEXT 0x09 </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Referenced by <a class="el" href="tedinfo_8c-source.html#l00181">mt_dfrm_new_mtext()</a>.</p> </div> </div><p> <a class="anchor" name="e7c2c30d9ef8cf63af373d365e28e16e"></a><!-- doxytag: member="globals.h::XCICON" ref="e7c2c30d9ef8cf63af373d365e28e16e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define XCICON 0x0D </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="3dc98078995014c5e90d3955e2153778"></a><!-- doxytag: member="globals.h::XFREESTR" ref="3dc98078995014c5e90d3955e2153778" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define XFREESTR 0x0C </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="369e860b6b4666fc02d501500e505775"></a><!-- doxytag: member="globals.h::XSMENU" ref="369e860b6b4666fc02d501500e505775" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define XSMENU 0x01 </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="b0b98495554b00fe7afa54c35985cc93"></a><!-- doxytag: member="globals.h::XTEDINFO" ref="b0b98495554b00fe7afa54c35985cc93" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define XTEDINFO 0x0B </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Typedef Documentation</h2> <a class="anchor" name="6628b02a3b5d7814bc438f362b3dc375"></a><!-- doxytag: member="globals.h::DFRM" ref="6628b02a3b5d7814bc438f362b3dc375" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef struct <a class="el" href="struct__dfrm.html">_dfrm</a> <a class="el" href="struct__dfrm.html">DFRM</a> </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="4efe6f06892355052613024622de5afd"></a><!-- doxytag: member="globals.h::dfrm_adjust_size" ref="4efe6f06892355052613024622de5afd" args="(int *w, int *h)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void dfrm_adjust_size </td> <td>(</td> <td class="paramtype">int * </td> <td class="paramname"> <em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int * </td> <td class="paramname"> <em>h</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Referenced by <a class="el" href="core_8c-source.html#l00306">dfrm_add()</a>, <a class="el" href="box_8c-source.html#l00039">dfrm_new_box()</a>, <a class="el" href="box_8c-source.html#l00116">dfrm_new_cbox()</a>, <a class="el" href="box_8c-source.html#l00075">dfrm_new_fbox()</a>, <a class="el" href="tune_8c-source.html#l00046">dfrm_seth()</a>, <a class="el" href="tune_8c-source.html#l00035">dfrm_setw()</a>, <a class="el" href="tune_8c-source.html#l00058">dfrm_setx()</a>, <a class="el" href="tune_8c-source.html#l00070">dfrm_sety()</a>, <a class="el" href="line_8c-source.html#l00099">mt_dfrm_new_line()</a>, <a class="el" href="tedinfo_8c-source.html#l00181">mt_dfrm_new_mtext()</a>, and <a class="el" href="string_8c-source.html#l00179">mt_dfrm_new_tbox()</a>.</p> </div> </div><p> <a class="anchor" name="a8afe7d40b34c4c92e3628ea8f7ad183"></a><!-- doxytag: member="globals.h::dfrm_init_obj" ref="a8afe7d40b34c4c92e3628ea8f7ad183" args="(OBJECT *tree)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int dfrm_init_obj </td> <td>(</td> <td class="paramtype">OBJECT * </td> <td class="paramname"> <em>tree</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <p>References <a class="el" href="globals_8h-source.html#l00057">NILOBJ</a>.</p> <p>Referenced by <a class="el" href="box_8c-source.html#l00039">dfrm_new_box()</a>, <a class="el" href="box_8c-source.html#l00116">dfrm_new_cbox()</a>, <a class="el" href="box_8c-source.html#l00075">dfrm_new_fbox()</a>, <a class="el" href="string_8c-source.html#l00070">mt_dfrm_new_button()</a>, <a class="el" href="icon_8c-source.html#l00187">mt_dfrm_new_cicon()</a>, <a class="el" href="tedinfo_8c-source.html#l00229">mt_dfrm_new_edit()</a>, <a class="el" href="tedinfo_8c-source.html#l00279">mt_dfrm_new_fedit()</a>, <a class="el" href="tedinfo_8c-source.html#l00127">mt_dfrm_new_ftext()</a>, <a class="el" href="icon_8c-source.html#l00043">mt_dfrm_new_icon()</a>, <a class="el" href="string_8c-source.html#l00143">mt_dfrm_new_label()</a>, <a class="el" href="tedinfo_8c-source.html#l00181">mt_dfrm_new_mtext()</a>, <a class="el" href="string_8c-source.html#l00179">mt_dfrm_new_tbox()</a>, <a class="el" href="tedinfo_8c-source.html#l00077">mt_dfrm_new_text()</a>, <a class="el" href="icon_8c-source.html#l00222">mt_dfrm_new_xcicon()</a>, and <a class="el" href="tedinfo_8c-source.html#l00333">mt_dfrm_new_xedit()</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Dec 23 18:55:34 2010 for Dynamic Forms by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html> --- NEW FILE: history.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Dynamic Forms: History & Changelog</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1><a class="anchor" name="history">History & Changelog </a></h1><h2><a class="anchor" name="news"> The NEWS file</a></h2> <div class="fragment"><pre class="fragment">v 0.4.5 (december 10) Bug fix in <a class="code" href="group__dfrm__base.html#gb21fd6d08d0b47089ec1919b3cb2d21f" title="Makes effective bindings performed with mt_dfrm_attach(), see mt_dfrm_win_attach()...">dfrm_win_attach</a>() <a class="code" href="group__dfrm__utils.html#gc1c6b93494664229dee49ff910290488" title="Quick declaration of a toolbar in a window, see mt_dfrm_toolbar().">dfrm_toolbar</a>() now correctly defined More tutorials v 0.4.4 (march 06) Minor changes for better integration in WinDom 2 v 0.4.3 (december 05) Adaptation to WinDom 2 Improvement of <a class="code" href="group__dfrm__utils.html#g2e8207c18b42dd9f51d7124b900d87aa" title="Load strings from a text file generated by dfrmstr.">mt_dfrm_load_str</a>() Pure C, Sozobon C and Gcc 2.8.1 are no more supported (because WinDom2 no more supported - see WinDom 2 for complet explanations). v 0.4.2 (jully 04) Adaptation to mt-Windom Importing in CVS WinDom repository (SourceForge) fix : AES calls removed from userdef functions v 0.4.1 (febuary 03) Improving image and texture <span class="keywordtype">object</span> (UserDraw are no longer used), Adding <a class="code" href="group__dfrm__new.html#g00dac1924a9e75ab302fbbf2c141df69" title="Create a line (or arrow) object.">dfrm_new_line</a>(). Splitting dfrm into small modules. v 0.4.0 (january 03) Fix bug in <a class="code" href="group__dfrm__utils.html#g65228958863e1c2a5b174748139590b0" title="Load strings from a text file generated by dfrmstr, see mt_dfrm_load_str().">dfrm_load_str</a>(). Adding <a class="code" href="group__dfrm__base.html#g230e094c6a19c3dd7036a07be75bd572" title="Searching object by its label, see mt_dfrm_find_label().">dfrm_find_label</a>() function. Adding a function in <a class="code" href="group__dfrm__utils.html#gfafb5255f9765253fc6c978480e3a71c" title="Quick declaration of a menu in a window (or desktop menu), see mt_dfrm_menu().">dfrm_menu</a>() to unhilight a menu title when any item is selected. Adding <a class="code" href="group__dfrm__new.html#gc208611fc1f87dbb0485915bad25c55e" title="Create a monochrome icon , see mt_dfrm_new_icon().">dfrm_new_icon</a>() and <a class="code" href="group__dfrm__new.html#g22ca988d76140213b6e7303631684d61" title="Create a color icon , see mt_dfrm_new_cicon().">dfrm_new_cicon</a>() functions. Adding <a class="code" href="group__dfrm__beta.html#g04e25198d58ee59eeac9c5d0b9faf5a0" title="Create a WinDom color icon , see mt_dfrm_new_xcicon().">dfrm_new_xcicon</a>() and <a class="code" href="group__dfrm__beta.html#g1ea7c87700802cfbed35eb9b0f1dd518" title="Creates an object displaying an image, see mt_dfrm_new_image().">dfrm_new_image</a>() functions. Adding <a class="code" href="group__dfrm__utils.html#g4d3ff54a48e4124c5dc619b1f2f8163f" title="Quick declaration of a modal form window, see mt_dfrm_modal().">dfrm_modal</a>() function. v 0.3.1 (november 02) Turn <a class="code" href="struct__dfrm.html">DFRM</a> licence into LGPL licence. Add library for gcc 295 (cross-compiled by Arnaud Bercegeay). Adding a release number in version number. v 0.3 (november 02) First official public release Adding tuning functions (dfrm_setsize() is deprecated). Completed documentation. Small bug corrected in centering alignment. Adding functions <a class="code" href="group__dfrm__utils.html#g2c2a93622e6138bf51d874f0a2dcc908" title="Quick declaration of a form window, see mt_dfrm_form().">dfrm_form</a>(), <a class="code" href="group__dfrm__utils.html#gfafb5255f9765253fc6c978480e3a71c" title="Quick declaration of a menu in a window (or desktop menu), see mt_dfrm_menu().">dfrm_menu</a>() and <a class="code" href="group__dfrm__utils.html#gc1c6b93494664229dee49ff910290488" title="Quick declaration of a toolbar in a window, see mt_dfrm_toolbar().">dfrm_toolbar</a>(). v 0.2 (september 02) Many bugs fixed, many basic <span class="keywordtype">object</span> implemented. Documentation partially written. v 0.1 (august 02) Initial developpement, started from an Arnaud wish and an old project. </pre></div><h2><a class="anchor" name="changelog"> The ChangeLog file</a></h2> <div class="fragment"><pre class="fragment">2006-03-04 19:46 bereziat * ChangeLog, VERSION, include/windom/mt_dfrm.h: Set release number to 0.4.4 2006-02-28 01:02 bereziat * examples/: Makefile, README, demo.c, gcc295.mak: One Makefile to compile with gcc 2.9.5 (and cross compile). Typo fix in demo.c a README to explain how to compile (and status <span class="keywordflow">for</span> other compilers) 2006-02-26 23:27 bereziat * examples/demo.c: Updating (c) year and authors name :-) 2006-02-26 23:19 bereziat * examples/gcc281.mak, examples/gcc295.mak, examples/lang.mak, src/files.mak: patches to use windom from /usr/ instead of the windom repository. 2006-02-26 21:55 bereziat * include/windom/mt_dfrm.h, src/doxydoc.c: - Add a link from the documentation to the tutorial - New drfm_revision number and betatag set to '-cvs' 2006-02-26 21:25 bereziat * Makefile, docs/tutorial/tut1/tut_1.c, docs/tutorial/tut1/tut_1.html, examples/demo.c, examples/lang.c, include/dfrm.h, include/mt_dfrm.h, include/windom/dfrm.h, include/windom/mt_dfrm.h, src/debug.c, src/doxydoc.c, src/globals.h: - dfrm headers have moved in include/windom (as a WinDom extension). - <span class="preprocessor">#include <[mt_]dfrm.h> changed to #include</span> <span class="preprocessor"></span> <windom/[mt_]dfrm.h> in source files. - Some files were missing in the export target from the <a class="code" href="dfrmstr_8c.html#0ddf1224851353fc92bfbff6f499fa97">main</a> Makefile. - documentation and tutorial updated prior to these changes. 2006-02-26 16:29 bereziat * Makefile, include/mt_dfrm.h: BETATAG unset <span class="keywordflow">for</span> the official release. Some minor changes. 2006-02-16 21:14 bercegeay * include/: dfrm.h, mt_dfrm.h: cplusplus compatible 2006-02-16 21:13 bercegeay * examples/demo.c: explicitly include mt_dfrm.h so that the local header file is loaded. Otherwise, dfrm.h will load <windom/mt_dfrm.h> in the global compiler include path. 2006-02-16 20:59 bercegeay * src/files.mak: fixed HEADERS variable (2 headers files now) 2006-02-14 18:47 bercegeay * examples/demo.c: fixed: extended objects are now correctly free-ed 2006-02-14 00:40 bereziat * examples/common.mak: Adding missing makefile 2006-02-13 23:24 bereziat * Doxyfile, NEWS, src/doxydoc.c: Minor improvement of documentation. 2006-02-13 23:10 bereziat * Doxyfile, README, TODO, docs/tutorial/tut1/tut_1.html, examples/demo.c, examples/img.c, include/dfrm.h, include/mt_dfrm.h, src/Makefile, src/align.c, src/attach.c, src/box.c, src/core.c, src/debug.c, src/dfrmstr.c, src/doxydoc.c, src/gcc295.mak, src/icon.c, src/image.c, src/line.c, src/menu.c, src/rscstr.c, src/slider.c, src/<span class="keywordtype">string</span>.c, src/tedinfo.c, src/thumb.c, src/tune.c: Change formulars into forms (english enhancement). 2006-02-13 23:09 bereziat * Makefile, VERSION: Makefile contains target to export the current distribution (<span class="keyword">using</span> VERSION file). 2006-02-13 23:02 bereziat * src/: dead.c, dfrm.c: dead.c was the antic file before the cvs <span class="keyword">import</span>. dfrm.c was the first version of dfrm before scattering lib into several modules. 2006-02-13 21:51 bereziat * Doxyfile, README, TODO, docs/tutorial/tut1/tut_1.html, examples/demo.c, examples/img.c, include/dfrm.h, include/mt_dfrm.h, src/Makefile, src/align.c, src/attach.c, src/box.c, src/core.c, src/debug.c, src/dfrmstr.c, src/doxydoc.c, src/icon.c, src/image.c, src/line.c, src/menu.c, src/pc.mak, src/rscstr.c, src/slider.c, src/<span class="keywordtype">string</span>.c, src/tedinfo.c, src/thumb.c, src/tune.c: - Change Dynamical Formular in Dynamic Formulars - update copyright year 2006-01-17 00:47 bereziat * HISTORY, INSTALL, NEWS, README, include/mt_dfrm.h: File HISTORY removed. One keep only a NEWS file. Update other files prior to <span class="keyword">new</span> Dfrm number version (0.4.2) 2006-01-17 00:35 bereziat * include/mt_dfrm.h: MT calls are now specified in <span class="keyword">this</span> file. 2006-01-17 00:33 bereziat * include/dfrm.h: Keeps only non mt calls in <span class="keyword">this</span> file. Adding doxygen documentation. 2006-01-17 00:25 bereziat * examples/: demo.c, lang.c: modify callback menu prototype with respect to the <span class="keyword">new</span> windom specification. 2005-12-11 18:40 bereziat * examples/: lang.c, lang.en, lang.fr, lang.mak: Adding an example of multi-language support. 2005-12-11 18:39 bereziat * examples/demo.c: thumb example is build <span class="stringliteral">''</span>manually<span class="stringliteral">''</span>. The macro functions building thumbs needs to be finished, tested ... 2005-12-11 18:26 bereziat * examples/: demo.c, gcc295.mak: - Adaptation of demo.c to WinDom 2 (more changes than in dfrm !). 2005-12-11 15:50 bereziat * src/thumb.c: Adding macro-functions to build and handle easily thumb forms/buttons. 2005-12-11 15:49 bereziat * src/: align.c, attach.c, box.c, core.c, doxydoc.c, files.mak, globals.h, icon.c, image.c, line.c, menu.c, rscstr.c, slider.c, <span class="keywordtype">string</span>.c, tedinfo.c, tune.c: - minor modifications due to <span class="keyword">new</span> WinDom 2 specifications. - doxygen documentation completed ! 2005-12-10 18:21 bereziat * src/rscstr.c: <a class="code" href="group__dfrm__utils.html#g2e8207c18b42dd9f51d7124b900d87aa" title="Load strings from a text file generated by dfrmstr.">mt_dfrm_load_str</a>() can read correctly DOS-file ans MACOS-file. 2005-10-19 20:29 bercegeay * examples/demo.c: The bug that make XEDIT <span class="keywordtype">object</span> to crash under N.AES is fixed (<span class="keyword">this</span> was the calling of the AES function objc_offset() within a userdef callback function)... so no need anymore to disabled XEDIT <span class="keywordtype">object</span> <span class="keywordflow">if</span> N.AES is detected. 2005-03-18 23:05 bercegeay * src/attach.c: - fixed _free_dfrm(): extended object are now free-ed by calling mt_RsrcXtype(0). - sync with current windom (added buff[8] parameter when needed) 2004-11-15 21:27 bereziat * src/: core.c, debug.c: debug.c: <a class="code" href="group__dfrm__utils.html#g9e157a852bb0223af8adf82836a39416" title="Write a log message in the DFRM log file.">dfrm_trace</a>() uses the environ variable DFRM_LOG to locate the log file. If this variable is not defined, <a class="code" href="group__dfrm__utils.html#g9e157a852bb0223af8adf82836a39416" title="Write a log message in the DFRM log file.">dfrm_trace</a>() has not effect. core.c: removing now useless <a class="code" href="group__dfrm__utils.html#g9e157a852bb0223af8adf82836a39416" title="Write a log message in the DFRM log file.">dfrm_trace</a>() calls. 2004-11-06 00:04 bereziat * include/dfrm.h, src/Makefile, src/gcc295.mak, src/string.c, examples/demo.c: Adding <a class="code" href="mt__dfrm_8h.html#337af3886e249218af1c57992c6c2b24">TYPE_PBUT</a> (popup button). demo.c shows now a popup button. Adapt demo.c to last mt-WinDom snapshoot 2004-10-01 20:42 bercegeay * include/dfrm.h: add <a class="code" href="mt__dfrm_8h.html#9b54d834b1e66cce9258fa6f346709f7">__DFRM_BETATAG__</a> 2004-09-18 18:47 bercegeay * src/attach.c: change type of callback functions (APPvar is now the last param) 2004-09-07 21:46 bercegeay * src/Makefile: add clean target 2004-09-07 21:46 bercegeay * src/files.mak: add HEADERS variable (needed by make install) 2004-09-07 21:45 bercegeay * src/gcc295.mak: add install target 2004-07-10 14:29 bereziat * docs/tutorial/index.html: adding tutorial index file 2004-07-09 15:16 bereziat * Doxyfile: Adding doxygen config 2004-07-09 15:15 bereziat * NEWS, docs/tutorial/tut1/Makefile, docs/tutorial/tut1/tut_1-1.gif, docs/tutorial/tut1/tut_1-2.gif, docs/tutorial/tut1/tut_1-3.gif, docs/tutorial/tut1/tut_1-4.gif, docs/tutorial/tut1/tut_1.c, docs/tutorial/tut1/tut_1.html, examples/gcc295.mak, src/doxydoc.c, src/icon.c: Adding NEWS file Importing tutorial 2004-07-05 00:51 bereziat * src/globals.h: Import <a class="code" href="struct__dfrm.html">DFRM</a> 0.4.1 2004-07-04 23:07 bereziat * COPYRIGHT, HISTORY, INSTALL, README, TODO, examples/Makefile, examples/demo.c, examples/dom.gif, examples/gcc281.mak, examples/gcc295.mak, examples/icons.h, examples/icons.hrd, examples/icons.rsc, examples/img.c, examples/img.h, examples/motif2.iff, examples/pc.mak, include/dfrm.h, src/Makefile, src/align.c, src/attach.c, src/box.c, src/core.c, src/dead.c, src/debug.c, src/dfrm.c, src/dfrmstr.c, src/dfrmstr.mak, src/doxydoc.c, src/files.mak, src/gcc281.mak, src/gcc295.mak, src/icon.c, src/image.c, src/line.c, src/menu.c, src/pc-old.mak, src/pc.mak, src/rscstr.c, src/slider.c, src/sox.mak, src/string.c, src/tedinfo.c, src/tune.c: Import <a class="code" href="struct__dfrm.html">DFRM</a> module version 0.4.1 </pre></div> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Dec 23 18:55:34 2010 for Dynamic Forms by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html> --- NEW FILE: dfrm_8h.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Dynamic Forms: dfrm.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="contents"> <h1>dfrm.h File Reference</h1><code>#include <windom.h></code><br> <code>#include <<a class="el" href="mt__dfrm_8h-source.html">windom/mt_dfrm.h</a>></code><br> <p> <a href="dfrm_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__base.html#gf603e2b605dfacdc60c3b93fd7cef9e8">dfrm_create</a>(m, t) mt_dfrm_create (gl_appvar,m,t)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new form, see <a class="el" href="group__dfrm__base.html#g1592fbd5a1e085d5fd43012ee1a4b6aa" title="Creating a new dynamic form.">mt_dfrm_create()</a>. <a href="group__dfrm__base.html#gf603e2b605dfacdc60c3b93fd7cef9e8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__base.html#g1f18231afaf75eeeffb9071ce6056ea7">dfrm_free</a>(d) mt_dfrm_free(gl_appvar,d)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Release from the memory a form, see <a class="el" href="group__dfrm__base.html#g1592fbd5a1e085d5fd43012ee1a4b6aa" title="Creating a new dynamic form.">mt_dfrm_create()</a>. <a href="group__dfrm__base.html#g1f18231afaf75eeeffb9071ce6056ea7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__base.html#g6c23361a67f90ed30529f3a0ab4f7791">dfrm_add_menu</a>(d, l) mt_dfrm_add_menu(gl_appvar,d,l)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add and place an object in a form, see <a class="el" href="group__dfrm__base.html#ge732556ff3fe69db8f4c88219fd2acb8" title="Special function to adding a title in a menu bar.">mt_dfrm_add_menu()</a>. <a href="group__dfrm__base.html#g6c23361a67f90ed30529f3a0ab4f7791"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__base.html#gb21fd6d08d0b47089ec1919b3cb2d21f">dfrm_win_attach</a>(t, w, d) mt_dfrm_win_attach(gl_appvar,t,w,d)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Makes effective bindings performed with mt_dfrm_attach(), see <a class="el" href="group__dfrm__base.html#geec9bf3293872c32176376279fbc9339" title="Make effective bindings performed with mt_dfrm_attach().">mt_dfrm_win_attach()</a>. <a href="group__dfrm__base.html#gb21fd6d08d0b47089ec1919b3cb2d21f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__base.html#g230e094c6a19c3dd7036a07be75bd572">dfrm_find_label</a>(d, l) mt_dfrm_find_label(gl_appvar,d,l)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Searching object by its label, see <a class="el" href="group__dfrm__base.html#gce569319ea7656cc229b16ffc3cc39c6" title="Searching object by its label.">mt_dfrm_find_label()</a>. <a href="group__dfrm__base.html#g230e094c6a19c3dd7036a07be75bd572"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__base.html#g8a5ec6fe15dd79974e45c45d77ab0ca5">dfrm_delete</a>(d, i) mt_dfrm_delete(gl_appvar,d,i)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Delete an object from a form, see <a class="el" href="group__dfrm__base.html#g7bcd9850d10c798f1211db08e456f629" title="Delete an object from a form.">mt_dfrm_delete()</a>. <a href="group__dfrm__base.html#g8a5ec6fe15dd79974e45c45d77ab0ca5"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#gfbc81513d70814f6c3830230a6ca8e1a">dfrm_new_button</a>(d, t, l) mt_dfrm_new_button(gl_appvar,d,t,l)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create buttons objects, see <a class="el" href="group__dfrm__new.html#g10a33476e0df9c9b4b53cdabd33e1b2e" title="Create buttons objects.">mt_dfrm_new_button()</a>. <a href="group__dfrm__new.html#gfbc81513d70814f6c3830230a6ca8e1a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#g47d1b431ee8c5253ea77d782742e0d01">dfrm_new_label</a>(d, t, l) mt_dfrm_new_label(gl_appvar,d,t,l)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a string object, see <a class="el" href="group__dfrm__new.html#gf08a5ac0ab21abceaa4208115702957a" title="Create a string object (G_STRING, G_TITLE or MENUTITLE).">mt_dfrm_new_label()</a>. <a href="group__dfrm__new.html#g47d1b431ee8c5253ea77d782742e0d01"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#g7b0bd5dad91d8d12a3656e65f7f5c575">dfrm_new_tbox</a>(d, w, h, l) mt_dfrm_new_tbox(gl_appvar,d,w,h,l)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a box with a title, see <a class="el" href="group__dfrm__new.html#g23a9ea18b03c95e43221e0f5cb068817" title="Create a box with a title (TITLEBOX).">mt_dfrm_new_tbox()</a>. <a href="group__dfrm__new.html#g7b0bd5dad91d8d12a3656e65f7f5c575"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#gdb4a523e2a83bed73096d7d8a32e4a56">dfrm_new_text</a>(d, tc, ta, ts, tm, t) mt_dfrm_new_text(gl_appvar,d,tc,ta,ts,tm,t)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a text object, see <a class="el" href="group__dfrm__new.html#g720c99432b1f672a2f8008f3b0355ba6" title="Create a text object (G_TEXT).">mt_dfrm_new_text()</a>. <a href="group__dfrm__new.html#gdb4a523e2a83bed73096d7d8a32e4a56"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#g856bac05b907393728210c6e634fd310">dfrm_new_ftext</a>(d, tc, ta, ts, tm, fc, fs, bc, bp, t) mt_dfrm_new_ftext(gl_appvar,d,tc,ta,ts,tm,fc,fs,bc,bp,t)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a boxed text object, see <a class="el" href="group__dfrm__new.html#g373816500a35f6a6cc9c127f186f41e6" title="Create a boxed object (G_FTEXT).">mt_dfrm_new_ftext()</a>. <a href="group__dfrm__new.html#g856bac05b907393728210c6e634fd310"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#g52a44e82c6f08476fdd57cbcbfcd3091">dfrm_new_mtext</a>(d, w, h, tc, ta, tm, fc, fs, bc, bp, t) mt_dfrm_new_mtext(gl_appvar,d,w,h,tc,ta,tm,fc,fs,bc,bp,t)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a multilined text object, see <a class="el" href="group__dfrm__new.html#g5df04e1504a3bd87129095e5586c7ed2" title="Create a multilined text (XBOXLONGEDIT).">mt_dfrm_new_mtext()</a>. <a href="group__dfrm__new.html#g52a44e82c6f08476fdd57cbcbfcd3091"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#g3fda606d08fd7233457498ee1be6810c">dfrm_new_edit</a>(d, tc, tm, t, v) mt_dfrm_new_edit(gl_appvar,d,tc,tm,t,v)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an editable field , see <a class="el" href="group__dfrm__new.html#g503b09f04323c03d85fd1a27da1a836b" title="Create an editable field (G_FTEXT).">mt_dfrm_new_edit()</a>. <a href="group__dfrm__new.html#g3fda606d08fd7233457498ee1be6810c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#gfd020a35fd2c70a72a739857f7bee69d">dfrm_new_fedit</a>(d, tc, fs, fc, bp, bc, tm, t, v) mt_dfrm_new_fedit(gl_appvar,d,tc,fs,fc,bp,bc,tm,t,v)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a framed editable field , see <a class="el" href="group__dfrm__new.html#gb5aa1676f749c28f0d5317881a806543" title="Create a framed editable field (G_FBOXTEXT).">mt_dfrm_new_fedit()</a>. <a href="group__dfrm__new.html#gfd020a35fd2c70a72a739857f7bee69d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__dfrm__new.html#gdf6fe3c41af9be7d8b4239aa9fcbfd85">dfrm_new_xedit</a>(d, t, tc, l, v) mt_dfrm_new_xedit(gl_appvar,d,t,tc,l,v)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a editable object without limitation of text leng... [truncated message content] |
From: Dominique B. <ber...@us...> - 2010-12-23 21:47:08
|
Update of /cvsroot/windom/htdocs/dfrm/tutorial In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv27270/tutorial Log Message: Directory /cvsroot/windom/htdocs/dfrm/tutorial added to the repository |
From: Dominique B. <ber...@us...> - 2010-12-23 21:47:08
|
Update of /cvsroot/windom/htdocs/dfrm/html In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv27270/html Log Message: Directory /cvsroot/windom/htdocs/dfrm/html added to the repository |
From: Dominique B. <ber...@us...> - 2010-12-23 21:43:41
|
Update of /cvsroot/windom/extensions/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv26326 Removed Files: Makefile Log Message: clean dfrm dir. --- Makefile DELETED --- |
From: Dominique B. <ber...@us...> - 2010-12-23 21:25:59
|
Update of /cvsroot/windom/extensions/dfrm/htdocs/img In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv21117/img Removed Files: dfrm.gif Log Message: cleaning dfrm dir.. Cvsle: ---------------------------------------------------------------------- --- dfrm.gif DELETED --- |
From: Dominique B. <ber...@us...> - 2010-12-23 21:16:28
|
Update of /cvsroot/windom/htdocs In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv17914 Modified Files: index.html Log Message: adding dfrm web site. fix ref to dfrm in index.html Index: index.html =================================================================== RCS file: /cvsroot/windom/htdocs/index.html,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- index.html 4 Dec 2009 13:45:21 -0000 1.16 +++ index.html 23 Dec 2010 21:16:20 -0000 1.17 @@ -107,7 +107,7 @@ <a href="doc/html/index.html">Online documentation of windom</a><br> <a href="http://arnaud.bercegeay.free.fr/gemlib/html">Online documentation of the Gemlib API</a></p> <h3>WinDom extensions</h3> -<p><a href="http://windom.free.fr/dfrm">Dynamic Forms</a><br> +<p><a href="http://windom.sourceforge.net/dfrm">Dynamic Forms</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay/gslib_e.htm">GEMScript protocol</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay/woutlib_e.htm">Wout (printf in a window)</a><br> <h3>WinDom clients</h3> |
From: Dominique B. <ber...@us...> - 2010-12-23 21:14:38
|
Update of /cvsroot/windom/htdocs/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv16890 Added Files: index.html Log Message: adding dfrm web site --- NEW FILE: index.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>DFRM Home Page</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> <META NAME="Author" CONTENT="Dominique Béréziat"> <link href="/etc/windom.css" rel="stylesheet" type="text/css"> <link href="/img/atari-icon-2.gif" rel="icon" type="image/gif"> </head> <body bgcolor="white"> <div class="content"> <center><img src="img/dfrm.gif" alt="DFRM"></center> <p class="petittitre"><i>DFRM: Dynamics FoRMulars (for WinDom)</i></p> <br> <p><b>Current version</b>: 0.4.5 (december 2010)<br> <b>Authors</b> : Dominique BÉRÉZIAT<br> <b>Licence</b> : Open Source project covered by the <a href="http://www.gnu.org/copyleft/lgpl.html">LGPL</a> licence</p> </p> <h2>What's new</h2> <p> </p> <H2>DFRM, what is it?</H2> <P>DFRM is an extension of <a href="http://windom.sourceforge.net">WinDom</a> allowing it to build dynamically GEM object tree for displaying dialog forms, desktop or window menu. An object tree structure is designed in the C source and not in an external ressource file. This approach has many advantages :</P> <OL> <LI>You does not need a resource editor,</LI> <LI>Many tasks in a resource editor are painfull when you have to adjust at pixel precision your objects. With DFRM you have a better control of object size and object position. You can give directives of alignement and spacing between objects.</LI> <LI>With DFRM it is very easy to build big structure of object (e.g. sliders) <em>ready to use</em>.</LI> </OL> <P>Programming with DFRM is very similar to widget libraries used in Unix world (like TK ou GTK). We provide an complete documentation with examples and tutorial.</P> <H2>Documents</H2> <OL> <li> <a href="html/index.html">Online documentation</a> <li> <a href="tutorial/index.html">Tutorials</a> </OL> <HR> <h2>Download</h2> DFRM archives are available in this <a href="http://windom.free.fr/dfrm/download">directory</a>. </div> <div class="links"> <p><i>DFRM is a WinDom extension, see:</i><br> <a href="http://sourceforge.net/projects/windom"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=68507&type=16" width="150" height="40" alt="Get WinDom, a high level GEM library. at SourceForge.net. Fast, secure and Free Open Source software downloads" border=0 /></a><br> <h2>Links</h2> <h3>WinDom</h3> <p> <a href="http://sourceforge.net/projects/windom">WinDom project page</a><br> <a href="http://sourceforge.net/mail/?group_id=68507">WinDom Mailing lists</a><br> <a href="http://sourceforge.net/tracker/?group_id=68507&atid=521414">WinDom Feature Request</a><br> <a href="http://sourceforge.net/tracker/?group_id=68507&atid=521411">WinDom Bug Tracker</a><br> <a href="http://sourceforge.net/project/showfiles.php?group_id=68507">WinDom File Release System</a><br> <a href="http://sourceforge.net/cvs/?group_id=68507">WinDom CVS Repository</a><br> </p> <h3>Documentation</h3> <a href="doc/html/index.html">Online documentation of windom</a><br> <a href="http://arnaud.bercegeay.free.fr/gemlib/html">Online documentation of the Gemlib API</a></p> <h3>WinDom extensions</h3> <p><a href="http://windom.sourceforge.net/dfrm">Dynamic Forms</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay/gslib_e.htm">GEMScript protocol</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay/woutlib_e.htm">Wout (printf in a window)</a><br> <h3>WinDom clients</h3> <p><a href="http://windom.free.fr/winconf/">WinConf</a>, to configure WinDom<br> <a href="http://windom.free.fr/msu/">MSU</a>, the Magic configurator<br> <a href="http://gemtidy.free.fr/">GEM Tidy</a>, clean yours html files<br> <a href="http://fgalea.free.fr/cdlab/">CD lab</a>, to burn CD<br> <a href="http://the.zorro.free.fr/zview.html">zView</a>, very nice image viewer and browser<br> <a href="http://the.zorro.free.fr/zweather.html">zWeather</a>, meteorological forecast on your computer <br> <a href="http://gim.atari-source.com">GIM</a> a Gem Instant Messager client<br> <a href="http://www.ster.kuleuven.ac.be/~wim/">Universum</a>, if you like stars ...<br> <a href="http://the.zorro.free.fr/ztask.html">zTask</a>, a nice taskbar for mint</p> <h3>Others links</h3> <p> <a href="http://arnaud.bercegeay.free.fr/gemlib">GemLib</a><br> <a href="http://ldg.sf.net">LDG system</a><br> <a href="http://myaes.free.fr">MyAES</a><br> <a href="http://xaaes.atariforge.net">XaAES</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay">Arnaud Bercegeay resources</a><br> <a href="http://jaysoft.atari.org">Standa Opichal resources</a><br> <a href="http://windom.free.fr/welcome.html">Dominique Bereziat resources</a></p> </div> </body> </html> |
From: Dominique B. <ber...@us...> - 2010-12-23 21:08:24
|
Update of /cvsroot/windom/htdocs/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv14991/dfrm Log Message: Directory /cvsroot/windom/htdocs/dfrm added to the repository |
From: Dominique B. <ber...@us...> - 2010-12-23 21:06:52
|
Update of /cvsroot/windom/extensions/dfrm/htdocs In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv14486/htdocs Removed Files: index.html update.sh Log Message: adding autoconf missing stuff (configure!!!) removing the directory htdocs: it is not the right place. It has been moved to the CVS module htdocs/dfrm in Windom repository. --- index.html DELETED --- --- update.sh DELETED --- |
From: Dominique B. <ber...@us...> - 2010-12-23 21:06:52
|
Update of /cvsroot/windom/extensions/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv14486 Added Files: configure Log Message: adding autoconf missing stuff (configure!!!) removing the directory htdocs: it is not the right place. It has been moved to the CVS module htdocs/dfrm in Windom repository. --- NEW FILE: configure --- #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.63. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. [...7066 lines suppressed...] # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi |
From: Dominique B. <ber...@us...> - 2010-12-23 20:44:11
|
Update of /cvsroot/windom/extensions/dfrm/htdocs In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv6530/htdocs Added Files: index.html update.sh Log Message: adding the directory htdocs containing dfrm website (hosted on sourceforge) --- NEW FILE: index.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>DFRM Home Page</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> <META NAME="Author" CONTENT="Dominique Béréziat"> <link href="/etc/windom.css" rel="stylesheet" type="text/css"> <link href="/img/atari-icon-2.gif" rel="icon" type="image/gif"> </head> <body bgcolor="white"> <div class="content"> <center><img src="img/dfrm.gif" alt="DFRM"></center> <p class="petittitre"><i>DFRM: Dynamics FoRMulars (for WinDom)</i></p> <br> <p><b>Current version</b>: 0.4.5 (december 2010)<br> <b>Authors</b> : Dominique BÉRÉZIAT<br> <b>Licence</b> : Open Source project covered by the <a href="http://www.gnu.org/copyleft/lgpl.html">LGPL</a> licence</p> </p> <h2>What's new</h2> <p> </p> <H2>DFRM, what is it?</H2> <P>DFRM is an extension of <a href="http://windom.sourceforge.net">WinDom</a> allowing it to build dynamically GEM object tree for displaying dialog forms, desktop or window menu. An object tree structure is designed in the C source and not in an external ressource file. This approach has many advantages :</P> <OL> <LI>You does not need a resource editor,</LI> <LI>Many tasks in a resource editor are painfull when you have to adjust at pixel precision your objects. With DFRM you have a better control of object size and object position. You can give directives of alignement and spacing between objects.</LI> <LI>With DFRM it is very easy to build big structure of object (e.g. sliders) <em>ready to use</em>.</LI> </OL> <P>Programming with DFRM is very similar to widget libraries used in Unix world (like TK ou GTK). We provide an complete documentation with examples and tutorial.</P> <H2>Documents</H2> <OL> <li> <a href="html/index.html">Online documentation</a> <li> <a href="tutorial/index.html">Tutorials</a> </OL> <HR> <h2>Download</h2> </div> <div class="links"> <p><i>DFRM is a WinDom extension, see:</i><br> <a href="http://sourceforge.net/projects/windom"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=68507&type=16" width="150" height="40" alt="Get WinDom, a high level GEM library. at SourceForge.net. Fast, secure and Free Open Source software downloads" border=0 /></a><br> <h2>Links</h2> <h3>WinDom</h3> <p> <a href="http://sourceforge.net/projects/windom">WinDom project page</a><br> <a href="http://sourceforge.net/mail/?group_id=68507">WinDom Mailing lists</a><br> <a href="http://sourceforge.net/tracker/?group_id=68507&atid=521414">WinDom Feature Request</a><br> <a href="http://sourceforge.net/tracker/?group_id=68507&atid=521411">WinDom Bug Tracker</a><br> <a href="http://sourceforge.net/project/showfiles.php?group_id=68507">WinDom File Release System</a><br> <a href="http://sourceforge.net/cvs/?group_id=68507">WinDom CVS Repository</a><br> </p> <h3>Documentation</h3> <a href="doc/html/index.html">Online documentation of windom</a><br> <a href="http://arnaud.bercegeay.free.fr/gemlib/html">Online documentation of the Gemlib API</a></p> <h3>WinDom extensions</h3> <p><a href="http://windom.sourceforge.net/dfrm">Dynamic Forms</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay/gslib_e.htm">GEMScript protocol</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay/woutlib_e.htm">Wout (printf in a window)</a><br> <h3>WinDom clients</h3> <p><a href="http://windom.free.fr/winconf/">WinConf</a>, to configure WinDom<br> <a href="http://windom.free.fr/msu/">MSU</a>, the Magic configurator<br> <a href="http://gemtidy.free.fr/">GEM Tidy</a>, clean yours html files<br> <a href="http://fgalea.free.fr/cdlab/">CD lab</a>, to burn CD<br> <a href="http://the.zorro.free.fr/zview.html">zView</a>, very nice image viewer and browser<br> <a href="http://the.zorro.free.fr/zweather.html">zWeather</a>, meteorological forecast on your computer <br> <a href="http://gim.atari-source.com">GIM</a> a Gem Instant Messager client<br> <a href="http://www.ster.kuleuven.ac.be/~wim/">Universum</a>, if you like stars ...<br> <a href="http://the.zorro.free.fr/ztask.html">zTask</a>, a nice taskbar for mint</p> <h3>Others links</h3> <p> <a href="http://arnaud.bercegeay.free.fr/gemlib">GemLib</a><br> <a href="http://ldg.sf.net">LDG system</a><br> <a href="http://myaes.free.fr">MyAES</a><br> <a href="http://xaaes.atariforge.net">XaAES</a><br> <a href="http://perso.wanadoo.fr/arnaud.bercegeay">Arnaud Bercegeay resources</a><br> <a href="http://jaysoft.atari.org">Standa Opichal resources</a><br> <a href="http://windom.free.fr/welcome.html">Dominique Bereziat resources</a></p> </div> </body> </html> --- NEW FILE: update.sh --- #! /bin/sh # edit this variable if your user name on # sourceforge is different from your local computer. test -f html || ln -sf ../docs/html . test -f tutorial || ln -sf ../docs/tutorial . echo echo UPLOAD of dfrm web site to SF.NET server echo USERSF=`sed -e "s/:ext://g" -e "s/@.*//g" CVS/Root` echo USERSF is $USERSF echo echo "********************************************************************" echo "* Do not forget to commit your changes of the web site in CVS too. " echo "********************************************************************" echo rsync --cvs-exclude --progress -arL -e ssh . $USERSF,wi...@we...:htdocs/dfrm echo echo "********************************************************************" echo "* Do not forget to commit your changes of the web site in CVS too. " echo "********************************************************************" echo |
From: Dominique B. <ber...@us...> - 2010-12-23 20:44:10
|
Update of /cvsroot/windom/extensions/dfrm/htdocs/img In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv6530/htdocs/img Added Files: dfrm.gif Log Message: adding the directory htdocs containing dfrm website (hosted on sourceforge) --- NEW FILE: dfrm.gif --- (This appears to be a binary file; contents omitted.) |
From: Dominique B. <ber...@us...> - 2010-12-23 20:39:20
|
Update of /cvsroot/windom/extensions/dfrm/htdocs/img In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv4942/img Log Message: Directory /cvsroot/windom/extensions/dfrm/htdocs/img added to the repository |
From: Dominique B. <ber...@us...> - 2010-12-23 20:03:46
|
Update of /cvsroot/windom/extensions/dfrm/htdocs In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv25274/htdocs Log Message: Directory /cvsroot/windom/extensions/dfrm/htdocs added to the repository |
From: Dominique B. <ber...@us...> - 2010-12-23 18:28:42
|
Update of /cvsroot/windom/extensions/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv25015 Modified Files: TODO Log Message: the autoconf port should be improved. Index: TODO =================================================================== RCS file: /cvsroot/windom/extensions/dfrm/TODO,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- TODO 13 Feb 2006 22:10:49 -0000 1.3 +++ TODO 23 Dec 2010 18:28:34 -0000 1.4 @@ -1,3 +1,4 @@ +- autoconf: adding test of windom, ldg and gem libs avability - adding a pointer to routine to release memory of an object in the global DFRM structure : it is a destroy event of the object. : actually, it is |
From: Dominique B. <ber...@us...> - 2010-12-23 18:00:57
|
Update of /cvsroot/windom/extensions/dfrm In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv18399 Added Files: aclocal.m4 Log Message: adding autoconf stuff ... --- NEW FILE: aclocal.m4 --- # generated automatically by aclocal 1.10.2 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, [m4_warning([this file was generated for autoconf 2.63. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.10.2], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10.2])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 13 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar <conftest.tar]) grep GrepMe conftest.dir/file >/dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR |