1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Define AudacityTextEntryDialog wrapper around wxTextEntryDialog...

... Prohibiting use of the default caption which is unlocalized.  (But we
didn't use it in fact anywhere.)
This commit is contained in:
Paul Licameli
2017-10-12 11:49:57 -04:00
parent ccb4bbac33
commit af290d73c0
6 changed files with 24 additions and 5 deletions

View File

@@ -98,4 +98,23 @@ inline int AudacityMessageBox(const wxString& message,
return ::wxMessageBox(message, caption, style, parent, x, y);
}
// Similarly wrap wxTextEntryDialog, to prohibit the default,
// unlocalized caption
#include <wx/textdlg.h>
class AudacityTextEntryDialog : public wxTabTraversalWrapper< wxTextEntryDialog >
{
public:
AudacityTextEntryDialog(
wxWindow *parent,
const wxString& message,
const wxString& caption, // don't use = wxGetTextFromUserPromptStr,
const wxString& value = wxEmptyString,
long style = wxTextEntryDialogStyle,
const wxPoint& pos = wxDefaultPosition)
: wxTabTraversalWrapper< wxTextEntryDialog>
{ parent, message, caption, value, style, pos }
{}
};
#endif // __AUDACITY_ERRORDIALOG__