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

Method copyFilePath

src/eepp/ui/uicodeeditor.cpp:2243–2249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2241}
2242
2243void UICodeEditor::copyFilePath( bool copyPosition ) {
2244 auto clipboard = getUISceneNode()->getWindow()->getClipboard();
2245 if ( copyPosition )
2246 clipboard->setText( mDoc->getFilePath() + mDoc->getSelection().start().toPositionString() );
2247 else
2248 clipboard->setText( mDoc->getFilePath() );
2249}
2250
2251void UICodeEditor::scrollToCursor( bool centered ) {
2252 scrollTo( mDoc->getSelection().start(), centered );

Callers 1

createCodeEditorMethod · 0.80

Calls 6

getFilePathMethod · 0.80
getClipboardMethod · 0.45
getWindowMethod · 0.45
setTextMethod · 0.45
startMethod · 0.45
getSelectionMethod · 0.45

Tested by

no test coverage detected