MCPcopy Create free account
hub / github.com/SpartanJ/eepp / refreshHighlight

Method refreshHighlight

src/tools/ecode/docsearchcontroller.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void DocSearchController::refreshHighlight() {
16 if ( mSearchState.editor && mSplitter->editorExists( mSearchState.editor ) ) {
17 mSearchState.text = mFindInput->getText();
18 mSearchState.editor->setHighlightWord( mSearchState.toTextSearchParams() );
19 if ( !mSearchState.text.empty() ) {
20 findNextText( mSearchState, true );
21 } else {
22 mFindInput->removeClass( "error" );
23 mSearchState.editor->getDocument().setSelection(
24 mSearchState.editor->getDocument().getSelection().start() );
25 }
26 }
27}
28
29void DocSearchController::initSearchBar(
30 UISearchBar* searchBar, const SearchBarConfig& searchBarConfig,

Callers

nothing calls this directly

Calls 10

setHighlightWordMethod · 0.80
toTextSearchParamsMethod · 0.80
removeClassMethod · 0.80
getDocumentMethod · 0.80
editorExistsMethod · 0.45
getTextMethod · 0.45
emptyMethod · 0.45
setSelectionMethod · 0.45
startMethod · 0.45
getSelectionMethod · 0.45

Tested by

no test coverage detected