MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnBookmarksPrevious

Method OnBookmarksPrevious

Source/FamiTrackerView.cpp:1545–1566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1543}
1544
1545void CFamiTrackerView::OnBookmarksPrevious()
1546{
1547 if (FTEnv.GetSoundGenerator()->IsPlaying() && m_bFollowMode)
1548 return;
1549
1550 CMainFrame *pMainFrame = static_cast<CMainFrame*>(GetParentFrame());
1551 CBookmarkCollection &Col = static_cast<CMainFrame *>(GetParentFrame())->GetCurrentSong()->GetBookmarks();
1552
1553 if (CBookmark *pMark = Col.FindPrevious(GetSelectedFrame(), GetSelectedRow())) {
1554 SelectFrame(pMark->m_iFrame);
1555 SelectRow(pMark->m_iRow);
1556 pMainFrame->SetMessageText(AfxFormattedW(IDS_BOOKMARK_FORMAT, conv::to_wide(pMark->m_sName).data(),
1557 (pMark->m_Highlight.First != -1) ? FormattedW(L"%i", pMark->m_Highlight.First) : CStringW(L"None"),
1558 (pMark->m_Highlight.Second != -1) ? FormattedW(L"%i", pMark->m_Highlight.Second) : CStringW(L"None")));
1559 pMainFrame->UpdateBookmarkList(Col.GetBookmarkIndex(pMark));
1560 SetFocus();
1561 }
1562 else {
1563 MessageBeep(MB_ICONINFORMATION);
1564 pMainFrame->SetMessageText(IDS_BOOKMARK_EMPTY);
1565 }
1566}
1567
1568void CFamiTrackerView::OnEditSplitKeyboard() // // //
1569{

Callers

nothing calls this directly

Calls 10

AfxFormattedWFunction · 0.85
to_wideFunction · 0.85
FormattedWFunction · 0.85
FindPreviousMethod · 0.80
GetBookmarkIndexMethod · 0.80
IsPlayingMethod · 0.45
GetSoundGeneratorMethod · 0.45
GetCurrentSongMethod · 0.45
dataMethod · 0.45
UpdateBookmarkListMethod · 0.45

Tested by

no test coverage detected