2002-11-15 22:57:05 +00:00
|
|
|
/**
|
|
|
|
EOUndoManager.m <title>EOUndoManager</title>
|
|
|
|
|
2005-08-17 08:07:57 +00:00
|
|
|
Copyright (C) 2000-2002,2003,2004,2005 Free Software Foundation, Inc.
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
Author: Manuel Guesdon <mguesdon@orange-concept.com>
|
|
|
|
Date: October 2000
|
|
|
|
|
|
|
|
$Revision$
|
|
|
|
$Date$
|
|
|
|
|
|
|
|
<abstract></abstract>
|
|
|
|
|
|
|
|
This file is part of the GNUstep Database Library.
|
|
|
|
|
|
|
|
<license>
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
2007-07-12 06:39:22 +00:00
|
|
|
version 3 of the License, or (at your option) any later version.
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
|
If not, write to the Free Software Foundation,
|
2005-08-17 08:07:57 +00:00
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-11-15 22:57:05 +00:00
|
|
|
</license>
|
|
|
|
**/
|
|
|
|
|
2002-12-31 16:25:21 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
RCS_ID("$Id$")
|
2002-11-15 22:57:05 +00:00
|
|
|
|
2003-07-11 19:04:05 +00:00
|
|
|
#ifndef GNUSTEP
|
2003-08-25 20:01:59 +00:00
|
|
|
#include <GNUstepBase/GNUstep.h>
|
2004-01-29 13:23:22 +00:00
|
|
|
#include <GNUstepBase/GSCategories.h>
|
2010-06-09 12:48:33 +00:00
|
|
|
#include <GNUstepBase/NSObject+GNUstepBase.h>
|
2003-07-11 19:04:05 +00:00
|
|
|
#endif
|
|
|
|
|
2003-04-01 21:40:14 +00:00
|
|
|
#include <EOControl/EODeprecated.h>
|
2003-03-31 00:24:15 +00:00
|
|
|
#include <EOControl/EODebug.h>
|
2002-11-15 22:57:05 +00:00
|
|
|
|
2002-12-30 22:10:43 +00:00
|
|
|
|
2002-11-15 22:57:05 +00:00
|
|
|
@implementation EOUndoManager
|
|
|
|
|
2006-12-30 17:41:02 +00:00
|
|
|
- (void) forgetAllWithTarget: (id)target
|
2002-11-15 22:57:05 +00:00
|
|
|
{
|
2010-05-30 19:25:53 +00:00
|
|
|
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
[self notImplemented: _cmd]; //TODO
|
|
|
|
|
2010-05-30 19:25:53 +00:00
|
|
|
|
2002-11-15 22:57:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) forgetAll
|
|
|
|
{
|
2010-05-30 19:25:53 +00:00
|
|
|
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
[self notImplemented: _cmd]; //TODO
|
|
|
|
|
2010-05-30 19:25:53 +00:00
|
|
|
|
2002-11-15 22:57:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) registerUndoWithTarget: (id)target
|
2006-12-30 17:41:02 +00:00
|
|
|
selector: (SEL)selector
|
|
|
|
arg: (id)argument
|
2002-11-15 22:57:05 +00:00
|
|
|
{
|
2009-04-04 22:07:39 +00:00
|
|
|
// Ayers: TODO Verify functionality.
|
|
|
|
[super registerUndoWithTarget: target
|
|
|
|
selector: selector
|
|
|
|
object: argument];
|
2002-11-15 22:57:05 +00:00
|
|
|
// [self _registerUndoObject:_NSUndoLightInvocation target/selector/object];
|
|
|
|
/*_registerUndoObject:
|
|
|
|
call _prepareEventGrouping
|
|
|
|
beginUndoGrouping
|
|
|
|
_prepareEventGrouping
|
|
|
|
postNotificationName:NSUndoManagerDidOpenUndoGroupNotification object:self
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) reenableUndoRegistration
|
|
|
|
{
|
2009-04-04 22:07:39 +00:00
|
|
|
// Ayers: TODO Verify functionality.
|
|
|
|
[super enableUndoRegistration];
|
2002-11-15 22:57:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|