| 1520 | } |
| 1521 | |
| 1522 | void CFamiTrackerView::OnBookmarksNext() |
| 1523 | { |
| 1524 | if (FTEnv.GetSoundGenerator()->IsPlaying() && m_bFollowMode) |
| 1525 | return; |
| 1526 | |
| 1527 | CMainFrame *pMainFrame = static_cast<CMainFrame*>(GetParentFrame()); |
| 1528 | CBookmarkCollection &Col = static_cast<CMainFrame *>(GetParentFrame())->GetCurrentSong()->GetBookmarks(); |
| 1529 | |
| 1530 | if (CBookmark *pMark = Col.FindNext(GetSelectedFrame(), GetSelectedRow())) { |
| 1531 | SelectFrame(pMark->m_iFrame); |
| 1532 | SelectRow(pMark->m_iRow); |
| 1533 | pMainFrame->SetMessageText(AfxFormattedW(IDS_BOOKMARK_FORMAT, conv::to_wide(pMark->m_sName).data(), |
| 1534 | (pMark->m_Highlight.First != -1) ? FormattedW(L"%i", pMark->m_Highlight.First) : CStringW(L"None"), |
| 1535 | (pMark->m_Highlight.Second != -1) ? FormattedW(L"%i", pMark->m_Highlight.Second) : CStringW(L"None"))); |
| 1536 | pMainFrame->UpdateBookmarkList(Col.GetBookmarkIndex(pMark)); |
| 1537 | SetFocus(); |
| 1538 | } |
| 1539 | else { |
| 1540 | MessageBeep(MB_ICONINFORMATION); |
| 1541 | pMainFrame->SetMessageText(IDS_BOOKMARK_EMPTY); |
| 1542 | } |
| 1543 | } |
| 1544 | |
| 1545 | void CFamiTrackerView::OnBookmarksPrevious() |
| 1546 | { |
nothing calls this directly
no test coverage detected