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 >
Wrap
Text File
|
1992-02-27
|
2KB
|
51 lines
@(#)CHANGES-1.5 1.1 2/26/92
The following changes have been made since Version 1.4
======================================================
- The directory ./emacs-library has been created. It contains GNU emacs
C++ mode and hooks, and a number of useful macros. See ./emacs-library/README
for details.
- The gredit demo has been split into small files and has been moved to an
extra directory, ./demos/gredit.
- The documentation has been updated and extended. See doc/ug.ps
- Functions for saving the command history with the document have been
implemented. They may be used as follows:
1. Specialize GnDocument::SaveHistory() in your document class so that it
returns True. This causes the command history to be saved with the document
when ``Save'' or ``Save as'' are activated. The history is saved AFTER
the documents contents, i.e. after write_to_stream() has been called.
write_to_stream MUST write a newline character as the last character.
The commands that are saved are determined as follows: All commands in the
undo list that are undoable (i.e. undoable() yields True) and storable
(i.e. IsStorable() yields True) are saved. A command that is not
undoable or not storable plus all commands preceding it in the command
history are NOT saved.
2. The following things must be done to define a storable command class:
- Specialize GnCommand::undoable() and GnCommand::IsStorable() to return
True.
- Specialize the functions WriteToStream() and ReadFromStream() in your
subclass of GnCommand to write and restore the contents of the command
object.
- Define meta-class information for your command class with
the META_DEF_x and META_IMPL_x macros.
- Specialize the function GnDocument::MakeNewCommand() in your document
class. This function is called for each saved command that is restored
from the document file. It gets the class name of the command object
as an argument. Its purpose is to create empty command objects of the
appropriate type.
3. A demo application can be found in demos/sleuth.