|
6 | 6 |
|
7 | 7 | #import "DVTCompletingTextView.h" |
8 | 8 |
|
9 | | -@class DVTAnnotationManager, DVTMutableRangeArray, DVTObservingToken, DVTTextAnnotationIndicatorAnimation, DVTTextDocumentLocation, DVTTextPageGuideVisualization, NSAnimation, NSArray, NSDictionary, NSHashTable, NSMutableArray, NSString, NSTimer, NSView, NSWindow; |
| 9 | +@class DVTAnnotationManager, DVTMutableRangeArray, DVTObservingToken, DVTTextAnnotationIndicatorAnimation, DVTTextDocumentLocation, DVTTextPageGuideVisualization, NSAnimation, NSArray, NSColor, NSHashTable, NSMutableArray, NSMutableIndexSet, NSString, NSTimer, NSView, NSWindow; |
10 | 10 |
|
11 | 11 | @interface DVTSourceTextView : DVTCompletingTextView |
12 | 12 | { |
13 | | -unsigned long long _oldFocusLocation; |
14 | | -NSAnimation *_blockAnimation; |
15 | | -struct CGPoint _lastMouseMovedLocation; |
16 | | -struct _NSRange _foldingHoverRange; |
17 | | -DVTTextAnnotationIndicatorAnimation *_annotationIndicatorAnimation; |
18 | | -unsigned long long _temporaryLinkHoverModifierFlags; |
19 | | -unsigned long long _temporaryLinkHoverAltModifierFlags; |
20 | | -NSArray *_clickedTemporaryLinkRanges; |
21 | | -NSMutableArray *_clickedLinkProgressIndicators; |
22 | | -struct _NSRange _ghostStringRange; |
23 | | -NSTimer *_autoHighlightTokenMenuTimer; |
24 | | -struct _NSRange _autoHighlightTokenMenuRange; |
25 | | -double _autoHighlightTokenMenuAnimationDuration; |
26 | | -NSTimer *_autoHighlightTokenMenuAnimationTimer; |
27 | | -double _autoHighlightTokenMenuAnimationStartTime; |
28 | | -NSWindow *_autoHighlightTokenWindow; |
29 | | -NSArray *_foundLocations; |
30 | | -DVTTextDocumentLocation *_currentFoundLocation; |
31 | | -NSMutableArray *_visualizations; |
32 | | -unsigned long long _pageGuideColumn; |
33 | | -DVTTextPageGuideVisualization *_pageGuideVisualization; |
34 | | -unsigned long long _locationOfAutoOpenedCloseBracket; |
35 | | -unsigned long long _locationOfOpenBracePendingClose; |
36 | | -NSTimer *_scrollbarMarkerUpdateTimer; |
37 | | -DVTAnnotationManager *_annotationManager; |
38 | | -NSHashTable *_preparedViewAnnotations; |
39 | | -NSView *_staticVisualizationView; |
40 | | -int _findResultStyle; |
41 | | -DVTMutableRangeArray *_typeOverCompletionRanges; |
42 | | -DVTMutableRangeArray *_typeOverCompletionOpenRanges; |
43 | | -NSString *_pendingTypeOverCompletion; |
44 | | -struct _NSRange _pendingTypeOverCompletionOpenRange; |
45 | | -BOOL _didChangeText; |
46 | | -struct { |
47 | | -unsigned int dDidFinishAnimatingScroll:1; |
48 | | -unsigned int dDidScroll:1; |
49 | | -unsigned int dColoringContext:1; |
50 | | -unsigned int delegateRespondsToWillReturnPrintJobTitle:1; |
51 | | -unsigned int updatingInsertionPoint:1; |
52 | | -unsigned int wasPostsFrameChangedNotifications:1; |
53 | | -unsigned int doingDidChangeSelection:1; |
54 | | -unsigned int delegateRespondsToConstrainMinAccessoryAnnotationWidth:1; |
55 | | -unsigned int delegateRespondsToConstrainMaxAccessoryAnnotationWidth:1; |
56 | | -unsigned int delegateRespondsToConstrainAccessoryAnnotationWidth:1; |
57 | | -} _sFlags; |
58 | | -BOOL _isDoingBatchEdit; |
59 | | -BOOL _allowsCodeFolding; |
60 | | -BOOL _showingCodeFocus; |
61 | | -BOOL _lastMouseEventWasClick; |
62 | | -BOOL _tokenizedEditingEnabled; |
63 | | -BOOL _animatesCurrentScroll; |
64 | | -BOOL _disableUpdatingInsertionPointCount; |
65 | | -BOOL _currentlyAutoCompletingBracket; |
66 | | -BOOL _currentlyDoingNonUserEditing; |
67 | | -BOOL _wrapsLines; |
68 | | -BOOL _postsLayoutManagerNotifications; |
69 | | -BOOL _scrollingInScrollView; |
70 | | -DVTObservingToken *_autoHighlightTokenRangesObservingToken; |
71 | | -struct _NSRange _selectedRangeBeforeMouseDown; |
72 | | -BOOL _ensuringLayoutForScroll; |
| 13 | + unsigned long long _oldFocusLocation; |
| 14 | + NSAnimation *_blockAnimation; |
| 15 | + struct CGPoint _lastMouseMovedLocation; |
| 16 | + struct _NSRange _foldingHoverRange; |
| 17 | + DVTTextAnnotationIndicatorAnimation *_annotationIndicatorAnimation; |
| 18 | + unsigned long long _temporaryLinkHoverModifierFlags; |
| 19 | + unsigned long long _temporaryLinkHoverAltModifierFlags; |
| 20 | + NSArray *_clickedTemporaryLinkRanges; |
| 21 | + NSMutableArray *_clickedLinkProgressIndicators; |
| 22 | + struct _NSRange _ghostStringRange; |
| 23 | + NSTimer *_autoHighlightTokenMenuTimer; |
| 24 | + struct _NSRange _autoHighlightTokenMenuRange; |
| 25 | + double _autoHighlightTokenMenuAnimationDuration; |
| 26 | + NSTimer *_autoHighlightTokenMenuAnimationTimer; |
| 27 | + double _autoHighlightTokenMenuAnimationStartTime; |
| 28 | + NSWindow *_autoHighlightTokenWindow; |
| 29 | + NSArray *_foundLocations; |
| 30 | + DVTTextDocumentLocation *_currentFoundLocation; |
| 31 | + NSMutableArray *_visualizations; |
| 32 | + unsigned long long _pageGuideColumn; |
| 33 | + DVTTextPageGuideVisualization *_pageGuideVisualization; |
| 34 | + unsigned long long _locationOfAutoOpenedCloseBracket; |
| 35 | + unsigned long long _locationOfOpenBracePendingClose; |
| 36 | + NSTimer *_scrollbarMarkerUpdateTimer; |
| 37 | + DVTAnnotationManager *_annotationManager; |
| 38 | + NSHashTable *_preparedViewAnnotations; |
| 39 | + NSView *_staticVisualizationView; |
| 40 | + int _findResultStyle; |
| 41 | + DVTMutableRangeArray *_typeOverCompletionRanges; |
| 42 | + DVTMutableRangeArray *_typeOverCompletionOpenRanges; |
| 43 | + NSString *_pendingTypeOverCompletion; |
| 44 | + struct _NSRange _pendingTypeOverCompletionOpenRange; |
| 45 | + NSMutableIndexSet *_linesNeedingToTrimTrailingShitespace; |
| 46 | + BOOL _didChangeText; |
| 47 | + struct { |
| 48 | + unsigned int dDidFinishAnimatingScroll:1; |
| 49 | + unsigned int dDidScroll:1; |
| 50 | + unsigned int delegateRespondsToWillReturnPrintJobTitle:1; |
| 51 | + unsigned int updatingInsertionPoint:1; |
| 52 | + unsigned int wasPostsFrameChangedNotifications:1; |
| 53 | + unsigned int doingDidChangeSelection:1; |
| 54 | + unsigned int disableDrawingCurrentLineHighlight:1; |
| 55 | + unsigned int delegateRespondsToConstrainMinAccessoryAnnotationWidth:1; |
| 56 | + unsigned int delegateRespondsToConstrainMaxAccessoryAnnotationWidth:1; |
| 57 | + unsigned int delegateRespondsToConstrainAccessoryAnnotationWidth:1; |
| 58 | + } _sFlags; |
| 59 | + BOOL _isDoingBatchEdit; |
| 60 | + BOOL _allowsCodeFolding; |
| 61 | + BOOL _showingCodeFocus; |
| 62 | + BOOL _lastMouseEventWasClick; |
| 63 | + BOOL _tokenizedEditingEnabled; |
| 64 | + BOOL _animatesCurrentScroll; |
| 65 | + BOOL _disableUpdatingInsertionPointCount; |
| 66 | + BOOL _currentlyAutoCompletingBracket; |
| 67 | + BOOL _wrapsLines; |
| 68 | + BOOL _postsLayoutManagerNotifications; |
| 69 | + BOOL _scrollingInScrollView; |
| 70 | + DVTObservingToken *_autoHighlightTokenRangesObservingToken; |
| 71 | + struct _NSRange _selectedRangeBeforeMouseDown; |
| 72 | + BOOL _ensuringLayoutForScroll; |
| 73 | + BOOL _suppressRecentColorTracking; |
| 74 | + NSColor *_recentlySelectedColorToTrack; |
| 75 | + struct _NSRange _recentlySelectedColorLiteralRange; |
73 | 76 | } |
74 | 77 |
|
75 | 78 | + (BOOL)isCompatibleWithResponsiveScrolling; |
|
79 | 82 | + (id)foldingLogAspect; |
80 | 83 | + (id)drawingLogAspect; |
81 | 84 | + (void)initialize; |
| 85 | + |
82 | 86 | @property BOOL postsLayoutManagerNotifications; // @synthesize postsLayoutManagerNotifications=_postsLayoutManagerNotifications; |
83 | 87 | @property int findResultStyle; // @synthesize findResultStyle=_findResultStyle; |
84 | 88 | @property(nonatomic) unsigned long long pageGuideColumn; // @synthesize pageGuideColumn=_pageGuideColumn; |
|
87 | 91 | @property unsigned long long temporaryLinkHoverAltModifierFlags; // @synthesize temporaryLinkHoverAltModifierFlags=_temporaryLinkHoverAltModifierFlags; |
88 | 92 | @property unsigned long long temporaryLinkHoverModifierFlags; // @synthesize temporaryLinkHoverModifierFlags=_temporaryLinkHoverModifierFlags; |
89 | 93 | @property(nonatomic) BOOL wrapsLines; // @synthesize wrapsLines=_wrapsLines; |
| 94 | + |
| 95 | +- (id)mediaResourceProviderForLiteralInLayoutManager:(id)arg1; |
| 96 | +- (id)directoriesForLiteralInLayoutManager:(id)arg1; |
| 97 | +- (id)foldingTokenTypesForLayoutManager:(id)arg1; |
| 98 | +- (void)doubleClickedOnCell:(id)arg1 inRect:(struct CGRect)arg2 atIndexInToken:(unsigned long long)arg3; |
| 99 | +- (void)colorQuickEdit:(id)arg1 didSelectMoreColorOptions:(id)arg2; |
| 100 | +- (void)colorQuickEdit:(id)arg1 didSelectColor:(id)arg2; |
| 101 | +- (void)colorQuickEdit:(id)arg1 didHighlightColor:(id)arg2; |
| 102 | +- (void)imageQuickEdit:(id)arg1 didClickMoreButtonForFilePath:(id)arg2; |
| 103 | +- (void)imageQuickEdit:(id)arg1 didSelectFilePath:(id)arg2; |
| 104 | +- (void)fileQuickEdit:(id)arg1 didClickMoreButtonForFilePath:(id)arg2; |
| 105 | +- (void)fileQuickEdit:(id)arg1 didSelectFilePath:(id)arg2; |
| 106 | +- (void)changeColor:(id)arg1; |
| 107 | +- (void)updateSelectedColorLiteralWithColor:(id)arg1; |
| 108 | +- (void)presentOpenPanelForObjectLiteralAtFilePath:(id)arg1; |
| 109 | +- (void)presentPopoverRelativeToSelection:(id)arg1; |
| 110 | +- (void)insertObjectLiteralSyntaxForObjects:(id)arg1 selectLastObjectLiteral:(BOOL)arg2; |
| 111 | +- (BOOL)readObjectLiteralFromPasteboard:(id)arg1 type:(id)arg2; |
| 112 | +- (BOOL)readSelectionFromPasteboard:(id)arg1 type:(id)arg2; |
| 113 | +- (id)readablePasteboardTypes; |
| 114 | +- (BOOL)performDragOperation:(id)arg1; |
| 115 | +- (unsigned long long)dragOperationForDraggingInfo:(id)arg1 type:(id)arg2; |
| 116 | +- (id)acceptableDragTypes; |
| 117 | +- (id)_addingRedablePasteboardTypesForObjectLiterals:(id)arg1; |
90 | 118 | - (void)viewDidEndLiveResize; |
91 | 119 | - (void)viewWillStartLiveResize; |
92 | 120 | - (void)updateInsertionPointStateAndRestartTimer:(BOOL)arg1; |
|
116 | 144 | - (void)foldRecursive:(id)arg1; |
117 | 145 | - (void)fold:(id)arg1; |
118 | 146 | - (BOOL)writeSelectionToPasteboard:(id)arg1 type:(id)arg2; |
119 | | -- (BOOL)writeRTFSelectionToPasteboard:(id)arg1; |
120 | 147 | - (id)writablePasteboardTypes; |
121 | 148 | - (void)balance:(id)arg1; |
122 | 149 | - (void)shiftLeft:(id)arg1; |
|
126 | 153 | - (void)indentSelectionIfIndentable:(id)arg1; |
127 | 154 | - (void)indentSelection:(id)arg1; |
128 | 155 | - (struct _NSRange)_adjustedSelectedRange:(struct _NSRange)arg1 fromChangeIndex:(unsigned long long)arg2; |
129 | | -- (void)commentAndUncommentCurrentLines:(id)arg1; |
130 | 156 | - (void)moveCurrentLineDown:(id)arg1; |
131 | 157 | - (void)moveCurrentLineUp:(id)arg1; |
132 | 158 | - (void)_didChangeSelection:(id)arg1; |
|
140 | 166 | - (id)accessibilityAXAttributedStringForCharacterRange:(struct _NSRange)arg1 parent:(id)arg2; |
141 | 167 | - (BOOL)scrollRectToVisible:(struct CGRect)arg1; |
142 | 168 | - (void)scrollPoint:(struct CGPoint)arg1; |
143 | | -- (void)setMarkedText:(id)arg1 selectedRange:(struct _NSRange)arg2; |
| 169 | +- (void)setMarkedText:(id)arg1 selectedRange:(struct _NSRange)arg2 replacementRange:(struct _NSRange)arg3; |
144 | 170 | - (BOOL)shouldChangeTextInRanges:(id)arg1 replacementStrings:(id)arg2; |
145 | 171 | - (void)_invalidateAllRevealovers; |
146 | 172 | - (BOOL)isEditable; |
|
168 | 194 | - (void)textStorage:(id)arg1 willEndEditRange:(struct _NSRange)arg2 changeInLength:(long long)arg3; |
169 | 195 | - (void)didEndTokenizedEditingWithRanges:(id)arg1; |
170 | 196 | - (void)willStartTokenizedEditingWithRanges:(id)arg1; |
171 | | -- (void)tokenizableRangesWithRange:(struct _NSRange)arg1 completionBlock:(id)arg2; |
172 | 197 | - (void)_scheduleAutoHighlightTokenMenuTimerIfNeeded; |
173 | 198 | - (void)_showAutoHighlightTokenMenuWithTimer:(id)arg1; |
174 | 199 | - (id)_autoHighlightTokenWindowWithTokenRect:(struct CGRect)arg1; |
|
182 | 207 | - (void)_clearAutoHighlightTokenMenu; |
183 | 208 | - (void)removeStaticVisualizationView; |
184 | 209 | - (void)addStaticVisualizationView:(id)arg1; |
185 | | -- (void)removeVisualization:(id)arg1 fadeOut:(BOOL)arg2 completionBlock:(id)arg3; |
186 | | -- (void)addVisualization:(id)arg1 fadeIn:(BOOL)arg2 completionBlock:(id)arg3; |
187 | 210 | - (void)adjustTypeOverCompletionForSelectionChange:(struct _NSRange)arg1; |
188 | 211 | - (void)removeInvalidTypeOverCompletion; |
189 | 212 | - (void)removeTypeOverCompletionIfAppropriateForEditedRange:(struct _NSRange)arg1 changeInLength:(long long)arg2; |
190 | 213 | - (void)adjustTypeOverCompletionForEditedRange:(struct _NSRange)arg1 changeInLength:(long long)arg2; |
191 | 214 | - (void)addTypeOverCompletionForRange:(struct _NSRange)arg1 openRange:(struct _NSRange)arg2; |
192 | 215 | - (struct _NSRange)lastTypeOverCompletionRange; |
193 | 216 | - (struct _NSRange)typeOverCompletionRangeFollowingLocation:(unsigned long long)arg1; |
194 | | -- (void)didInsertCompletionTextAtRange:(struct _NSRange)arg1; |
| 217 | +- (void)textCompletionSession:(id)arg1 didInsertCompletionItem:(id)arg2 range:(struct _NSRange)arg3; |
195 | 218 | - (struct _NSRange)_suggestedOpenRangeForTypeOverRange:(struct _NSRange)arg1; |
196 | 219 | - (BOOL)shouldAutoCompleteAtLocation:(unsigned long long)arg1; |
197 | 220 | - (BOOL)shouldSuppressTextCompletion; |
|
215 | 238 | - (void)paste:(id)arg1; |
216 | 239 | - (void)_paste:(id)arg1 indent:(BOOL)arg2; |
217 | 240 | - (void)insertNewline:(id)arg1; |
| 241 | +- (BOOL)handleInsertNewline; |
218 | 242 | - (BOOL)handleInsertTab; |
219 | 243 | - (BOOL)handleSelectPreviousPlaceholder; |
220 | 244 | - (BOOL)handleSelectNextPlaceholder; |
|
240 | 264 | - (void)mouseMoved:(id)arg1; |
241 | 265 | - (void)_mouseInside:(id)arg1; |
242 | 266 | - (void)resetCursorRects; |
| 267 | +- (void)keyDown:(id)arg1; |
243 | 268 | - (void)removeFromSuperview; |
244 | 269 | - (void)viewDidMoveToWindow; |
245 | 270 | - (void)_refreshScrollerMarkers; |
|
268 | 293 | - (void)toggleCodeFocus:(id)arg1; |
269 | 294 | - (BOOL)codeFocusFollowsSelection; |
270 | 295 | - (void)_drawViewBackgroundInRect:(struct CGRect)arg1; |
| 296 | +- (void)_drawCurrentLineHighlight:(struct CGRect)arg1; |
271 | 297 | - (void)_drawCaretForTextAnnotationsInRect:(struct CGRect)arg1; |
272 | 298 | - (void)drawTextAnnotationsInRect:(struct CGRect)arg1; |
273 | 299 | - (long long)_drawRoundedBackgroundForFoldableBlockRangeAtLocation:(unsigned long long)arg1; |
274 | 300 | - (double)_grayLevelForDepth:(long long)arg1; |
275 | 301 | - (id)alternateColor; |
276 | 302 | - (void)setFoldingHoverRange:(struct _NSRange)arg1; |
277 | 303 | - (struct _NSRange)foldingHoverRange; |
278 | | -- (void)_loadColorsFromCurrentTheme; |
279 | | -- (void)_themeColorsChanged:(id)arg1; |
| 304 | +- (void)_loadFontsAndColorsFromTheme:(id)arg1; |
| 305 | +- (void)_fontAndColorSettingsChanged:(id)arg1; |
280 | 306 | - (void)_scheduleAnnotationLayout; |
281 | 307 | - (void)drawRect:(struct CGRect)arg1; |
282 | 308 | - (void)prepareContentInRect:(struct CGRect)arg1; |
283 | 309 | - (unsigned long long)foldedCharacterIndexForPoint:(struct CGPoint)arg1; |
284 | 310 | - (void)setSelectedRanges:(id)arg1 affinity:(unsigned long long)arg2 stillSelecting:(BOOL)arg3; |
285 | | -- (void)_delayedTrimTrailingWhitespaceForLine:(id)arg1; |
| 311 | +- (void)_delayedTrimTrailingWhitespaceForLines; |
286 | 312 | - (void)trimTrailingWhitespaceOnLine:(unsigned long long)arg1; |
287 | 313 | - (void)_trimTrailingWhitespaceOnLineAfterIndent:(unsigned long long)arg1 trimWhitespaceOnlyLine:(BOOL)arg2; |
288 | 314 | - (void)trimTrailingWhitespaceOnLine:(unsigned long long)arg1 trimWhitespaceOnlyLine:(BOOL)arg2; |
|
291 | 317 | - (void)setSelectedRange:(struct _NSRange)arg1; |
292 | 318 | - (void)contextMenu_toggleMessageBubbleShown:(id)arg1; |
293 | 319 | - (void)toggleMessageBubbleShown:(id)arg1; |
294 | | -- (void)_enumerateMessageBubbleAnnotationsInSelection:(id)arg1; |
295 | 320 | @property(readonly, getter=isAccessoryAnnotationCollapsed) BOOL accessoryAnnotationCollapsed; |
296 | 321 | - (void)setAccessoryAnnotationWidth:(double)arg1; |
297 | 322 | - (double)_maxAllowableAccessoryAnnotationWidth; |
|
314 | 339 | - (struct _NSRange)lineNumberRangeForBoundingRect:(struct CGRect)arg1; |
315 | 340 | - (unsigned long long)lineNumberForPoint:(struct CGPoint)arg1; |
316 | 341 | - (id)printJobTitle; |
317 | | -- (void)setIsCurrentlyDoingNonUserEditing:(BOOL)arg1; |
318 | | -@property(readonly) BOOL isCurrentlyDoingNonUserEditing; |
319 | | -@property(readonly) NSDictionary *syntaxColoringContext; |
320 | 342 | - (id)language; |
321 | 343 | - (BOOL)allowsCodeFolding; |
322 | 344 | - (void)setAllowsCodeFolding:(BOOL)arg1; |
323 | 345 | - (void)setTextStorage:(id)arg1; |
324 | 346 | - (void)setTextStorage:(id)arg1 keepOldLayout:(BOOL)arg2; |
325 | 347 | - (void)setTextContainer:(id)arg1; |
326 | 348 | - (id)initWithCoder:(id)arg1; |
| 349 | +- (void)dealloc; |
327 | 350 | - (id)initWithFrame:(struct CGRect)arg1 textContainer:(id)arg2; |
328 | 351 | - (void)_commonInitDVTSourceTextView; |
329 | 352 | - (id)menuForEvent:(id)arg1; |
|
0 commit comments