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

Method OnFileExportRows

Source/MainFrm.cpp:1998–2014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1996}
1997
1998void CMainFrame::OnFileExportRows() // // //
1999{
2000#ifdef DISABLE_SAVE // // //
2001 SetMessageText(IDS_DISABLE_SAVE);
2002 return;
2003#endif
2004
2005 CFamiTrackerDoc &Doc = GetDoc();
2006
2007 auto initPath = FTEnv.GetSettings()->GetPath(PATH_NSF); // // //
2008 if (auto path = GetSavePath(Doc.GetFileTitle(), initPath.c_str(), IDS_FILTER_CSV, L"*.csv")) {
2009 CTextExport Exporter;
2010 CStringA sResult = Exporter.ExportRows(*path, *Doc.GetModule());
2011 if (!sResult.IsEmpty())
2012 AfxMessageBox(conv::to_wide(sResult).data(), MB_OK | MB_ICONERROR);
2013 }
2014}
2015
2016void CMainFrame::OnFileExportJson() { // // //
2017#ifdef DISABLE_SAVE // // //

Callers

nothing calls this directly

Calls 9

GetSavePathFunction · 0.85
to_wideFunction · 0.85
GetPathMethod · 0.80
GetFileTitleMethod · 0.80
ExportRowsMethod · 0.80
GetModuleMethod · 0.80
IsEmptyMethod · 0.80
GetSettingsMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected