MCPcopy Create free account
hub / github.com/Rezonality/zep / SetCurrentTabWindow

Method SetCurrentTabWindow

src/editor.cpp:551–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551void ZepEditor::SetCurrentTabWindow(ZepTabWindow* pTabWindow)
552{
553 // Sanity
554 auto itr = std::find(m_tabWindows.begin(), m_tabWindows.end(), pTabWindow);
555 if (itr != m_tabWindows.end())
556 {
557 m_pActiveTabWindow = pTabWindow;
558
559 // Force a reactivation of the active window to ensure buffer setup is correct
560 m_pActiveTabWindow->SetActiveWindow(m_pActiveTabWindow->GetActiveWindow());
561 }
562}
563
564ZepTabWindow* ZepEditor::GetActiveTabWindow() const
565{

Callers 2

TickMethod · 0.80
HandleExCommandMethod · 0.80

Calls 4

SetActiveWindowMethod · 0.80
GetActiveWindowMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected