mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-11-09 23:04:30 +00:00
42 lines
1.2 KiB
Objective-C
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 |