Merge pull request #1209 from Paul-Licameli/Preliminaries-for-lib-basic-ui

Preliminaries for lib basic UI (string types)
This commit is contained in:
Paul Licameli 2021-07-02 09:39:36 -04:00 committed by GitHub
commit 29a1ae6faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
152 changed files with 294 additions and 269 deletions

View File

@ -232,5 +232,8 @@ struct CommandIdTag;
using CommandID = TaggedIdentifier< CommandIdTag, false >; using CommandID = TaggedIdentifier< CommandIdTag, false >;
using CommandIDs = std::vector<CommandID>; using CommandIDs = std::vector<CommandID>;
struct ManualPageIDTag;
using ManualPageID = TaggedIdentifier< ManualPageIDTag >;
#endif #endif

View File

@ -173,7 +173,7 @@ void MacroCommandDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
void MacroCommandDialog::OnHelp(wxCommandEvent & WXUNUSED(event)) void MacroCommandDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
{ {
wxString page = GetHelpPageName(); const auto &page = GetHelpPageName();
HelpSystem::ShowHelp(this, page, true); HelpSystem::ShowHelp(this, page, true);
} }

View File

@ -42,7 +42,7 @@ class MacroCommandDialog final : public wxDialogWrapper {
void OnCancel(wxCommandEvent &event); void OnCancel(wxCommandEvent &event);
void OnHelp(wxCommandEvent &event); void OnHelp(wxCommandEvent &event);
void OnItemSelected(wxListEvent &event); void OnItemSelected(wxListEvent &event);
wxString GetHelpPageName() { return wxT("Scripting Reference") ; } ManualPageID GetHelpPageName() { return L"Scripting Reference" ; }
void ValidateChoices(); void ValidateChoices();
void PopulateCommandList(); void PopulateCommandList();

View File

@ -222,7 +222,7 @@ void ApplyMacroDialog::PopulateMacros()
void ApplyMacroDialog::OnHelp(wxCommandEvent & WXUNUSED(event)) void ApplyMacroDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
{ {
wxString page = GetHelpPageName(); const auto &page = GetHelpPageName();
HelpSystem::ShowHelp(this, page, true); HelpSystem::ShowHelp(this, page, true);
} }

View File

@ -41,7 +41,7 @@ class ApplyMacroDialog : public wxDialogWrapper {
virtual void OnCancel(wxCommandEvent & event); virtual void OnCancel(wxCommandEvent & event);
virtual void OnHelp(wxCommandEvent & event); virtual void OnHelp(wxCommandEvent & event);
virtual wxString GetHelpPageName() {return "Apply_Macro";}; virtual ManualPageID GetHelpPageName() {return "Apply_Macro";}
void PopulateMacros(); void PopulateMacros();
static CommandID MacroIdOfName( const wxString & MacroName ); static CommandID MacroIdOfName( const wxString & MacroName );
@ -87,9 +87,9 @@ private:
void OnApplyToFiles(wxCommandEvent & event) override; void OnApplyToFiles(wxCommandEvent & event) override;
void OnCancel(wxCommandEvent &event) override; void OnCancel(wxCommandEvent &event) override;
virtual wxString GetHelpPageName() override {return virtual ManualPageID GetHelpPageName() override {return
mbExpanded ? "Manage_Macros" mbExpanded ? "Manage_Macros"
: "Apply_Macro";}; : "Apply_Macro";}
void PopulateList(); void PopulateList();
void AddItem(const CommandID &command, wxString const &params); void AddItem(const CommandID &command, wxString const &params);

View File

@ -538,7 +538,7 @@ public:
void OnDownload(wxCommandEvent & WXUNUSED(event)) void OnDownload(wxCommandEvent & WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("FAQ:Installing_the_FFmpeg_Import_Export_Library")); HelpSystem::ShowHelp(this, L"FAQ:Installing_the_FFmpeg_Import_Export_Library");
} }
wxString GetLibPath() wxString GetLibPath()

View File

@ -550,7 +550,7 @@ void FrequencyPlotDialog::OnGetURL(wxCommandEvent & WXUNUSED(event))
{ {
// Original help page is back on-line (March 2016), but the manual should be more reliable. // Original help page is back on-line (March 2016), but the manual should be more reliable.
// http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm // http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm
HelpSystem::ShowHelp(this, wxT("Plot Spectrum")); HelpSystem::ShowHelp(this, L"Plot Spectrum");
} }
bool FrequencyPlotDialog::Show(bool show) bool FrequencyPlotDialog::Show(bool show)

View File

