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

Method OnDeepCloneInstrument

Source/MainFrm.cpp:1199–1214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197}
1198
1199void CMainFrame::OnDeepCloneInstrument()
1200{
1201 CFamiTrackerDoc &Doc = GetDoc();
1202
1203 // No instruments in list
1204 if (m_pInstrumentList->GetItemCount() == 0)
1205 return;
1206
1207 auto Manager = Doc.GetModule()->GetInstrumentManager(); // // //
1208 if (Manager->DeepCloneInstrument(m_iInstrument, Manager->GetFirstUnused())) {
1209 Doc.ModifyIrreversible(); // // //
1210 Doc.UpdateAllViews(NULL, UPDATE_INSTRUMENT);
1211 }
1212 else
1213 AfxMessageBox(IDS_INST_LIMIT, MB_ICONERROR);
1214}
1215
1216void CMainFrame::OnBnClickedEditInst()
1217{

Callers

nothing calls this directly

Calls 6

GetModuleMethod · 0.80
DeepCloneInstrumentMethod · 0.80
GetFirstUnusedMethod · 0.80
ModifyIrreversibleMethod · 0.80
GetItemCountMethod · 0.45
GetInstrumentManagerMethod · 0.45

Tested by

no test coverage detected