2002-02-23 03:40:24 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import "ResKnifePluginProtocol.h"
|
|
|
|
#import "ResKnifeResourceProtocol.h"
|
|
|
|
|
|
|
|
@interface TemplateWindowController : NSWindowController <ResKnifePluginProtocol>
|
|
|
|
{
|
2002-03-21 04:03:44 +00:00
|
|
|
IBOutlet NSMatrix *fieldsMatrix;
|
|
|
|
|
|
|
|
NSMutableArray *tmpl;
|
|
|
|
NSMutableArray *res;
|
2002-02-23 03:40:24 +00:00
|
|
|
id <ResKnifeResourceProtocol> resource;
|
|
|
|
}
|
|
|
|
|
|
|
|
// normal methods
|
|
|
|
- (void)readTemplate:(id <ResKnifeResourceProtocol>)tmpl;
|
|
|
|
- (void)parseData;
|
|
|
|
- (void)createUI;
|
|
|
|
- (void)resourceDataDidChange:(NSNotification *)notification;
|
|
|
|
- (void)refreshData:(NSData *)data;
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
- (id)resource;
|
|
|
|
- (NSData *)data;
|
|
|
|
|
|
|
|
@end
|