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

Method OnBnClickedSongInsert

Source/ModulePropertiesDlg.cpp:204–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void 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
221void CModulePropertiesDlg::OnBnClickedSongRemove()
222{

Callers

nothing calls this directly

Calls 4

InsertSongMethod · 0.80
MakeNewSongMethod · 0.80
ModifyIrreversibleMethod · 0.80
VisitSongsMethod · 0.80

Tested by

no test coverage detected