@ -387,12 +387,13 @@ const wxString VerCheckArgs(){
} }
// Text of hyperlink to check versions. // Text of hyperlink to check versions.
const wxString VerCheckHtml(){ const wxString VerCheckHtml()
{
wxStringOutputStream o; wxStringOutputStream o;
wxTextOutputStream s(o); wxTextOutputStream s(o);
s s
<< "<center>[[" << "<center>[["
<< VerCheckUrl() << VerCheckUrl().GET()
<< "|" << "|"
<< XO("Check Online") << XO("Check Online")
<< "]]</center>\n"; << "]]</center>\n";
@ -400,7 +401,8 @@ const wxString VerCheckHtml(){
} }
// Url with Version check args attached. // Url with Version check args attached.
const wxString VerCheckUrl(){ const URLString VerCheckUrl()
{
//The version we intend to use for live Audacity. //The version we intend to use for live Audacity.
#define VER_CHECK_URL "https://www.audacityteam.org/download/?" #define VER_CHECK_URL "https://www.audacityteam.org/download/?"
//For testing of our scriptlet. //For testing of our scriptlet.

View File

@ -13,12 +13,17 @@
class TranslatableString; class TranslatableString;
class wxString; class wxString;
#include "Identifier.h"
struct URLStringTag;
//! Distinct type for URLs
using URLString = TaggedIdentifier< URLStringTag >;
AUDACITY_DLL_API wxString HelpText( const wxString & Key ); AUDACITY_DLL_API wxString HelpText( const wxString & Key );
AUDACITY_DLL_API TranslatableString TitleText( const wxString & Key ); AUDACITY_DLL_API TranslatableString TitleText( const wxString & Key );
extern AUDACITY_DLL_API const wxString VerCheckArgs(); extern AUDACITY_DLL_API const wxString VerCheckArgs();
extern AUDACITY_DLL_API const wxString VerCheckUrl(); extern AUDACITY_DLL_API const URLString VerCheckUrl();
extern AUDACITY_DLL_API const wxString VerCheckHtml(); extern AUDACITY_DLL_API const wxString VerCheckHtml();
extern AUDACITY_DLL_API wxString FormatHtmlText( const wxString & Text ); extern AUDACITY_DLL_API wxString FormatHtmlText( const wxString & Text );

View File

@ -313,7 +313,7 @@ void HistoryDialog::OnCompact(wxCommandEvent & WXUNUSED(event))
void HistoryDialog::OnGetURL(wxCommandEvent & WXUNUSED(event)) void HistoryDialog::OnGetURL(wxCommandEvent & WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("Undo,_Redo_and_History")); HelpSystem::ShowHelp(this, L"Undo,_Redo_and_History");
} }
void HistoryDialog::OnItemSelected(wxListEvent &event) void HistoryDialog::OnItemSelected(wxListEvent &event)

View File

@ -285,7 +285,7 @@ void LabelDialog::PopulateOrExchange( ShuttleGui & S )
void LabelDialog::OnHelp(wxCommandEvent & WXUNUSED(event)) void LabelDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
{ {
wxString page = GetHelpPageName(); const auto &page = GetHelpPageName();
HelpSystem::ShowHelp(this, page, true); HelpSystem::ShowHelp(this, page, true);
} }

View File

@ -60,8 +60,8 @@ class LabelDialog final : public wxDialogWrapper
void Populate(); void Populate();
void PopulateOrExchange( ShuttleGui & S ); void PopulateOrExchange( ShuttleGui & S );
void PopulateLabels(); void PopulateLabels();
virtual void OnHelp(wxCommandEvent & event); void OnHelp(wxCommandEvent & event);
virtual wxString GetHelpPageName() {return "Labels_Editor";}; ManualPageID GetHelpPageName() {return "Labels_Editor";}
bool TransferDataToWindow() override; bool TransferDataToWindow() override;
bool TransferDataFromWindow() override; bool TransferDataFromWindow() override;

View File

@ -19,6 +19,7 @@ Paul Licameli split from AudacityProject.cpp
#include <wx/xml/xml.h> #include <wx/xml/xml.h>
#include "ActiveProjects.h" #include "ActiveProjects.h"
#include "CodeConversions.h"
#include "DBConnection.h" #include "DBConnection.h"
#include "Project.h" #include "Project.h"
#include "ProjectFileIORegistry.h" #include "ProjectFileIORegistry.h"
@ -2316,7 +2317,8 @@ void ProjectFileIO::ShowError(wxWindow *parent,
const TranslatableString &message, const TranslatableString &message,
const wxString &helpPage) const wxString &helpPage)
{ {
ShowExceptionDialog(parent, dlogTitle, message, helpPage, true, GetLastLog()); ShowExceptionDialog(parent, dlogTitle, message, helpPage, true,
audacity::ToWString(GetLastLog()));
} }
const TranslatableString &ProjectFileIO::GetLastError() const const TranslatableString &ProjectFileIO::GetLastError() const

View File

@ -17,6 +17,7 @@ Paul Licameli split from AudacityProject.cpp
#endif #endif
#include <wx/frame.h> #include <wx/frame.h>
#include "CodeConversions.h"
#include "Legacy.h" #include "Legacy.h"
#include "PlatformCompatibility.h" #include "PlatformCompatibility.h"
#include "Project.h" #include "Project.h"
@ -776,7 +777,7 @@ bool ProjectFileManager::OpenNewProject()
XO("Error opening a new empty project"), XO("Error opening a new empty project"),
"FAQ:Errors_opening_a_new_empty_project", "FAQ:Errors_opening_a_new_empty_project",
true, true,
projectFileIO.GetLastLog()); audacity::ToWString(projectFileIO.GetLastLog()));
} }
return bOK; return bOK;
} }
@ -1362,7 +1363,7 @@ public:
void OnGetURL(wxCommandEvent &WXUNUSED(evt)) void OnGetURL(wxCommandEvent &WXUNUSED(evt))
{ {
HelpSystem::ShowHelp(this, wxT("File_Menu:_Compact_Project"), true); HelpSystem::ShowHelp(this, L"File_Menu:_Compact_Project", true);
} }
}; };
} }

