1 /* $Id: undo.h,v 1.8 2004/11/09 21:58:45 yooden Exp $ */
2 /*******************************************************************************
4 * undo.h -- Nirvana Editor Undo header file *
6 * Copyright 2004 The NEdit Developers *
8 * This is free software; you can redistribute it and/or modify it under the *
9 * terms of the GNU General Public License as published by the Free Software *
10 * Foundation; either version 2 of the License, or (at your option) any later *
11 * version. In addition, you may distribute versions of this program linked to *
12 * Motif or Open Motif. See README for details. *
14 * This software is distributed in the hope that it will be useful, but WITHOUT *
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
19 * You should have received a copy of the GNU General Public License along with *
20 * software; if not, write to the Free Software Foundation, Inc., 59 Temple *
21 * Place, Suite 330, Boston, MA 02111-1307 USA *
23 * Nirvana Text Editor *
26 *******************************************************************************/
28 #ifndef NEDIT_UNDO_H_INCLUDED
29 #define NEDIT_UNDO_H_INCLUDED
33 enum undoTypes
{UNDO_NOOP
, ONE_CHAR_INSERT
, ONE_CHAR_REPLACE
, ONE_CHAR_DELETE
,
34 BLOCK_INSERT
, BLOCK_REPLACE
, BLOCK_DELETE
};
36 void Undo(WindowInfo
*window
);
37 void Redo(WindowInfo
*window
);
38 void SaveUndoInformation(WindowInfo
*window
, int pos
, int nInserted
,
39 int nDeleted
, const char *deletedText
);
40 void ClearUndoList(WindowInfo
*window
);
41 void ClearRedoList(WindowInfo
*window
);
42 void DisableUnmodified(WindowInfo
*window
);
44 #endif /* NEDIT_UNDO_H_INCLUDED */