C# Class dnSpy.Hex.Editor.Search.HexViewSearchServiceImpl

Inheritance: HexViewSearchService, INotifyPropertyChanged
Show file Open project: 0xd4d/dnSpy

Private Properties

Property Type Description
FindAsync IAsyncSearcher
GetAllResultsForReplaceAll IEnumerable
GetFindOptions OurFindOptions
GetNextSearchPosition HexBufferPoint
GetStartingPosition HexBufferPoint?
GetStartingPosition HexBufferPoint?
GetStringDataKind string
GetsearchControlPosition SearchControlPosition
Intersects bool
IsMultiLineRegexPattern bool
IsReplaceStringValid bool
ReplaceFindNextCore HexBufferSpan?
SelectAllWhenFocused void
StartSearchAsync Task
ToHexChar char
ToHexFindOptions HexFindOptions
TryGetReplaceStringData byte[]
TryGetSearchStringAtCaret string
TryGetSearchStringAtPoint string
TryGetSearchStringFromSelection string

Public Methods

Method Description
Buffer_BufferSpanInvalidated ( object sender, HexBufferSpanInvalidatedEventArgs e ) : void
CanExecuteSearchControl ( System.Guid group, int cmdId ) : CommandTargetStatus
CancelAllAsyncSearches ( ) : void
CancelAsyncSearch ( ) : void
CancelFindAsyncSearcher ( ) : void
CancelIncrementalSearch ( ) : void
CancelIncrementalSearchAndUpdateMarkers ( ) : void
Caret_PositionChanged ( object sender, dnSpy.Contracts.Hex.Editor.HexCaretPositionChangedEventArgs e ) : void
CleanUpIncrementalSearch ( ) : void
CloseSearchControl ( ) : void
CloseSearchControlIfIncrementalSearch ( ) : void
ExecuteSearchControl ( System.Guid group, int cmdId, object args, object &result ) : CommandTargetStatus
FindNext ( bool forward ) : void
FindNextCore ( OurFindOptions options, HexBufferPoint startingPosition, bool isIncrementalSearch ) : void
FindNextSelected ( bool forward ) : void
FindNextSelectedCore ( bool forward, bool restart ) : void
FocusReplaceStringTextBox ( ) : void
FocusSearchStringTextBox ( ) : void
GetSpans ( NormalizedHexBufferSpanCollection spans ) : IEnumerable
HexViewSearchServiceImpl ( dnSpy.Contracts.Hex.Editor.WpfHexView wpfHexView, HexSearchServiceFactory hexSearchServiceFactory, SearchSettings searchSettings, IMessageBoxService messageBoxService, HexEditorOperationsFactoryService editorOperationsFactoryService ) : System
OnPropertyChanged ( string propName ) : void
PositionSearchControl ( Rect rect ) : void
PositionSearchControl ( SearchControlPosition position ) : void
PositionSearchControl ( double left, double top ) : void
PositionWithoutCoveringSpan ( HexBufferSpan span ) : void
RefreshAllTags ( ) : void
RegisterHexMarkerListener ( IHexMarkerListener listener ) : void
ReplaceAll ( ) : void
ReplaceNext ( ) : void
RepositionControl ( bool recalcSize = false ) : void
RestartSearch ( ) : void
RestartSearchAndUpdateMarkers ( ) : void
SaveSettings ( ) : void
SearchControl_GotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
SearchControl_LostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
SearchControl_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
SearchControl_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
SetIncrementalSearchString ( string newSearchString ) : void
SetSearchKind ( SearchKind value ) : void
SetSearchString ( string newSearchString, bool canSearch = true ) : void
ShowFind ( ) : void
ShowIncrementalSearch ( bool forward ) : void
ShowReplace ( ) : void
ShowSearchControl ( SearchKind searchKind, bool canOverwriteSearchString ) : void
ShowSearchResult ( HexBufferSpan span ) : void
ToggleFindReplace ( ) : void
UpdateHexMarkerSearch ( ) : void
UpdateSearchStringFromCaretPosition ( bool canSearch ) : void
UseGlobalSettings ( bool canOverwriteSearchString ) : void
UseGlobalSettingsIfUiIsHidden ( bool canOverwriteSearchString ) : void
WpfHexView_BufferLinesChanged ( object sender, BufferLinesChangedEventArgs e ) : void
WpfHexView_Closed ( object sender, EventArgs e ) : void
WpfHexView_LayoutChanged ( object sender, HexViewLayoutChangedEventArgs e ) : void

