ResKnife/NovaTools/NovaWindowController.h

42 lines
1.2 KiB
C
Raw Normal View History

#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;
}
2002-04-27 18:17:47 +00:00
- (void)setResource:(id <ResKnifeResourceProtocol>)newResource;
- (void)setUndoManager:(NSUndoManager *)newUndoManager;
2002-04-27 18:17:47 +00:00
- (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