View File

@ -559,7 +559,7 @@ void ScreenshotBigDialog::OnClose(wxCommandEvent & WXUNUSED(event))
void ScreenshotBigDialog::OnGetURL(wxCommandEvent & WXUNUSED(event)) void ScreenshotBigDialog::OnGetURL(wxCommandEvent & WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("Screenshot")); HelpSystem::ShowHelp(this, L"Screenshot");
} }
void ScreenshotBigDialog::OnUIUpdate(wxUpdateUIEvent & WXUNUSED(event)) void ScreenshotBigDialog::OnUIUpdate(wxUpdateUIEvent & WXUNUSED(event))

View File

@ -972,7 +972,7 @@ void TagsEditorDialog::OnDontShow( wxCommandEvent & Evt )
void TagsEditorDialog::OnHelp(wxCommandEvent& WXUNUSED(event)) void TagsEditorDialog::OnHelp(wxCommandEvent& WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("Metadata_Editor"), true); HelpSystem::ShowHelp(this, L"Metadata_Editor", true);
} }
bool TagsEditorDialog::TransferDataFromWindow() bool TagsEditorDialog::TransferDataFromWindow()

View File

@ -363,7 +363,7 @@ void TimerRecordDialog::OnAutoExportCheckBox_Change(wxCommandEvent& WXUNUSED(eve
void TimerRecordDialog::OnHelpButtonClick(wxCommandEvent& WXUNUSED(event)) void TimerRecordDialog::OnHelpButtonClick(wxCommandEvent& WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("Timer_Record"), true); HelpSystem::ShowHelp(this, L"Timer_Record", true);
} }
void TimerRecordDialog::OnOK(wxCommandEvent& WXUNUSED(event)) void TimerRecordDialog::OnOK(wxCommandEvent& WXUNUSED(event))

View File

@ -65,7 +65,7 @@ class AUDACITY_DLL_API AudacityCommand /* not final */ : public wxEvtHandler,
{wxFAIL_MSG( "Implement a Description for this command");return XO("FAIL");}; {wxFAIL_MSG( "Implement a Description for this command");return XO("FAIL");};
// Name of page in the Audacity alpha manual // Name of page in the Audacity alpha manual
virtual wxString ManualPage(){ return wxEmptyString;}; virtual ManualPageID ManualPage(){ return {}; }
virtual bool IsBatchProcessing(){ return mIsBatch;} virtual bool IsBatchProcessing(){ return mIsBatch;}
virtual void SetBatchProcessing(bool start){ mIsBatch = start;}; virtual void SetBatchProcessing(bool start){ mIsBatch = start;};

View File

@ -35,7 +35,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#compare_Audio");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#compare_Audio";}
bool Apply(const CommandContext &context) override; bool Apply(const CommandContext &context) override;

View File

@ -29,7 +29,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I";}
private: private:
double delay; double delay;

View File

@ -32,7 +32,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#move_mouse");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#move_mouse";}
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;

View File

@ -38,7 +38,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#get_info");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#get_info";}
bool Apply(const CommandContext &context) override; bool Apply(const CommandContext &context) override;
bool ApplyInner(const CommandContext &context); bool ApplyInner(const CommandContext &context);

View File

@ -32,7 +32,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Tools#get_track_info");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Tools#get_track_info";}
bool Apply(const CommandContext &context ) override; bool Apply(const CommandContext &context ) override;
public: public:

View File

@ -38,7 +38,7 @@ public:
bool ApplyInner(const CommandContext & context); bool ApplyInner(const CommandContext & context);
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#help");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#help";}
public: public:
wxString mCommandName; wxString mCommandName;
}; };
@ -58,7 +58,7 @@ public:
return true; return true;
}; };
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#comment");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#comment";}
public: public:
wxString mComment; wxString mComment;
}; };

View File

@ -36,7 +36,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#import");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#import";}
public: public:
wxString mFileName; wxString mFileName;
}; };
@ -54,7 +54,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#export");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#export";}
public: public:
wxString mFileName; wxString mFileName;
int mnChannels; int mnChannels;

View File

@ -37,7 +37,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#message");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#message";}
public: public:
wxString mMessage; wxString mMessage;
}; };

View File

@ -40,7 +40,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#open_project");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#open_project";}
public: public:
wxString mFileName; wxString mFileName;
bool mbAddToHistory; bool mbAddToHistory;
@ -60,7 +60,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#save_project");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#save_project";}
public: public:
wxString mFileName; wxString mFileName;
bool mbAddToHistory; bool mbAddToHistory;
@ -80,7 +80,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#save_copy");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#save_copy";}
public: public:
wxString mFileName; wxString mFileName;
}; };
@ -98,7 +98,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#save_log");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#save_log";}
public: public:
wxString mFileName; wxString mFileName;
}; };
@ -116,7 +116,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#Clear_log");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#Clear_log";}
public: public:
wxString mFileName; wxString mFileName;
}; };

