home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Eudora 1.3.1 / source / Include / undo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-16  |  914 b   |  23 lines  |  [TEXT/MPS ]

  1. /* Copyright (c) 1990-1992 by the University of Illinois Board of Trustees */
  2. /************************************************************************
  3.  * definitions for undo
  4.  ************************************************************************/
  5. typedef struct
  6. {
  7.     UHandle text;                 /* any text associated with the item */
  8.     int startFrom;                /* where to start undoing from */
  9.     int goTil;                        /* where to stop undoing */
  10.     Boolean wasWhat;            /* what we just did */
  11.     MyWindowPtr win;            /* window this applies to */
  12.     TEHandle teh;                 /* teRec this applies to */
  13.     Boolean didUndo;            /* did we just finish undoing? */
  14.     Boolean didClick;         /* we just clicked somewhere */
  15.     short oldSelStart;        /* selStart at the point of undoability */
  16.     short oldSelEnd;            /* ditto, but end */
  17. } UndoType;
  18.  
  19. void DoUndo(void);
  20. void NukeUndo(MyWindowPtr win);
  21. void TEPrepareUndo(MyWindowPtr win, TEEnum what);
  22. void SetUndoMenu(void);
  23.