ResKnife/Cocoa/Plug-Ins/Hex Editor/HexEditorDelegate.h
2002-06-04 13:57:55 +00:00

34 lines
832 B
Objective-C

#import <Cocoa/Cocoa.h>
#import "ResKnifeResourceProtocol.h"
@class HexWindowController;
@interface HexEditorDelegate : NSObject
{
IBOutlet HexWindowController *controller;
IBOutlet NSTextView *ascii;
IBOutlet NSTextView *hex;
IBOutlet NSTextView *offset;
IBOutlet NSTextField *message;
IBOutlet NSMenu *pasteSubmenu;
BOOL editedLow;
}
- (NSString *)offsetRepresentation:(NSData *)data;
- (NSString *)hexRepresentation:(NSData *)data;
- (NSString *)asciiRepresentation:(NSData *)data;
- (NSRange)byteRangeFromHexRange:(NSRange)hexRange;
- (NSRange)hexRangeFromByteRange:(NSRange)byteRange;
- (NSRange)byteRangeFromAsciiRange:(NSRange)asciiRange;
- (NSRange)asciiRangeFromByteRange:(NSRange)byteRange;
- (NSTextView *)hex;
- (NSTextView *)ascii;
- (BOOL)editedLow;
- (void)setEditedLow:(BOOL)flag;
@end