View File

@ -39,7 +39,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#get_preference");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#get_preference";}
wxString mName; wxString mName;
}; };
@ -59,7 +59,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_preference");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_preference";}
wxString mName; wxString mName;
wxString mValue; wxString mValue;

View File

@ -87,7 +87,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#screenshot_short_format");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#screenshot_short_format";}
private: private:
int mWhat; int mWhat;

View File

@ -37,7 +37,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#select_time");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#select_time";}
bool bHasT0; bool bHasT0;
bool bHasT1; bool bHasT1;
@ -63,7 +63,7 @@ public:
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#select_frequencies");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#select_frequencies";}
bool bHasBottom; bool bHasBottom;
bool bHasTop; bool bHasTop;
@ -85,7 +85,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#select_tracks");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#select_tracks";}
bool bHasFirstTrack; bool bHasFirstTrack;
bool bHasNumTracks; bool bHasNumTracks;
@ -123,7 +123,7 @@ public:
mSelTracks.Apply(context); mSelTracks.Apply(context);
} }
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#select");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#select";}
private: private:
SelectTimeCommand mSelTime; SelectTimeCommand mSelTime;
SelectFrequenciesCommand mSelFreq; SelectFrequenciesCommand mSelFreq;

View File

@ -31,7 +31,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_clip");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_clip";}
bool ApplyInner( const CommandContext & context, Track * t ) override; bool ApplyInner( const CommandContext & context, Track * t ) override;
public: public:

View File

@ -31,7 +31,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_envelope");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_envelope";}
bool ApplyInner( const CommandContext & context, Track * t ) override; bool ApplyInner( const CommandContext & context, Track * t ) override;
public: public:

View File

@ -32,7 +32,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_label");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_label";}
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;

View File

@ -33,7 +33,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_project");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_project";}
bool Apply(const CommandContext & context) override; bool Apply(const CommandContext & context) override;

View File

@ -54,7 +54,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_track_status");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_track_status";}
bool ApplyInner( const CommandContext & context, Track * t ) override; bool ApplyInner( const CommandContext & context, Track * t ) override;
public: public:
@ -81,7 +81,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_track_audio");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_track_audio";}
bool ApplyInner( const CommandContext & context, Track * t ) override; bool ApplyInner( const CommandContext & context, Track * t ) override;
public: public:
@ -110,7 +110,7 @@ public:
void PopulateOrExchange(ShuttleGui & S) override; void PopulateOrExchange(ShuttleGui & S) override;
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I#set_track_visuals");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_track_visuals";}
bool ApplyInner( const CommandContext & context, Track * t ) override; bool ApplyInner( const CommandContext & context, Track * t ) override;
public: public:
@ -150,7 +150,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override {return Symbol;}; ComponentInterfaceSymbol GetSymbol() override {return Symbol;};
TranslatableString GetDescription() override {return XO("Sets various values for a track.");}; TranslatableString GetDescription() override {return XO("Sets various values for a track.");};
// AudacityCommand overrides // AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#set_track");}; ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#set_track";}
public: public:

View File

@ -99,9 +99,9 @@ TranslatableString EffectAmplify::GetDescription()
return XO("Increases or decreases the volume of the audio you have selected"); return XO("Increases or decreases the volume of the audio you have selected");
} }
wxString EffectAmplify::ManualPage() ManualPageID EffectAmplify::ManualPage()
{ {
return wxT("Amplify"); return L"Amplify";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -35,7 +35,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -118,9 +118,9 @@ TranslatableString EffectAutoDuck::GetDescription()
return XO("Reduces (ducks) the volume of one or more tracks whenever the volume of a specified \"control\" track reaches a particular level"); return XO("Reduces (ducks) the volume of one or more tracks whenever the volume of a specified \"control\" track reaches a particular level");
} }
wxString EffectAutoDuck::ManualPage() ManualPageID EffectAutoDuck::ManualPage()
{ {
return wxT("Auto_Duck"); return L"Auto_Duck";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -32,7 +32,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -98,9 +98,9 @@ TranslatableString EffectBassTreble::GetDescription()
return XO("Simple tone control effect"); return XO("Simple tone control effect");
} }
wxString EffectBassTreble::ManualPage() ManualPageID EffectBassTreble::ManualPage()
{ {
return wxT("Bass_and_Treble"); return L"Bass_and_Treble";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -45,7 +45,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -150,9 +150,9 @@ TranslatableString EffectChangePitch::GetDescription()
return XO("Changes the pitch of a track without changing its tempo"); return XO("Changes the pitch of a track without changing its tempo");
} }
wxString EffectChangePitch::ManualPage() ManualPageID EffectChangePitch::ManualPage()
{ {
return wxT("Change_Pitch"); return L"Change_Pitch";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -46,7 +46,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -123,9 +123,9 @@ TranslatableString EffectChangeSpeed::GetDescription()
return XO("Changes the speed of a track, also changing its pitch"); return XO("Changes the speed of a track, also changing its pitch");
} }
wxString EffectChangeSpeed::ManualPage() ManualPageID EffectChangeSpeed::ManualPage()
{ {
return wxT("Change_Speed"); return L"Change_Speed";
} }

