added wxOPEN/SAVE flags to wxDefaultFileSelector

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-17 09:03:30 +00:00
parent 8d75348894
commit b121fa31ec

View File

@@ -482,8 +482,10 @@ wxString wxDefaultFileSelector(bool load,
{ {
wxString prompt; wxString prompt;
wxString str; wxString str;
if (load) str = _("Load %s file"); if (load)
else str = _("Save %s file"); str = _("Load %s file");
else
str = _("Save %s file");
prompt.Printf(str, what); prompt.Printf(str, what);
const wxChar *ext = extension; const wxChar *ext = extension;
@@ -493,7 +495,8 @@ wxString wxDefaultFileSelector(bool load,
wxString wild; wxString wild;
wild.Printf(wxT("*.%s"), ext); wild.Printf(wxT("*.%s"), ext);
return wxFileSelector (prompt, NULL, default_name, ext, wild, 0, parent); return wxFileSelector(prompt, NULL, default_name, ext, wild,
load ? wxOPEN : wxSAVE, parent);
} }
// Generic file load dialog // Generic file load dialog