36 const std::vector<std::pair<wxString, wxString>>& aStale ) :
41 m_fileList->AppendColumn(
_(
"File" ), wxLIST_FORMAT_LEFT, 260 );
42 m_fileList->AppendColumn(
_(
"Saved version" ), wxLIST_FORMAT_LEFT, 150 );
43 m_fileList->AppendColumn(
_(
"Auto-saved copy" ), wxLIST_FORMAT_LEFT, 150 );
47 for(
const auto& [autosavePath, srcPath] :
m_stale )
49 wxFileName srcFn( srcPath );
50 wxFileName autosaveFn( autosavePath );
53 wxDateTime autosaveTime;
55 if( srcFn.FileExists() )
56 srcTime = srcFn.GetModificationTime();
58 if( autosaveFn.FileExists() )
59 autosaveTime = autosaveFn.GetModificationTime();
DIALOG_AUTOSAVE_RECOVERY_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Auto-Save Recovery"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(600, 400), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)