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