enable undo for simple MrEd editor app

svn: r1783
This commit is contained in:
Matthew Flatt 2006-01-08 12:30:04 +00:00
parent 482b995053
commit f887288be0
2 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,8 @@
(if (regexp-match "[.](gif|bmp|jpe?g|xbm|xpm|png)$" file)
(send e insert (make-object image-snip% file))
(send e load-file file)))
(send e set-max-undo-history 'forever)
(send f show #t)
f)))

View File

@ -226,6 +226,7 @@
load-file
insert-port
save-port
get-default-style-name
get-flattened-text
put-file
get-file
@ -885,6 +886,7 @@
get-end-position
get-start-position
get-position
get-default-style-name
get-flattened-text
put-file
get-file
@ -987,6 +989,7 @@
get)
(define-class editor-stream-out% object% #f
ok?
pretty-finish
jump-to
tell
put-fixed
@ -1094,6 +1097,7 @@
do-copy
delete
insert
get-default-style-name
get-flattened-text
put-file
get-file