40 const std::vector<std::pair<wxString, wxString>>& aStale ) :
45 m_fileList->AppendColumn(
_(
"File" ), wxLIST_FORMAT_LEFT, 260 );
46 m_fileList->AppendColumn(
_(
"Saved version" ), wxLIST_FORMAT_LEFT, 150 );
47 m_fileList->AppendColumn(
_(
"Auto-saved copy" ), wxLIST_FORMAT_LEFT, 150 );
51 for(
const auto& [autosavePath, srcPath] :
m_stale )
53 wxFileName srcFn( srcPath );
54 wxFileName autosaveFn( autosavePath );
57 wxDateTime autosaveTime;
59 if( srcFn.FileExists() )
60 srcTime = srcFn.GetModificationTime();
62 if( autosaveFn.FileExists() )
63 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)