mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
More undo stuff.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20558 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
40da8da4c5
commit
7e6ddd83a6
3 changed files with 16 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-01-15 05:59 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSDocument.m: Added undo:/redo: here. Smarter use
|
||||
of the responder chain.
|
||||
* Source/NSWindow.m: Removed undo:/redo: here.
|
||||
|
||||
2005-01-14 16:11 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Headers/AppKit/NSSavePanel.h (-panel:shouldShowFilename:):
|
||||
|
|
|
@ -930,4 +930,14 @@
|
|||
[self updateChangeCount: NSChangeDone];
|
||||
}
|
||||
|
||||
- (void) undo: (id)sender
|
||||
{
|
||||
[[self undoManager] undo];
|
||||
}
|
||||
|
||||
- (void) redo: (id)sender
|
||||
{
|
||||
[[self undoManager] redo];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -4155,16 +4155,6 @@ resetCursorRectsForView(NSView *theView)
|
|||
// Should only be defined on MS Windows
|
||||
return (void *)_windowNum;
|
||||
}
|
||||
|
||||
- (void) undo: (id)sender
|
||||
{
|
||||
[[[[NSDocumentController sharedDocumentController] currentDocument] undoManager] undo];
|
||||
}
|
||||
|
||||
- (void) redo: (id)sender
|
||||
{
|
||||
[[[[NSDocumentController sharedDocumentController] currentDocument] undoManager] redo];
|
||||
}
|
||||
@end
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue