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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 = {});
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ void HelpSystem::ShowHelp(wxWindow *parent,
|
||||
}
|
||||
|
||||
void HelpSystem::ShowHelp(wxWindow *parent,
|
||||
const wxString &PageName,
|
||||
const ManualPageID &PageName,
|
||||
bool bModal)
|
||||
{
|
||||
FilePath localHelpPage;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -59,7 +59,7 @@ private:
|
||||
void OnHelp(wxCommandEvent& event);
|
||||
|
||||
wxRadioBox* mRadioBox;
|
||||
wxString mHelpPage;
|
||||
ManualPageID mHelpPage;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user