ftp.nice.ch/pub/next/science/mathematics/HippoDraw.2.0.s.tar.gz#/HippoDraw/Hippo.bproj/Draw.subproj/graphicsUndo.subproj/FillGraphicsChange.m

This is FillGraphicsChange.m in view mode; [Download] [Up]

#import "drawundo.h"

@interface FillGraphicsChange(PrivateMethods)

- (BOOL)subsumeIdenticalChange:change;

@end

@implementation FillGraphicsChange

- initGraphicView:aGraphicView
{
    return [self initGraphicView:aGraphicView fill:-1];
}

- initGraphicView:aGraphicView fill:(int)fillValue
{
    [super initGraphicView:aGraphicView];
    fill = fillValue;
    return self;
}

- (const char *)changeName
{
    return NXLocalStringFromTable("Operations", "Fill", NULL, "The operation of filling a graphical entity's interior with a gray or color.");
}

- changeDetailClass
{
    return [FillChangeDetail class];
}

- (BOOL)subsumeIdenticalChange:change
{
    return YES;
}

- (int)fill
{
    return fill;
}

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.