1 // 2 // PXLayerController.h 3 // Pixen-XCode 4 // 5 // Created by Joe Osborn on Thu Feb 05 2004. 6 // Copyright (c) 2004 Open Sword Group. All rights reserved. 7 // 8 9 #import <Foundation/Foundation.h> 10 #import "SubviewTableViewController.h" 11 12 extern NSString * PXLayerSelectionDidChangeName; 13 extern NSString * PXCanvasLayerSelectionDidChangeName; 14 15 @interface PXLayerController : NSResponder <SubviewTableViewControllerDataSourceProtocol> { 16 IBOutlet id tableView; 17 id canvas; 18 IBOutlet id drawer; 19 id views; 20 id tableViewController; 21 id window; 22 IBOutlet id removeButton; 23 } 24 - initWithCanvas:aCanvas; 25 - (void)toggle:sender; 26 - (void)setWindow:aWindow; 27 - (void)reloadData:aNotification; 28 - (void)setCanvas:aCanvas; 29 30 - (IBAction)addLayer:sender; 31 - (IBAction)duplicateLayer:sender; 32 - (void)duplicateLayerObject:layer; 33 - (IBAction)removeLayer:sender; 34 - (void)removeLayerObject:layer; 35 - (IBAction)selectLayer:sender; 36 - (void)selectRow:(int)index; 37 38 - (IBAction)nextLayer:sender; 39 - (IBAction)previousLayer:sender; 40 41 - (void)mergeDown; 42 43 - (void)updateRemoveButtonStatus; 44 - (int)invertLayerIndex:(int)anIndex; 45 - (void)setLayers:layers fromLayers:oldLayers resetSelection:(BOOL)resetSelection; 46 47 - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex; 48 - (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex; 49 - (NSDragOperation)tableView:(NSTableView *)aTableView validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation:(NSTableViewDropOperation)operation; 50 51 @end 52