This is ResizeGraphicsChange.m in view mode; [Download] [Up]
#import "drawundo.h"
@interface ResizeGraphicsChange(PrivateMethods)
- undoDetails;
- redoDetails;
@end
@implementation ResizeGraphicsChange
- initGraphicView:aGraphicView graphic:aGraphic
{
[super initGraphicView:aGraphicView];
graphic = aGraphic;
return self;
}
- (const char *)changeName
{
return NXLocalStringFromTable("Operations", "Resize", NULL, "The operation of changing the size of a graphical entity by dragging a corner of it with the mouse.");
}
- saveBeforeChange
{
graphics = [[List alloc] init];
[graphics addObject:graphic];
[graphic getBounds:&oldBounds];
return self;
}
- changeDetailClass
{
return nil;
}
- undoDetails
{
[graphic getBounds:&newBounds];
[graphic setBounds:&oldBounds];
return self;
}
- redoDetails
{
[graphic setBounds:&newBounds];
return self;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.