Private Methods

Method Description
FindAsync ( SearchOptions searchOptions, HexBufferSpan?>.Action onCompleted ) : IAsyncSearcher
GetAllResultsForReplaceAll ( ) : IEnumerable
GetFindOptions ( SearchKind searchKind, bool forward ) : OurFindOptions
GetNextSearchPosition ( HexBufferSpan span, bool forward ) : HexBufferPoint
GetStartingPosition ( OurFindOptions options, bool restart ) : HexBufferPoint?
GetStartingPosition ( SearchKind searchKind, OurFindOptions options, bool restart ) : HexBufferPoint?
GetStringDataKind ( string encodingName ) : string
GetsearchControlPosition ( HexBufferSpan span ) : SearchControlPosition
Intersects ( HexBufferSpan fullSpan, dnSpy.Contracts.Hex.Formatting.HexViewLine line, Rect rect ) : bool
IsMultiLineRegexPattern ( string s ) : bool
IsReplaceStringValid ( ) : bool
ReplaceFindNextCore ( ) : HexBufferSpan?
SelectAllWhenFocused ( TextBox textBox ) : void
StartSearchAsync ( AsyncSearcher asyncSearcher ) : Task
ToHexChar ( int val, bool upper ) : char
ToHexFindOptions ( OurFindOptions options ) : HexFindOptions
TryGetReplaceStringData ( HexBufferSpan replaceSpan ) : byte[]
TryGetSearchStringAtCaret ( ) : string
TryGetSearchStringAtPoint ( HexBufferPoint point ) : string
TryGetSearchStringFromSelection ( ) : string

Method Details

Buffer_BufferSpanInvalidated() public method

public Buffer_BufferSpanInvalidated ( object sender, HexBufferSpanInvalidatedEventArgs e ) : void
sender object
e dnSpy.Contracts.Hex.HexBufferSpanInvalidatedEventArgs
return void

CanExecuteSearchControl() public method

public CanExecuteSearchControl ( System.Guid group, int cmdId ) : CommandTargetStatus
group System.Guid
cmdId int
return CommandTargetStatus

CancelAllAsyncSearches() public method

public CancelAllAsyncSearches ( ) : void
return void

CancelAsyncSearch() public method

public CancelAsyncSearch ( ) : void
return void

CancelFindAsyncSearcher() public method

public CancelFindAsyncSearcher ( ) : void
return void

CancelIncrementalSearch() public method

public CancelIncrementalSearch ( ) : void
return void

CancelIncrementalSearchAndUpdateMarkers() public method

public CancelIncrementalSearchAndUpdateMarkers ( ) : void
return void

Caret_PositionChanged() public method

public Caret_PositionChanged ( object sender, dnSpy.Contracts.Hex.Editor.HexCaretPositionChangedEventArgs e ) : void
sender object
e dnSpy.Contracts.Hex.Editor.HexCaretPositionChangedEventArgs
return void

CleanUpIncrementalSearch() public method

public CleanUpIncrementalSearch ( ) : void
return void

CloseSearchControl() public method

public CloseSearchControl ( ) : void
return void

CloseSearchControlIfIncrementalSearch() public method

public CloseSearchControlIfIncrementalSearch ( ) : void
return void

ExecuteSearchControl() public method

public ExecuteSearchControl ( System.Guid group, int cmdId, object args, object &result ) : CommandTargetStatus
group System.Guid
cmdId int
args object
result object
return CommandTargetStatus

FindNext() public method

public FindNext ( bool forward ) : void
forward bool
return void

FindNextCore() public method

public FindNextCore ( OurFindOptions options, HexBufferPoint startingPosition, bool isIncrementalSearch ) : void
options OurFindOptions
startingPosition HexBufferPoint
isIncrementalSearch bool
return void

FindNextSelected() public method

public FindNextSelected ( bool forward ) : void
forward bool
return void

FindNextSelectedCore() public method

public FindNextSelectedCore ( bool forward, bool restart ) : void
forward bool
restart bool
return void

FocusReplaceStringTextBox() public method

public FocusReplaceStringTextBox ( ) : void
return void

FocusSearchStringTextBox() public method

public FocusSearchStringTextBox ( ) : void
return void

GetSpans() public method

public GetSpans ( NormalizedHexBufferSpanCollection spans ) : IEnumerable
spans NormalizedHexBufferSpanCollection
return IEnumerable

HexViewSearchServiceImpl() public method

