2002-04-14 14:02:56 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2002-10-04 19:54:05 +00:00
|
|
|
#import <Carbon/Carbon.h>
|
2002-04-30 23:44:23 +00:00
|
|
|
#import "Structs.h"
|
2002-04-29 00:05:34 +00:00
|
|
|
#import "DataSource.h"
|
2002-04-14 14:02:56 +00:00
|
|
|
|
|
|
|
#import "ResKnifePluginProtocol.h"
|
|
|
|
#import "ResKnifeResourceProtocol.h"
|
|
|
|
|
2002-10-04 19:54:05 +00:00
|
|
|
#define localCenter [NSNotificationCenter defaultCenter]
|
|
|
|
|
2002-04-14 14:02:56 +00:00
|
|
|
@interface NovaWindowController : NSWindowController <ResKnifePluginProtocol>
|
|
|
|
{
|
|
|
|
id <ResKnifeResourceProtocol> resource;
|
2002-04-29 00:05:34 +00:00
|
|
|
NSUndoManager *undoManager;
|
2002-10-04 19:54:05 +00:00
|
|
|
// NSNotificationCenter *localCenter;
|
|
|
|
NSBundle *plugBundle;
|
2002-04-29 00:05:34 +00:00
|
|
|
|
2002-10-04 19:54:05 +00:00
|
|
|
DataSource *descriptionDataSource;
|
2002-04-29 00:05:34 +00:00
|
|
|
DataSource *governmentDataSource;
|
2002-10-04 19:54:05 +00:00
|
|
|
DataSource *pictureDataSource;
|
2002-04-29 00:05:34 +00:00
|
|
|
DataSource *planetDataSource;
|
|
|
|
DataSource *shipDataSource;
|
2002-10-04 19:54:05 +00:00
|
|
|
DataSource *soundDataSource;
|
|
|
|
DataSource *spinDataSource;
|
2002-04-14 14:02:56 +00:00
|
|
|
}
|
2002-04-27 18:17:47 +00:00
|
|
|
|
2002-04-29 00:05:34 +00:00
|
|
|
- (void)setResource:(id <ResKnifeResourceProtocol>)newResource;
|
|
|
|
- (void)setUndoManager:(NSUndoManager *)newUndoManager;
|
2002-04-27 18:17:47 +00:00
|
|
|
- (IBAction)toggleResID:(id)sender;
|
|
|
|
|
2002-04-30 23:44:23 +00:00
|
|
|
- (void)resourceNameDidChange:(NSNotification *)notification;
|
2002-10-04 19:54:05 +00:00
|
|
|
- (void)saveSheetDidClose:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
|
|
|
- (void)invalidValuesSheetDidClose:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
2002-04-30 23:44:23 +00:00
|
|
|
|
2002-04-14 14:02:56 +00:00
|
|
|
@end
|
2002-10-04 19:54:05 +00:00
|
|
|
|
|
|
|
@interface NovaWindowController (AbstractNovaMethods)
|
|
|
|
|
|
|
|
- (NSDictionary *)validateValues;
|
|
|
|
- (void)saveResource;
|
|
|
|
|
|
|
|
@end
|