View File

@ -33,7 +33,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -124,9 +124,9 @@ TranslatableString EffectChangeTempo::GetDescription()
return XO("Changes the tempo of a selection without changing its pitch"); return XO("Changes the tempo of a selection without changing its pitch");
} }
wxString EffectChangeTempo::ManualPage() ManualPageID EffectChangeTempo::ManualPage()
{ {
return wxT("Change_Tempo"); return L"Change_Tempo";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -40,7 +40,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -93,9 +93,9 @@ TranslatableString EffectClickRemoval::GetDescription()
return XO("Click Removal is designed to remove clicks on audio tracks"); return XO("Click Removal is designed to remove clicks on audio tracks");
} }
wxString EffectClickRemoval::ManualPage() ManualPageID EffectClickRemoval::ManualPage()
{ {
return wxT("Click_Removal"); return L"Click_Removal";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -35,7 +35,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -115,9 +115,9 @@ TranslatableString EffectCompressor::GetDescription()
return XO("Compresses the dynamic range of audio"); return XO("Compresses the dynamic range of audio");
} }
wxString EffectCompressor::ManualPage() ManualPageID EffectCompressor::ManualPage()
{ {
return wxT("Compressor"); return L"Compressor";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -31,7 +31,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -361,7 +361,7 @@ void ContrastDialog::OnGetURL(wxCommandEvent & WXUNUSED(event))
{ {
// Original help page is back on-line (March 2016), but the manual should be more reliable. // Original help page is back on-line (March 2016), but the manual should be more reliable.
// http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm // http://www.eramp.com/WCAG_2_audio_contrast_tool_help.htm
HelpSystem::ShowHelp(this, wxT("Contrast")); HelpSystem::ShowHelp(this, L"Contrast");
} }
void ContrastDialog::OnClose(wxCommandEvent & WXUNUSED(event)) void ContrastDialog::OnClose(wxCommandEvent & WXUNUSED(event))

View File

@ -198,9 +198,9 @@ TranslatableString EffectDistortion::GetDescription()
return XO("Waveshaping distortion effect"); return XO("Waveshaping distortion effect");
} }
wxString EffectDistortion::ManualPage() ManualPageID EffectDistortion::ManualPage()
{ {
return wxT("Distortion"); return L"Distortion";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -65,7 +65,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -110,9 +110,9 @@ TranslatableString EffectDtmf::GetDescription()
return XO("Generates dual-tone multi-frequency (DTMF) tones like those produced by the keypad on telephones"); return XO("Generates dual-tone multi-frequency (DTMF) tones like those produced by the keypad on telephones");
} }
wxString EffectDtmf::ManualPage() ManualPageID EffectDtmf::ManualPage()
{ {
return wxT("DTMF_Tones"); return L"DTMF_Tones";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -34,7 +34,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -67,9 +67,9 @@ TranslatableString EffectEcho::GetDescription()
return XO("Repeats the selected audio again and again"); return XO("Repeats the selected audio again and again");
} }
wxString EffectEcho::ManualPage() ManualPageID EffectEcho::ManualPage()
{ {
return wxT("Echo"); return L"Echo";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -28,7 +28,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -1168,14 +1168,14 @@ bool Effect::HasFactoryDefaults()
return HasPrivateConfigGroup(GetFactoryDefaultsGroup()); return HasPrivateConfigGroup(GetFactoryDefaultsGroup());
} }
wxString Effect::ManualPage() ManualPageID Effect::ManualPage()
{ {
return wxEmptyString; return {};
} }
wxString Effect::HelpPage() FilePath Effect::HelpPage()
{ {
return wxEmptyString; return {};
} }
void Effect::SetUIFlags(unsigned flags) { void Effect::SetUIFlags(unsigned flags) {

View File

@ -237,9 +237,9 @@ class AUDACITY_DLL_API Effect /* not final */ : public wxEvtHandler,
virtual bool HasFactoryDefaults(); virtual bool HasFactoryDefaults();
// Name of page in the Audacity alpha manual // Name of page in the Audacity alpha manual
virtual wxString ManualPage(); virtual ManualPageID ManualPage();
// Fully qualified local help file name // Fully qualified local help file name
virtual wxString HelpPage(); virtual FilePath HelpPage();
virtual void SetUIFlags(unsigned flags); virtual void SetUIFlags(unsigned flags);
virtual unsigned TestUIFlags(unsigned mask); virtual unsigned TestUIFlags(unsigned mask);

View File

@ -135,7 +135,7 @@ TranslatableString EffectManager::GetCommandDescription(const PluginID & ID)
return {}; return {};
} }
wxString EffectManager::GetCommandUrl(const PluginID & ID) ManualPageID EffectManager::GetCommandUrl(const PluginID & ID)
{ {
Effect* pEff = GetEffect(ID); Effect* pEff = GetEffect(ID);
if( pEff ) if( pEff )
@ -190,7 +190,8 @@ void EffectManager::GetCommandDefinition(const PluginID & ID, const CommandConte
S.EndArray(); S.EndArray();
S.EndField(); S.EndField();
} }
S.AddItem( GetCommandUrl( ID ), "url" ); // use GET() to expose some details to macro programming users
S.AddItem( GetCommandUrl( ID ).GET(), "url" );
// The tip is a translated string! // The tip is a translated string!
S.AddItem( GetCommandTip( ID ).Translation(), "tip" ); S.AddItem( GetCommandTip( ID ).Translation(), "tip" );
S.EndStruct(); S.EndStruct();

View File

@ -96,7 +96,7 @@ public:
TranslatableString GetCommandName(const PluginID & ID); TranslatableString GetCommandName(const PluginID & ID);
CommandID GetCommandIdentifier(const PluginID & ID); CommandID GetCommandIdentifier(const PluginID & ID);
TranslatableString GetCommandDescription(const PluginID & ID); TranslatableString GetCommandDescription(const PluginID & ID);
wxString GetCommandUrl(const PluginID & ID); ManualPageID GetCommandUrl(const PluginID & ID);
TranslatableString GetCommandTip(const PluginID & ID); TranslatableString GetCommandTip(const PluginID & ID);
// flags control which commands are included. // flags control which commands are included.
void GetCommandDefinition(const PluginID & ID, const CommandContext & context, int flags); void GetCommandDefinition(const PluginID & ID, const CommandContext & context, int flags);

View File

@ -348,14 +348,14 @@ TranslatableString EffectEqualization::GetDescription()
return XO("Adjusts the volume levels of particular frequencies"); return XO("Adjusts the volume levels of particular frequencies");
} }
wxString EffectEqualization::ManualPage() ManualPageID EffectEqualization::ManualPage()
{ {
// Bug 2509: Must use _ and not space in names. // Bug 2509: Must use _ and not space in names.
if( mOptions == kEqOptionGraphic ) if( mOptions == kEqOptionGraphic )
return wxT("Graphic_EQ"); return L"Graphic_EQ";
if( mOptions == kEqOptionCurve ) if( mOptions == kEqOptionCurve )
return wxT("Filter_Curve_EQ"); return L"Filter_Curve_EQ";
return wxT("Equalization"); return L"Equalization";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -103,7 +103,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -68,9 +68,9 @@ TranslatableString EffectFindClipping::GetDescription()
return XO("Creates labels where clipping is detected"); return XO("Creates labels where clipping is detected");
} }
wxString EffectFindClipping::ManualPage() ManualPageID EffectFindClipping::ManualPage()
{ {
return wxT("Find_Clipping"); return L"Find_Clipping";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -30,7 +30,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -93,9 +93,9 @@ TranslatableString EffectLoudness::GetDescription()
return XO("Sets the loudness of one or more tracks"); return XO("Sets the loudness of one or more tracks");
} }
wxString EffectLoudness::ManualPage() ManualPageID EffectLoudness::ManualPage()
{ {
return wxT("Loudness_Normalization"); return L"Loudness_Normalization";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -38,7 +38,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -91,9 +91,9 @@ TranslatableString EffectNoise::GetDescription()
return XO("Generates one of three different types of noise"); return XO("Generates one of three different types of noise");
} }
wxString EffectNoise::ManualPage() ManualPageID EffectNoise::ManualPage()
{ {
return wxT("Noise"); return L"Noise";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -30,7 +30,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -78,9 +78,9 @@ TranslatableString EffectNormalize::GetDescription()
return XO("Sets the peak amplitude of one or more tracks"); return XO("Sets the peak amplitude of one or more tracks");
} }
wxString EffectNormalize::ManualPage() ManualPageID EffectNormalize::ManualPage()
{ {
return wxT("Normalize"); return L"Normalize";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -32,7 +32,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -117,9 +117,9 @@ TranslatableString EffectPaulstretch::GetDescription()
return XO("Paulstretch is only for an extreme time-stretch or \"stasis\" effect"); return XO("Paulstretch is only for an extreme time-stretch or \"stasis\" effect");
} }
wxString EffectPaulstretch::ManualPage() ManualPageID EffectPaulstretch::ManualPage()
{ {
return wxT("Paulstretch"); return L"Paulstretch";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -26,7 +26,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -115,9 +115,9 @@ TranslatableString EffectPhaser::GetDescription()
return XO("Combines phase-shifted signals with the original signal"); return XO("Combines phase-shifted signals with the original signal");
} }
wxString EffectPhaser::ManualPage() ManualPageID EffectPhaser::ManualPage()
{ {
return wxT("Phaser"); return L"Phaser";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -51,7 +51,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -75,9 +75,9 @@ TranslatableString EffectRepeat::GetDescription()
return XO("Repeats the selection the specified number of times"); return XO("Repeats the selection the specified number of times");
} }
wxString EffectRepeat::ManualPage() ManualPageID EffectRepeat::ManualPage()
{ {
return wxT("Repeat"); return L"Repeat";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -30,7 +30,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -149,9 +149,9 @@ TranslatableString EffectReverb::GetDescription()
return XO("Adds ambience or a \"hall effect\""); return XO("Adds ambience or a \"hall effect\"");
} }
wxString EffectReverb::ManualPage() ManualPageID EffectReverb::ManualPage()
{ {
return wxT("Reverb"); return L"Reverb";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -47,7 +47,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -192,9 +192,9 @@ TranslatableString EffectScienFilter::GetDescription()
return XO("Performs IIR filtering that emulates analog filters"); return XO("Performs IIR filtering that emulates analog filters");
} }
wxString EffectScienFilter::ManualPage() ManualPageID EffectScienFilter::ManualPage()
{ {
return wxT("Classic_Filters"); return L"Classic_Filters";
} }