public HexViewSearchServiceImpl ( dnSpy.Contracts.Hex.Editor.WpfHexView wpfHexView, HexSearchServiceFactory hexSearchServiceFactory, SearchSettings searchSettings, IMessageBoxService messageBoxService, HexEditorOperationsFactoryService editorOperationsFactoryService ) : System
wpfHexView dnSpy.Contracts.Hex.Editor.WpfHexView
hexSearchServiceFactory HexSearchServiceFactory
searchSettings SearchSettings
messageBoxService IMessageBoxService
editorOperationsFactoryService dnSpy.Contracts.Hex.Operations.HexEditorOperationsFactoryService
return System

OnPropertyChanged() public method

public OnPropertyChanged ( string propName ) : void
propName string
return void

PositionSearchControl() public method

public PositionSearchControl ( Rect rect ) : void
rect System.Windows.Rect
return void

PositionSearchControl() public method

public PositionSearchControl ( SearchControlPosition position ) : void
position SearchControlPosition
return void

PositionSearchControl() public method

public PositionSearchControl ( double left, double top ) : void
left double
top double
return void

PositionWithoutCoveringSpan() public method

public PositionWithoutCoveringSpan ( HexBufferSpan span ) : void
span HexBufferSpan
return void

RefreshAllTags() public method

public RefreshAllTags ( ) : void
return void

RegisterHexMarkerListener() public method

public RegisterHexMarkerListener ( IHexMarkerListener listener ) : void
listener IHexMarkerListener
return void

ReplaceAll() public method

public ReplaceAll ( ) : void
return void

ReplaceNext() public method

public ReplaceNext ( ) : void
return void

RepositionControl() public method

public RepositionControl ( bool recalcSize = false ) : void
recalcSize bool
return void

RestartSearch() public method

public RestartSearch ( ) : void
return void

RestartSearchAndUpdateMarkers() public method

public RestartSearchAndUpdateMarkers ( ) : void
return void

SaveSettings() public method

public SaveSettings ( ) : void
return void

SearchControl_GotKeyboardFocus() public method

public SearchControl_GotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

SearchControl_LostKeyboardFocus() public method

public SearchControl_LostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

SearchControl_MouseDown() public method

public SearchControl_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

SearchControl_SizeChanged() public method

public SearchControl_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
sender object
e System.Windows.SizeChangedEventArgs
return void

SetIncrementalSearchString() public method

public SetIncrementalSearchString ( string newSearchString ) : void
newSearchString string
return void

SetSearchKind() public method

public SetSearchKind ( SearchKind value ) : void
value SearchKind
return void

SetSearchString() public method

public SetSearchString ( string newSearchString, bool canSearch = true ) : void
newSearchString string
canSearch bool
return void

ShowFind() public method

public ShowFind ( ) : void
return void

ShowIncrementalSearch() public method

public ShowIncrementalSearch ( bool forward ) : void
forward bool
return void

ShowReplace() public method

public ShowReplace ( ) : void
return void

ShowSearchControl() public method

public ShowSearchControl ( SearchKind searchKind, bool canOverwriteSearchString ) : void
searchKind SearchKind
canOverwriteSearchString bool
return void

ShowSearchResult() public method

public ShowSearchResult ( HexBufferSpan span ) : void
span HexBufferSpan
return void

ToggleFindReplace() public method

public ToggleFindReplace ( ) : void
return void

UpdateHexMarkerSearch() public method

public UpdateHexMarkerSearch ( ) : void
return void

UpdateSearchStringFromCaretPosition() public method

public UpdateSearchStringFromCaretPosition ( bool canSearch ) : void
canSearch bool
return void

UseGlobalSettings() public method

public UseGlobalSettings ( bool canOverwriteSearchString ) : void
canOverwriteSearchString bool
return void

UseGlobalSettingsIfUiIsHidden() public method

public UseGlobalSettingsIfUiIsHidden ( bool canOverwriteSearchString ) : void
canOverwriteSearchString bool
return void

WpfHexView_BufferLinesChanged() public method

public WpfHexView_BufferLinesChanged ( object sender, BufferLinesChangedEventArgs e ) : void
sender object
e dnSpy.Contracts.Hex.Editor.BufferLinesChangedEventArgs
return void

WpfHexView_Closed() public method

public WpfHexView_Closed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

WpfHexView_LayoutChanged() public method

public WpfHexView_LayoutChanged ( object sender, HexViewLayoutChangedEventArgs e ) : void
sender object
e dnSpy.Contracts.Hex.Editor.HexViewLayoutChangedEventArgs
return void