1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 #ifndef NEDIT_UNDO_H_INCLUDED
28 #define NEDIT_UNDO_H_INCLUDED
29
30 #include "nedit.h"
31
32 enum undoTypes {
UNDO_NOOP,
ONE_CHAR_INSERT,
ONE_CHAR_REPLACE,
ONE_CHAR_DELETE,
33 BLOCK_INSERT,
BLOCK_REPLACE,
BLOCK_DELETE};
34
35 void Undo(WindowInfo *window);
36 void Redo(WindowInfo *window);
37 void SaveUndoInformation(WindowInfo *window,
int pos,
int nInserted,
38 int nDeleted,
const char *deletedText);
39 void ClearUndoList(WindowInfo *window);
40 void ClearRedoList(WindowInfo *window);
41
42 #endif
43