1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-17 11:40:35 +02:00

Type alias ManualPageID for wxString used in many places...

... eliminating many direct mentions of wxString.  A real type distinction will
be made next.
This commit is contained in:
Paul Licameli
2021-06-06 12:18:35 -04:00
parent 3c50935484
commit cfbdd2d22e
137 changed files with 200 additions and 198 deletions

View File

@@ -52,7 +52,7 @@ ErrorDialog::ErrorDialog(
wxWindow *parent,
const TranslatableString & dlogTitle,
const TranslatableString & message,
const wxString & helpPage,
const ManualPageID & helpPage,
const wxString & log,
const bool Close, const bool modal)
: wxDialogWrapper(parent, wxID_ANY, dlogTitle,
@@ -152,7 +152,7 @@ void ErrorDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
void ShowErrorDialog(wxWindow *parent,
const TranslatableString &dlogTitle,
const TranslatableString &message,
const wxString &helpPage,
const ManualPageID &helpPage,
const bool Close,
const wxString &log)
{
@@ -178,7 +178,7 @@ void ShowExceptionDialog(
void ShowModelessErrorDialog(wxWindow *parent,
const TranslatableString &dlogTitle,
const TranslatableString &message,
const wxString &helpPage,
const ManualPageID &helpPage,
const bool Close,
const wxString &log)
{

View File

@@ -28,14 +28,14 @@ public:
ErrorDialog(wxWindow *parent,
const TranslatableString & dlogTitle,
const TranslatableString & message,
const wxString & helpPage,
const ManualPageID & helpPage,
const wxString & log,
const bool Close = true, const bool modal = true);
virtual ~ErrorDialog(){}
private:
wxString dhelpPage;
ManualPageID dhelpPage;
bool dClose;
bool dModal;
@@ -50,7 +50,7 @@ AUDACITY_DLL_API
void ShowErrorDialog(wxWindow *parent,
const TranslatableString &dlogTitle,
const TranslatableString &message,
const wxString &helpPage,
const ManualPageID &helpPage,
bool Close = true,
const wxString &log = {});
@@ -65,7 +65,7 @@ void ShowExceptionDialog(
void ShowModelessErrorDialog(wxWindow *parent,
const TranslatableString &dlogTitle,
const TranslatableString &message,
const wxString &helpPage,
const ManualPageID &helpPage,
bool Close = true,
const wxString &log = {});

View File

@@ -307,7 +307,7 @@ void HelpSystem::ShowHelp(wxWindow *parent,
}
void HelpSystem::ShowHelp(wxWindow *parent,
const wxString &PageName,
const ManualPageID &PageName,
bool bModal)
{
FilePath localHelpPage;

View File

@@ -88,7 +88,7 @@ public:
/// @param bModal Whether the resulting dialogue should be modal or not.
/// Default is modeless dialogue
static void ShowHelp(wxWindow *parent,
const wxString &PageName,
const ManualPageID &PageName,
bool bModal = false);
/// Hostname (domain name including subdomain) of the server on which the

View File

@@ -59,7 +59,7 @@ private:
void OnHelp(wxCommandEvent& event);
wxRadioBox* mRadioBox;
wxString mHelpPage;
ManualPageID mHelpPage;
DECLARE_EVENT_TABLE()
};