File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Draw / graphicsUndo.subproj / LineWidthGraphicsChange.m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:39 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

#import "drawundo.h"

@interface LineWidthGraphicsChange(PrivateMethods)

- (BOOL)subsumeIdenticalChange:change;

@end

@implementation LineWidthGraphicsChange

- initGraphicView:aGraphicView lineWidth:(float)aWidth
{
    [super initGraphicView:aGraphicView];
    widthValue = aWidth;
    return self;
}

- (const char *)changeName
{
    return NXLocalStringFromTable("Operations", "Line Width", NULL, "The operation of changing the width of a line segment.");
}

- changeDetailClass
{
    return [LineWidthChangeDetail class];
}

- (float)lineWidth
{
    return widthValue;
}

- (BOOL)subsumeIdenticalChange:change
{
    widthValue = [(LineWidthGraphicsChange *)change lineWidth];
    return YES;
}

@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.