本文整理汇总了C++中leditor::Vec_t::at方法的典型用法代码示例。如果您正苦于以下问题:C++ Vec_t::at方法的具体用法?C++ Vec_t::at怎么用?C++ Vec_t::at使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类leditor::Vec_t
的用法示例。
在下文中一共展示了Vec_t::at方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DeleteAllBreakpointMarkers
// Delete all line-type breakpoint markers in all editors
// Done before refreshing after a delete or edit, lest it was the last bp in a file
void BreakptMgr::DeleteAllBreakpointMarkers()
{
LEditor::Vec_t editors;
clMainFrame::Get()->GetMainBook()->GetAllEditors(editors, MainBook::kGetAll_IncludeDetached);
for(size_t i=0; i<editors.size(); ++i) {
editors.at(i)->DelAllBreakpointMarkers();
}
}
示例2: RefreshPreProcessorColouring
void CodeCompletionManager::RefreshPreProcessorColouring()
{
bool enableBlockColouring = TagsManagerST::Get()->GetCtagsOptions().GetCcColourFlags() & CC_COLOUR_MACRO_BLOCKS;
LEditor::Vec_t editors;
clMainFrame::Get()->GetMainBook()->GetAllEditors(editors, MainBook::kGetAll_IncludeDetached);
if(!enableBlockColouring) {
for(size_t i = 0; i < editors.size(); ++i) {
LEditor* editor = editors.at(i);
editor->SetPreProcessorsWords("");
editor->SetProperty("lexer.cpp.track.preprocessor", "0");
editor->SetProperty("lexer.cpp.update.preprocessor", "0");
}
} else {
for(size_t i = 0; i < editors.size(); ++i) {
LEditor* editor = editors.at(i);
editor->SetProperty("lexer.cpp.track.preprocessor", "0");
editor->SetProperty("lexer.cpp.update.preprocessor", "0");
ProcessMacros(editor);
}
}
}
示例3: OnPageChanged
void MainBook::OnPageChanged(wxBookCtrlEvent& e)
{
e.Skip();
int newSel = e.GetSelection();
if(newSel != wxNOT_FOUND && m_reloadingDoRaise) {
wxWindow* win = m_book->GetPage((size_t)newSel);
if(win) {
SelectPage(win);
}
}
// Cancel any tooltip
LEditor::Vec_t editors;
GetAllEditors(editors, MainBook::kGetAll_IncludeDetached);
for(size_t i = 0; i < editors.size(); ++i) {
// Cancel any calltip when switching from the editor
editors.at(i)->DoCancelCalltip();
}
DoUpdateNotebookTheme();
}