View File

@ -41,7 +41,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -50,9 +50,9 @@ TranslatableString EffectSilence::GetDescription()
return XO("Creates audio of zero amplitude"); return XO("Creates audio of zero amplitude");
} }
wxString EffectSilence::ManualPage() ManualPageID EffectSilence::ManualPage()
{ {
return wxT("Silence"); return L"Silence";
} }

View File

@ -29,7 +29,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -101,9 +101,9 @@ TranslatableString EffectTimeScale::GetDescription()
return XO("Allows continuous changes to the tempo and/or pitch"); return XO("Allows continuous changes to the tempo and/or pitch");
} }
wxString EffectTimeScale::ManualPage() ManualPageID EffectTimeScale::ManualPage()
{ {
return wxT("Sliding_Stretch"); return L"Sliding_Stretch";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -33,7 +33,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -139,11 +139,11 @@ TranslatableString EffectToneGen::GetDescription()
: XO("Generates a constant frequency tone of one of four types"); : XO("Generates a constant frequency tone of one of four types");
} }
wxString EffectToneGen::ManualPage() ManualPageID EffectToneGen::ManualPage()
{ {
return mChirp return mChirp
? wxT("Chirp") ? L"Chirp"
: wxT("Tone"); : L"Tone";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -28,7 +28,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -168,9 +168,9 @@ TranslatableString EffectTruncSilence::GetDescription()
return XO("Automatically reduces the length of passages where the volume is below a specified level"); return XO("Automatically reduces the length of passages where the volume is below a specified level");
} }
wxString EffectTruncSilence::ManualPage() ManualPageID EffectTruncSilence::ManualPage()
{ {
return wxT("Truncate_Silence"); return L"Truncate_Silence";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -38,7 +38,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -106,9 +106,9 @@ TranslatableString EffectWahwah::GetDescription()
return XO("Rapid tone quality variations, like that guitar sound so popular in the 1970's"); return XO("Rapid tone quality variations, like that guitar sound so popular in the 1970's");
} }
wxString EffectWahwah::ManualPage() ManualPageID EffectWahwah::ManualPage()
{ {
return wxT("Wahwah"); return L"Wahwah";
} }
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -48,7 +48,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override; ComponentInterfaceSymbol GetSymbol() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -239,14 +239,14 @@ TranslatableString NyquistEffect::GetDescription()
return mCopyright; return mCopyright;
} }
wxString NyquistEffect::ManualPage() ManualPageID NyquistEffect::ManualPage()
{ {
return mIsPrompt return mIsPrompt
? wxString("Nyquist_Prompt") ? wxString("Nyquist_Prompt")
: mManPage; : mManPage;
} }
wxString NyquistEffect::HelpPage() FilePath NyquistEffect::HelpPage()
{ {
auto paths = NyquistEffect::GetNyquistSearchPath(); auto paths = NyquistEffect::GetNyquistSearchPath();
wxString fileName; wxString fileName;

View File

@ -79,8 +79,8 @@ public:
wxString GetVersion() override; wxString GetVersion() override;
TranslatableString GetDescription() override; TranslatableString GetDescription() override;
wxString ManualPage() override; ManualPageID ManualPage() override;
wxString HelpPage() override; FilePath HelpPage() override;
// EffectDefinitionInterface implementation // EffectDefinitionInterface implementation

View File

@ -367,7 +367,7 @@ void Exporter::OnExtensionChanged(wxCommandEvent &evt)
void Exporter::OnHelp(wxCommandEvent& WXUNUSED(evt)) void Exporter::OnHelp(wxCommandEvent& WXUNUSED(evt))
{ {
wxWindow * pWin = FindProjectFrame( mProject ); wxWindow * pWin = FindProjectFrame( mProject );
HelpSystem::ShowHelp(pWin, wxT("File_Export_Dialog"), true); HelpSystem::ShowHelp(pWin, L"File_Export_Dialog", true);
} }
void Exporter::SetFileDialogTitle( const TranslatableString & DialogTitle ) void Exporter::SetFileDialogTitle( const TranslatableString & DialogTitle )
@ -1494,7 +1494,7 @@ void ExportMixerDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
void ExportMixerDialog::OnMixerPanelHelp(wxCommandEvent & WXUNUSED(event)) void ExportMixerDialog::OnMixerPanelHelp(wxCommandEvent & WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("Advanced_Mixing_Options"), true); HelpSystem::ShowHelp(this, L"Advanced_Mixing_Options", true);
} }

