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

Method onLoadDone

src/tools/ecode/globalsearchcontroller.cpp:848–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848void GlobalSearchController::onLoadDone( const Variant& lineNum, const Variant& colNum ) {
849 if ( mSplitter->curEditorExistsAndFocused() && lineNum.isValid() && colNum.isValid() &&
850 lineNum.is( Variant::Type::Int64 ) && colNum.is( Variant::Type::Int64 ) ) {
851 TextPosition pos{ lineNum.asInt64(), colNum.asInt64() };
852 mSplitter->getCurEditor()->getDocument().setSelection( pos );
853 mSplitter->getCurEditor()->goToLine( pos );
854 mSplitter->addCurrentPositionToNavigationHistory();
855 hideGlobalSearchBar();
856 }
857}
858
859void GlobalSearchController::initGlobalSearchTree( UITreeViewGlobalSearch* searchTree ) {
860 searchTree->addClass( "search_tree" );

Callers

nothing calls this directly

Calls 8

isMethod · 0.80
getDocumentMethod · 0.80
getCurEditorMethod · 0.80
isValidMethod · 0.45
setSelectionMethod · 0.45
goToLineMethod · 0.45

Tested by

no test coverage detected