home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gina15.zip / CHANGES-1.5 < prev    next >
Text File  |  1992-02-27  |  2KB  |  51 lines

  1. @(#)CHANGES-1.5    1.1 2/26/92
  2.  
  3. The following changes have been made since Version 1.4
  4. ======================================================
  5.  
  6. - The directory ./emacs-library has been created. It contains GNU emacs
  7.   C++ mode and hooks, and a number of useful macros. See ./emacs-library/README
  8.   for details.
  9.  
  10. - The gredit demo has been split into small files and has been moved to an 
  11.   extra directory, ./demos/gredit.
  12.  
  13. - The documentation has been updated and extended. See doc/ug.ps
  14.  
  15. - Functions for saving the command history with the document have been
  16.   implemented. They may be used as follows:
  17.  
  18.   1. Specialize GnDocument::SaveHistory() in your document class so that it 
  19.      returns True. This causes the command history to be saved with the document
  20.      when ``Save'' or  ``Save as'' are activated. The history is saved AFTER
  21.      the documents contents, i.e. after write_to_stream() has been called.
  22.      write_to_stream MUST write a newline character as the last character.
  23.  
  24.      The commands that are saved are determined as follows: All commands in the
  25.      undo list that are undoable (i.e. undoable() yields True) and storable
  26.      (i.e. IsStorable() yields True) are saved. A command that is not 
  27.      undoable or not storable plus all commands preceding it in the command 
  28.      history are NOT saved.
  29.  
  30.   2. The following things must be done to define a storable command class:
  31.      
  32.      - Specialize GnCommand::undoable() and GnCommand::IsStorable() to return
  33.        True.
  34.  
  35.      - Specialize the functions WriteToStream() and ReadFromStream() in your
  36.        subclass of GnCommand to write and restore the contents of the command 
  37.        object.
  38.  
  39.      - Define meta-class information for your command class with
  40.        the META_DEF_x and META_IMPL_x macros.
  41.  
  42.      - Specialize the function GnDocument::MakeNewCommand() in your document
  43.        class. This function is called for each saved command that is restored
  44.        from the document file. It gets the class name of the command object
  45.        as an argument. Its purpose is to create empty command objects of the
  46.        appropriate type.
  47.  
  48.   3. A demo application can be found in demos/sleuth.
  49.  
  50.  
  51.