| 1977 | } |
| 1978 | |
| 1979 | void CMainFrame::OnFileExportText() |
| 1980 | { |
| 1981 | #ifdef DISABLE_SAVE // // // |
| 1982 | SetMessageText(IDS_DISABLE_SAVE); |
| 1983 | return; |
| 1984 | #endif |
| 1985 | |
| 1986 | CFamiTrackerDoc &Doc = GetDoc(); |
| 1987 | |
| 1988 | auto initPath = FTEnv.GetSettings()->GetPath(PATH_NSF); // // // |
| 1989 | if (auto path = GetSavePath(Doc.GetFileTitle(), initPath.c_str(), IDS_FILTER_TXT, L"*.txt")) { |
| 1990 | CTextExport Exporter; |
| 1991 | CStringA sResult = Exporter.ExportFile(*path, Doc); |
| 1992 | if (!sResult.IsEmpty()) |
| 1993 | AfxMessageBox(conv::to_wide(sResult).data(), MB_OK | MB_ICONERROR); |
| 1994 | Doc.UpdateAllViews(NULL, UPDATE_PROPERTIES); |
| 1995 | } |
| 1996 | } |
| 1997 | |
| 1998 | void CMainFrame::OnFileExportRows() // // // |
| 1999 | { |
nothing calls this directly
no test coverage detected