本文整理汇总了C++中LEditor::FindAndSelectV方法的典型用法代码示例。如果您正苦于以下问题:C++ LEditor::FindAndSelectV方法的具体用法?C++ LEditor::FindAndSelectV怎么用?C++ LEditor::FindAndSelectV使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LEditor
的用法示例。
在下文中一共展示了LEditor::FindAndSelectV方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FindAndSelect
void PluginManager::FindAndSelect(const wxString& pattern, const wxString& name, int pos)
{
LEditor* editor = clMainFrame::Get()->GetMainBook()->GetActiveEditor();
if(editor) {
editor->FindAndSelectV(pattern, name, pos, NavMgr::Get());
editor->SetActive();
}
}
示例2: DoGotoDefinition
void ClangDriver::DoGotoDefinition(ClangThreadReply* reply)
{
CHECK_CLANG_ENABLED();
LEditor* editor = clMainFrame::Get()->GetMainBook()->OpenFile(reply->filename, wxEmptyString, reply->line);
if(editor) {
int pos = editor->PositionFromLine(reply->line - 1);
editor->FindAndSelectV(reply->filterWord, reply->filterWord, pos, NULL);
}
}
示例3: DoCtagsGotoDecl
bool CodeCompletionManager::DoCtagsGotoDecl(LEditor* editor)
{
TagEntryPtr tag = editor->GetContext()->GetTagAtCaret(true, false);
if (tag) {
LEditor *editor = clMainFrame::Get()->GetMainBook()->OpenFile(tag->GetFile(), wxEmptyString, tag->GetLine()-1);
if(!editor) {
return false;
}
// Use the async funtion here. Synchronously usually works but, if the file wasn't loaded, sometimes the EnsureVisible code is called too early and fails
editor->FindAndSelectV(tag->GetPattern(), tag->GetName());
return true;
}
return false;
}