ResKnife/NovaTools/NovaWindowController.h
2002-10-04 19:54:05 +00:00

42 lines
1.2 KiB
Objective-C

#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>
#import "Structs.h"
#import "DataSource.h"
#import "ResKnifePluginProtocol.h"
#import "ResKnifeResourceProtocol.h"
#define localCenter [NSNotificationCenter defaultCenter]
@interface NovaWindowController : NSWindowController <ResKnifePluginProtocol>
{
id <ResKnifeResourceProtocol> resource;
NSUndoManager *undoManager;
// NSNotificationCenter *localCenter;
NSBundle *plugBundle;
DataSource *descriptionDataSource;
DataSource *governmentDataSource;
DataSource *pictureDataSource;
DataSource *planetDataSource;
DataSource *shipDataSource;
DataSource *soundDataSource;
DataSource *spinDataSource;
}
- (void)setResource:(id <ResKnifeResourceProtocol>)newResource;
- (void)setUndoManager:(NSUndoManager *)newUndoManager;
- (IBAction)toggleResID:(id)sender;
- (void)resourceNameDidChange:(NSNotification *)notification;
- (void)saveSheetDidClose:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
- (void)invalidValuesSheetDidClose:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
@end
@interface NovaWindowController (AbstractNovaMethods)
- (NSDictionary *)validateValues;
- (void)saveResource;
@end