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

Inheritance: HexViewSearchService, INotifyPropertyChanged
Afficher le fichier Open project: 0xd4d/dnSpy

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Buffer_BufferSpanInvalidated ( object sender, HexBufferSpanInvalidatedEventArgs e ) : void
sender object
e dnSpy.Contracts.Hex.HexBufferSpanInvalidatedEventArgs
Résultat void

CanExecuteSearchControl() public méthode

public CanExecuteSearchControl ( System.Guid group, int cmdId ) : CommandTargetStatus
group System.Guid
cmdId int
Résultat CommandTargetStatus

CancelAllAsyncSearches() public méthode

public CancelAllAsyncSearches ( ) : void
Résultat void

CancelAsyncSearch() public méthode

public CancelAsyncSearch ( ) : void
Résultat void

CancelFindAsyncSearcher() public méthode

public CancelFindAsyncSearcher ( ) : void
Résultat void

CancelIncrementalSearch() public méthode

public CancelIncrementalSearch ( ) : void
Résultat void

CancelIncrementalSearchAndUpdateMarkers() public méthode

public CancelIncrementalSearchAndUpdateMarkers ( ) : void
Résultat void

Caret_PositionChanged() public méthode

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

CleanUpIncrementalSearch() public méthode

public CleanUpIncrementalSearch ( ) : void
Résultat void

CloseSearchControl() public méthode

public CloseSearchControl ( ) : void
Résultat void

CloseSearchControlIfIncrementalSearch() public méthode

public CloseSearchControlIfIncrementalSearch ( ) : void
Résultat void

ExecuteSearchControl() public méthode

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

FindNext() public méthode

public FindNext ( bool forward ) : void
forward bool
Résultat void

FindNextCore() public méthode

public FindNextCore ( OurFindOptions options, HexBufferPoint startingPosition, bool isIncrementalSearch ) : void
options OurFindOptions
startingPosition HexBufferPoint
isIncrementalSearch bool
Résultat void

FindNextSelected() public méthode

public FindNextSelected ( bool forward ) : void
forward bool
Résultat void

FindNextSelectedCore() public méthode

public FindNextSelectedCore ( bool forward, bool restart ) : void
forward bool
restart bool
Résultat void

FocusReplaceStringTextBox() public méthode

public FocusReplaceStringTextBox ( ) : void
Résultat void

FocusSearchStringTextBox() public méthode

public FocusSearchStringTextBox ( ) : void
Résultat void

GetSpans() public méthode

public GetSpans ( NormalizedHexBufferSpanCollection spans ) : IEnumerable
spans NormalizedHexBufferSpanCollection
Résultat IEnumerable

HexViewSearchServiceImpl() public méthode

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
Résultat System

OnPropertyChanged() public méthode

public OnPropertyChanged ( string propName ) : void
propName string
Résultat void

PositionSearchControl() public méthode

public PositionSearchControl ( Rect rect ) : void
rect System.Windows.Rect
Résultat void

PositionSearchControl() public méthode

public PositionSearchControl ( SearchControlPosition position ) : void
position SearchControlPosition
Résultat void

PositionSearchControl() public méthode

public PositionSearchControl ( double left, double top ) : void
left double
top double
Résultat void

PositionWithoutCoveringSpan() public méthode

public PositionWithoutCoveringSpan ( HexBufferSpan span ) : void
span HexBufferSpan
Résultat void

RefreshAllTags() public méthode

public RefreshAllTags ( ) : void
Résultat void

RegisterHexMarkerListener() public méthode

public RegisterHexMarkerListener ( IHexMarkerListener listener ) : void
listener IHexMarkerListener
Résultat void

ReplaceAll() public méthode

public ReplaceAll ( ) : void
Résultat void

ReplaceNext() public méthode

public ReplaceNext ( ) : void
Résultat void

RepositionControl() public méthode

public RepositionControl ( bool recalcSize = false ) : void
recalcSize bool
Résultat void

RestartSearch() public méthode

public RestartSearch ( ) : void
Résultat void

RestartSearchAndUpdateMarkers() public méthode

public RestartSearchAndUpdateMarkers ( ) : void
Résultat void

SaveSettings() public méthode

public SaveSettings ( ) : void
Résultat void

SearchControl_GotKeyboardFocus() public méthode

public SearchControl_GotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

SearchControl_LostKeyboardFocus() public méthode

public SearchControl_LostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

SearchControl_MouseDown() public méthode

public SearchControl_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
Résultat void

SearchControl_SizeChanged() public méthode

public SearchControl_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
sender object
e System.Windows.SizeChangedEventArgs
Résultat void

SetIncrementalSearchString() public méthode

public SetIncrementalSearchString ( string newSearchString ) : void
newSearchString string
Résultat void

SetSearchKind() public méthode

public SetSearchKind ( SearchKind value ) : void
value SearchKind
Résultat void

SetSearchString() public méthode

public SetSearchString ( string newSearchString, bool canSearch = true ) : void
newSearchString string
canSearch bool
Résultat void

ShowFind() public méthode

public ShowFind ( ) : void
Résultat void

ShowIncrementalSearch() public méthode

public ShowIncrementalSearch ( bool forward ) : void
forward bool
Résultat void

ShowReplace() public méthode

public ShowReplace ( ) : void
Résultat void

ShowSearchControl() public méthode

public ShowSearchControl ( SearchKind searchKind, bool canOverwriteSearchString ) : void
searchKind SearchKind
canOverwriteSearchString bool
Résultat void

ShowSearchResult() public méthode

public ShowSearchResult ( HexBufferSpan span ) : void
span HexBufferSpan
Résultat void

ToggleFindReplace() public méthode

public ToggleFindReplace ( ) : void
Résultat void

UpdateHexMarkerSearch() public méthode

public UpdateHexMarkerSearch ( ) : void
Résultat void

UpdateSearchStringFromCaretPosition() public méthode

public UpdateSearchStringFromCaretPosition ( bool canSearch ) : void
canSearch bool
Résultat void

UseGlobalSettings() public méthode

public UseGlobalSettings ( bool canOverwriteSearchString ) : void
canOverwriteSearchString bool
Résultat void

UseGlobalSettingsIfUiIsHidden() public méthode

public UseGlobalSettingsIfUiIsHidden ( bool canOverwriteSearchString ) : void
canOverwriteSearchString bool
Résultat void

WpfHexView_BufferLinesChanged() public méthode

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

WpfHexView_Closed() public méthode

public WpfHexView_Closed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

WpfHexView_LayoutChanged() public méthode

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