2002-02-23 03:40:24 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import "ResKnifePluginProtocol.h"
|
|
|
|
#import "ResKnifeResourceProtocol.h"
|
|
|
|
|
2003-08-01 22:23:50 +00:00
|
|
|
@interface TemplateWindowController : NSWindowController <ResKnifePluginProtocol, ResKnifeTemplatePluginProtocol>
|
2002-02-23 03:40:24 +00:00
|
|
|
{
|
2002-12-31 19:06:40 +00:00
|
|
|
IBOutlet NSView *containerView;
|
2002-03-21 04:03:44 +00:00
|
|
|
|
|
|
|
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;
|
2002-11-13 03:35:54 +00:00
|
|
|
- (void)enumerateElements:(NSMutableArray *)elements;
|
2002-02-23 03:40:24 +00:00
|
|
|
- (void)resourceDataDidChange:(NSNotification *)notification;
|
|
|
|
- (void)refreshData:(NSData *)data;
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
- (id)resource;
|
|
|
|
- (NSData *)data;
|
|
|
|
|
|
|
|
@end
|