
This is the README file of patch2 for Wafe 0.97.  

The new version features in the following items:

   - Two new commands are now available to change the
     debugging options during a Wafe session. The commands
     have the same names as the corresponding MACROS from
     the dbug library

        DBUG_PUSH <Options>
        DBUG_POP

     DBUG_PUSH accepts the same arguments as the --D command
     line option.  For example the Wafe command 

        DBUG_PUSH d:t

     turns on debug and trace messages; for details
     concerning the argument string (profiling, etc),
     consult the manual page in wafe/lib/dbug/dbug.man.

     
   - The patch contains a small bug file in the dbug package
     from Fred Fish, that wafe is using, which caused
     segmentation faults due to a uninitialzed profiling
     stream.


   - Extended support for callbacks of the Plotter widget class: 
     The new Wafe version supports now several percent codes for
     the clickCallback, motionCallback, dragCallback and slideCallback
     of the Plotter widget class. 

        clickCallback,
        motionCallback:
                      %x  pixel position of the x coordinate
                      %y  pixel position of the y coordinate
                      %a  position in terms of 1st x axis
                      %b  position in terms of 1st y axis
                      %c  position in terms of 2nd x axis
                      %d  position in terms of 2nd y axis

        dragCallback,
        slideCallback:
                      %x  lower left x position in pixels of rect. area
                      %y  lower left y position in pixels of rect. area
                      %a  lower left position in terms of 1st x axis
                      %b  lower left position in terms of 1st y axis
                      %c  lower left position in terms of 2nd x axis
                      %d  lower left position in terms of 2nd y axis
                      %X  upper right x position in pixels of rect. area
                      %Y  upper right y position in pixels of rect. area
                      %A  upper right position in terms of 1st x axis
                      %B  upper right position in terms of 1st y axis
                      %C  upper right position in terms of 2nd x axis
                      %D  upper right position in terms of 2nd y axis


   - Widgets (or objects) which are not children of rectangular
     objects are now explicitely created unmanaged. Creating these
     as managed could result in damaged contents of the widgets'
     instance record. User who had probles with plotter widgets
     might check whether these problems are solved after this fix.


   - The update contains additionally a bug fix for the
     AtLabelAxis widget class (contained in the plotter
     widgets).  Changing the labels of a LabelAxis widget
     (using AtLabelAxisAttachData) did not change the labels
     on the displayed graph under certain conditions.


   - New in the distribution is a tiny sample program that
     illustrates how to use the X11R5 Athena's Tree widget
     class

       wafe/src/tree.tcl


   - The new distribution contains a small fix for wafemail
     to decativate the "Update" button when in send mode.


   - There are a few cosmetical changes in wafe/src/tcl and in
     the Imakefile of the distribution.

-gustaf 

PS: in order to apply this patch, be sure that your wafe
installation is on the Wafe 0.97p1 level, cd to the wafe
home directory, expand this tar file over the 0.97p1
distribution, remove wafe/lib/dbug/libdbug.a, perform the
usual configuration in wafe/src/Imakefile (as indicated in
INSTALL) or use the new MAKEFILE (read the top section of
wafe/src/MAKEFILE).

