| 202 | } |
| 203 | |
| 204 | void CModulePropertiesDlg::OnBnClickedSongInsert() // // // |
| 205 | { |
| 206 | // Try to add a track |
| 207 | unsigned int NewTrack = m_iSelectedSong + 1; // // // |
| 208 | if (!m_pModule->InsertSong(NewTrack, m_pModule->MakeNewSong())) |
| 209 | return; |
| 210 | m_pDocument->ModifyIrreversible(); // // // |
| 211 | m_pDocument->UpdateAllViews(NULL, UPDATE_TRACK); |
| 212 | |
| 213 | m_cListSongs.InsertItem(NewTrack, GetSongString(NewTrack)); |
| 214 | m_pModule->VisitSongs([&] (const CSongData &, unsigned index) { |
| 215 | m_cListSongs.SetItemText(index, 0, GetSongString(index)); |
| 216 | }); |
| 217 | |
| 218 | SelectSong(NewTrack); |
| 219 | } |
| 220 | |
| 221 | void CModulePropertiesDlg::OnBnClickedSongRemove() |
| 222 | { |
nothing calls this directly
no test coverage detected