mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +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
085ba67a26
commit
616a70c202
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>
|
2005-01-14 16:11 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Headers/AppKit/NSSavePanel.h (-panel:shouldShowFilename:):
|
* Headers/AppKit/NSSavePanel.h (-panel:shouldShowFilename:):
|
||||||
|
|
|
@ -930,4 +930,14 @@
|
||||||
[self updateChangeCount: NSChangeDone];
|
[self updateChangeCount: NSChangeDone];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) undo: (id)sender
|
||||||
|
{
|
||||||
|
[[self undoManager] undo];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) redo: (id)sender
|
||||||
|
{
|
||||||
|
[[self undoManager] redo];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -4155,16 +4155,6 @@ resetCursorRectsForView(NSView *theView)
|
||||||
// Should only be defined on MS Windows
|
// Should only be defined on MS Windows
|
||||||
return (void *)_windowNum;
|
return (void *)_windowNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) undo: (id)sender
|
|
||||||
{
|
|
||||||
[[[[NSDocumentController sharedDocumentController] currentDocument] undoManager] undo];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) redo: (id)sender
|
|
||||||
{
|
|
||||||
[[[[NSDocumentController sharedDocumentController] currentDocument] undoManager] redo];
|
|
||||||
}
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue