2002-02-11 01:22:17 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2002-02-02 11:48:54 +00:00
|
|
|
#import "HexEditorDelegate.h"
|
2002-02-11 01:22:17 +00:00
|
|
|
#import "HexTextView.h"
|
2002-02-02 11:48:54 +00:00
|
|
|
|
|
|
|
#import "ResKnifePluginProtocol.h"
|
|
|
|
#import "ResKnifeResourceProtocol.h"
|
|
|
|
|
|
|
|
@interface HexWindowController : NSWindowController <ResKnifePluginProtocol>
|
|
|
|
{
|
|
|
|
IBOutlet HexEditorDelegate *hexDelegate;
|
|
|
|
IBOutlet NSTextView *ascii;
|
|
|
|
IBOutlet NSTextView *hex;
|
|
|
|
IBOutlet NSTextView *offset;
|
2002-02-06 20:57:56 +00:00
|
|
|
IBOutlet NSTextField *message;
|
2002-02-02 11:48:54 +00:00
|
|
|
|
2002-02-23 03:40:24 +00:00
|
|
|
id <ResKnifeResourceProtocol> resource;
|
2002-03-21 04:02:26 +00:00
|
|
|
int bytesPerRow;
|
2002-02-02 11:48:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// conform to the ResKnifePluginProtocol with the inclusion of these methods
|
|
|
|
- (id)initWithResource:(id)newResource;
|
2002-02-06 20:57:56 +00:00
|
|
|
|
2002-03-21 04:02:26 +00:00
|
|
|
// show find sheet
|
|
|
|
- (IBAction)showFind:(id)sender;
|
|
|
|
|
2002-02-11 22:03:20 +00:00
|
|
|
// normal methods
|
|
|
|
- (void)viewDidScroll:(NSNotification *)notification;
|
2002-02-14 23:24:53 +00:00
|
|
|
- (void)resourceDataDidChange:(NSNotification *)notification;
|
2002-02-11 22:03:20 +00:00
|
|
|
- (void)refreshData:(NSData *)data;
|
|
|
|
|
2002-02-06 20:57:56 +00:00
|
|
|
// accessors
|
|
|
|
- (id)resource;
|
|
|
|
- (NSData *)data;
|
2002-03-21 04:02:26 +00:00
|
|
|
- (int)bytesPerRow;
|
2002-02-02 11:48:54 +00:00
|
|
|
|
|
|
|
@end
|