View File

@ -2562,7 +2562,7 @@ void ExportFFmpegOptions::OnOK(wxCommandEvent& WXUNUSED(event))
void ExportFFmpegOptions::OnGetURL(wxCommandEvent & WXUNUSED(event)) void ExportFFmpegOptions::OnGetURL(wxCommandEvent & WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("Custom_FFmpeg_Export_Options")); HelpSystem::ShowHelp(this, L"Custom_FFmpeg_Export_Options");
} }

View File

@ -674,7 +674,7 @@ public:
void OnDownload(wxCommandEvent & WXUNUSED(event)) void OnDownload(wxCommandEvent & WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("FAQ:Installing_the_LAME_MP3_Encoder")); HelpSystem::ShowHelp(this, L"FAQ:Installing_the_LAME_MP3_Encoder");
} }
wxString GetLibPath() wxString GetLibPath()

View File

@ -574,7 +574,7 @@ void ExportMultipleDialog::OnCancel(wxCommandEvent& WXUNUSED(event))
void ExportMultipleDialog::OnHelp(wxCommandEvent& WXUNUSED(event)) void ExportMultipleDialog::OnHelp(wxCommandEvent& WXUNUSED(event))
{ {
HelpSystem::ShowHelp(this, wxT("Export_Multiple"), true); HelpSystem::ShowHelp(this, L"Export_Multiple", true);
} }
void ExportMultipleDialog::OnExport(wxCommandEvent& WXUNUSED(event)) void ExportMultipleDialog::OnExport(wxCommandEvent& WXUNUSED(event))

