8 #import <Cocoa/Cocoa.h> 10 #import <HexFiend/HFTypes.h> 102 HFRange displayedContentsRange;
108 NSUInteger currentPropertyChangeToken;
109 NSMutableArray *additionalPendingTransactions;
113 NSMutableSet *undoOperations;
114 HFControllerCoalescedUndo *undoCoalescer;
116 unsigned long long selectionAnchor;
119 CFAbsoluteTime pulseSelectionStartTime, pulseSelectionCurrentTime;
120 NSTimer *pulseSelectionTimer;
125 NSUInteger cachedGenerationIndex;
128 unsigned antialias:1;
129 unsigned colorbytes:1;
130 unsigned showcallouts:1;
131 unsigned hideNullBytes:1;
134 unsigned selectable:1;
135 unsigned selectionInProgress:1;
136 unsigned shiftExtendSelection:1;
137 unsigned commandExtendSelection:1;
138 unsigned livereload:1;
167 - (void)endPropertyChangeTransaction:(NSUInteger)token;
175 @property (nonatomic, strong) HFByteArray *
byteArray;
178 - (void)replaceByteArray:(HFByteArray *)newArray;
223 - (IBAction)selectAll:(
id)sender;
256 - (void)maximizeVisibilityOfContentsRange:(
HFRange)range;
259 - (void)centerContentsRange:(
HFRange)range;
264 @property (nonatomic, copy) NSFont *
font;
268 @property (nonatomic, strong) NSUndoManager *
undoManager;
271 @property (nonatomic) BOOL
editable;
301 - (void)beginSelectionWithEvent:(NSEvent *)event forByteIndex:(
unsigned long long)byteIndex;
304 - (void)continueSelectionWithEvent:(NSEvent *)event forByteIndex:(
unsigned long long)byteIndex;
307 - (void)endSelectionWithEvent:(NSEvent *)event forByteIndex:(
unsigned long long)byteIndex;
313 - (void)scrollWithScrollEvent:(NSEvent *)scrollEvent;
316 - (void)scrollByLines:(
long double)lines;
346 - (BOOL)insertByteArray:(HFByteArray *)byteArray replacingPreviousBytes:(
unsigned long long)previousByteCount allowUndoCoalescing:(BOOL)allowUndoCoalescing;
347 - (BOOL)insertData:(NSData *)data replacingPreviousBytes:(
unsigned long long)previousByteCount allowUndoCoalescing:(BOOL)allowUndoCoalescing;
361 - (NSData *)dataForRange:(
HFRange)range;
364 - (void)copyBytes:(
unsigned char *)bytes range:(
HFRange)range;
370 - (HFByteRangeAttributeArray *)attributesForBytesInRange:(
HFRange)range;
373 - (
HFRange)rangeForBookmark:(NSInteger)bookmark;
376 - (void)setRange:(
HFRange)range forBookmark:(NSInteger)bookmark;
379 - (NSIndexSet *)bookmarksInRange:(
HFRange)range;
388 + (BOOL)prepareForChangeInFile:(NSURL *)targetFile fromWritingByteArray:(HFByteArray *)array;
391 - (BOOL)clearUndoManagerDependenciesOnRanges:(NSArray *)ranges inFile:(HFFileReference *)reference hint:(NSMutableDictionary *)hint;
unsigned long long maximumSelectionLocation()
BOOL shouldShowCallouts
Definition: HFController.h:238
Definition: HFController.h:68
double selectionPulseAmount()
NSUInteger bytesPerColumn
Definition: HFController.h:194
Definition: HFController.h:39
A reference to an open file.
Definition: HFFileReference.h:19
NSString *const HFControllerDidChangePropertiesNotification
NSString *const HFChangeInFileModifiedRangesKey
A key in the HFPrepareForChangeInFileNotification specifying the array of HFRangeWrappers indicating ...
Definition: HFController.h:38
HFByteArray * byteArray
Definition: HFController.h:133
HFControllerMovementGranularity
Definition: HFController.h:65
unsigned long long contentsLength()
Definition: HFController.h:30
A central class that acts as the controller layer for HexFiend.framework.
Definition: HFController.h:97
Definition: HFController.h:70
HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...
Definition: HFTypes.h:2
HFEditMode editMode
Definition: HFController.h:198
_hfflags
Definition: HFController.h:97
NSString *const HFControllerChangedPropertiesKey
A key in the HFControllerDidChangeProperties containing a bitmask of the changed properties, as a HFControllerPropertyBits.
Definition: HFController.h:28
NSString *const HFChangeInFileByteArrayKey
A key in the HFPrepareForChangeInFileNotification specifying the byte array that will be written...
A class that represents sets of attributes, attached to ranges of bytes.
Definition: HFByteRangeAttributeArray.h:13
NSString *const HFPrepareForChangeInFileNotification
Definition: HFController.h:47
HFEditMode
Definition: HFController.h:77
Definition: HFController.h:37
BOOL editable
Definition: HFController.h:229
Definition: HFController.h:48
NSArray * selectedContentsRanges
Definition: HFController.h:178
Definition: HFController.h:69
The principal view class of Hex Fiend's MVC architecture.
Definition: HFRepresenter.h:29
BOOL shouldColorBytes
Definition: HFController.h:235
Definition: HFController.h:23
HFControllerMovementDirection
Definition: HFController.h:46
Definition: HFController.h:32
BOOL shouldAntialias
Definition: HFController.h:232
Definition: HFController.h:34
Definition: HFController.h:31
BOOL shouldHideNullBytes
Definition: HFController.h:241
Definition: HFController.h:24
Definition: HFController.h:29
HFByteArray * byteArrayForSelectedContentsRanges()
Definition: HFController.h:56
NSArray * representers
Gets the current array of representers attached to this controller.
Definition: HFController.h:105
HFByteRangeAttributeArray * byteRangeAttributeArray()
unsigned long long totalLineCount()
Definition: HFController.h:33
NSFont * font
Definition: HFController.h:222
BOOL shouldLiveReload
Definition: HFController.h:244
NSUInteger bytesPerLine()
Definition: HFController.h:26
Definition: HFController.h:78
NSString *const HFChangeInFileHintKey
The hint parameter that you may pass to clearDependenciesOnRanges:inFile:hint:
unsigned long long minimumSelectionLocation()
HFControllerPropertyBits
Definition: HFController.h:21
HFFPRange displayedLineRange
Definition: HFController.h:211
Definition: HFController.h:58
Definition: HFController.h:79
Definition: HFController.h:27
The principal Model class for HexFiend's MVC architecture.
Definition: HFByteArray.h:36
Definition: HFController.h:66
NSString *const HFChangeInFileShouldCancelKey
A key in the HFPrepareForChangeInFileNotification specifying an NSValue containing a pointer to a BOO...
HFFPRange is a struct used for representing floating point ranges, similar to NSRange. It contains two long doubles.
Definition: HFTypes.h:10
Definition: HFController.h:67
NSUndoManager * undoManager
Definition: HFController.h:226
Definition: HFController.h:80
NSUInteger beginPropertyChangeTransaction()
Definition: HFController.h:25
Definition: HFController.h:57
Definition: HFController.h:35
HFControllerSelectionTransformation
Definition: HFController.h:55
Definition: HFController.h:22
Definition: HFController.h:36