| 1543 | } |
| 1544 | |
| 1545 | void 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 | |
| 1568 | void CFamiTrackerView::OnEditSplitKeyboard() // // // |
| 1569 | { |
nothing calls this directly
no test coverage detected