-wxString wxLoadFileSelector( const wxChar *what, const wxChar *extension, const wxChar *default_name, wxWindow *parent )
-{
- wxChar *ext = (wxChar *)extension;
-
- wxChar prompt[50];
- wxString str = _("Load %s file");
- wxSprintf(prompt, str, what);
-
- if (*ext == _T('.')) ext++;
- wxChar wild[60];
- wxSprintf(wild, _T("*.%s"), ext);
-
- return wxFileSelector (prompt, (const wxChar *) NULL, default_name, ext, wild, 0, parent);
-}
-
-wxString wxSaveFileSelector(const wxChar *what, const wxChar *extension, const wxChar *default_name,
- wxWindow *parent )
-{
- wxChar *ext = (wxChar *)extension;
-
- wxChar prompt[50];
- wxString str = _("Save %s file");
- wxSprintf(prompt, str, what);
-
- if (*ext == _T('.')) ext++;
- wxChar wild[60];
- wxSprintf(wild, _T("*.%s"), ext);
-
- return wxFileSelector (prompt, (const wxChar *) NULL, default_name, ext, wild, 0, parent);
-}
-