View File

@ -100,11 +100,11 @@ public:
void PopulateOrExchange(ShuttleGui & S); void PopulateOrExchange(ShuttleGui & S);
void AddStuck( ShuttleGui & S, bool & bBool, void AddStuck( ShuttleGui & S, bool & bBool,
const PrefSetter &prefSetter, const PrefSetter &prefSetter,
const TranslatableString &Prompt, wxString Help ); const TranslatableString &Prompt, const ManualPageID &Help );
void OnOk(wxCommandEvent &event); void OnOk(wxCommandEvent &event);
void OnCancel(wxCommandEvent &event); void OnCancel(wxCommandEvent &event);
void OnHelp(const wxString &Str); void OnHelp(const ManualPageID &Str);
void OnFix(const PrefSetter &setter, wxWindowID id); void OnFix(const PrefSetter &setter, wxWindowID id);
AudacityProject &mProject; AudacityProject &mProject;
@ -154,7 +154,7 @@ QuickFixDialog::QuickFixDialog(wxWindow * pParent, AudacityProject &project) :
void QuickFixDialog::AddStuck( ShuttleGui & S, bool & bBool, void QuickFixDialog::AddStuck( ShuttleGui & S, bool & bBool,
const PrefSetter &prefSetter, const PrefSetter &prefSetter,
const TranslatableString &Prompt, wxString Help ) const TranslatableString &Prompt, const ManualPageID &Help )
{ {
mItem++; mItem++;
wxWindowID id = FixButtonID + mItem; wxWindowID id = FixButtonID + mItem;
@ -266,7 +266,7 @@ void QuickFixDialog::OnCancel(wxCommandEvent &event)
EndModal(wxID_CANCEL); EndModal(wxID_CANCEL);
} }
void QuickFixDialog::OnHelp(const wxString &Str) void QuickFixDialog::OnHelp(const ManualPageID &Str)
{ {
HelpSystem::ShowHelp(this, Str, true); HelpSystem::ShowHelp(this, Str, true);
} }
@ -309,7 +309,7 @@ void OnQuickHelp(const CommandContext &context)
auto &project = context.project; auto &project = context.project;
HelpSystem::ShowHelp( HelpSystem::ShowHelp(
&GetProjectFrame( project ), &GetProjectFrame( project ),
wxT("Quick_Help")); L"Quick_Help");
} }
void OnManual(const CommandContext &context) void OnManual(const CommandContext &context)
@ -317,7 +317,7 @@ void OnManual(const CommandContext &context)
auto &project = context.project; auto &project = context.project;
HelpSystem::ShowHelp( HelpSystem::ShowHelp(
&GetProjectFrame( project ), &GetProjectFrame( project ),
wxT("Main_Page")); L"Main_Page");
} }
void OnAudioDeviceInfo(const CommandContext &context) void OnAudioDeviceInfo(const CommandContext &context)

View File

@ -47,7 +47,7 @@ TranslatableString ApplicationPrefs::GetDescription()
return XO("Preferences for Application"); return XO("Preferences for Application");
} }
wxString ApplicationPrefs::HelpPageName() ManualPageID ApplicationPrefs::HelpPageName()
{ {
return "Application_Preferences"; return "Application_Preferences";
} }

Some files were not shown because too many files have changed in this diff Show More