Merge pull request #1209 from Paul-Licameli/Preliminaries-for-lib-basic-ui
Preliminaries for lib basic UI (string types)
This commit is contained in:
commit
29a1ae6faa
|
@ -232,5 +232,8 @@ struct CommandIdTag;
|
|||
using CommandID = TaggedIdentifier< CommandIdTag, false >;
|
||||
using CommandIDs = std::vector<CommandID>;
|
||||
|
||||
struct ManualPageIDTag;
|
||||
using ManualPageID = TaggedIdentifier< ManualPageIDTag >;
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ void MacroCommandDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
|
|||
|
||||
void MacroCommandDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString page = GetHelpPageName();
|
||||
const auto &page = GetHelpPageName();
|
||||
HelpSystem::ShowHelp(this, page, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class MacroCommandDialog final : public wxDialogWrapper {
|
|||
void OnCancel(wxCommandEvent &event);
|
||||
void OnHelp(wxCommandEvent &event);
|
||||
void OnItemSelected(wxListEvent &event);
|
||||
wxString GetHelpPageName() { return wxT("Scripting Reference") ; }
|
||||
ManualPageID GetHelpPageName() { return L"Scripting Reference" ; }
|
||||
|
||||
void ValidateChoices();
|
||||
void PopulateCommandList();
|
||||
|
|
|
@ -222,7 +222,7 @@ void ApplyMacroDialog::PopulateMacros()
|
|||
|
||||
void ApplyMacroDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString page = GetHelpPageName();
|
||||
const auto &page = GetHelpPageName();
|
||||
HelpSystem::ShowHelp(this, page, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class ApplyMacroDialog : public wxDialogWrapper {
|
|||
virtual void OnCancel(wxCommandEvent & event);
|
||||
virtual void OnHelp(wxCommandEvent & event);
|
||||
|
||||
virtual wxString GetHelpPageName() {return "Apply_Macro";};
|
||||
virtual ManualPageID GetHelpPageName() {return "Apply_Macro";}
|
||||
|
||||
void PopulateMacros();
|
||||
static CommandID MacroIdOfName( const wxString & MacroName );
|
||||
|
@ -87,9 +87,9 @@ private:
|
|||
void OnApplyToFiles(wxCommandEvent & event) override;
|
||||
void OnCancel(wxCommandEvent &event) override;
|
||||
|
||||
virtual wxString GetHelpPageName() override {return
|
||||
virtual ManualPageID GetHelpPageName() override {return
|
||||
mbExpanded ? "Manage_Macros"
|
||||
: "Apply_Macro";};
|
||||
: "Apply_Macro";}
|
||||
|
||||
void PopulateList();
|
||||
void AddItem(const CommandID &command, wxString const ¶ms);
|
||||
|
|
|
@ -538,7 +538,7 @@ public:
|
|||
|
||||
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()
|
||||
|
|
|
@ -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.
|
||||
// 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)
|
||||
|
|
|
@ -387,12 +387,13 @@ const wxString VerCheckArgs(){
|
|||
}
|
||||
|
||||
// Text of hyperlink to check versions.
|
||||
const wxString VerCheckHtml(){
|
||||
const wxString VerCheckHtml()
|
||||
{
|
||||
wxStringOutputStream o;
|
||||
wxTextOutputStream s(o);
|
||||
s
|
||||
<< "<center>[["
|
||||
<< VerCheckUrl()
|
||||
<< VerCheckUrl().GET()
|
||||
<< "|"
|
||||
<< XO("Check Online")
|
||||
<< "]]</center>\n";
|
||||
|
@ -400,7 +401,8 @@ const wxString VerCheckHtml(){
|
|||
}
|
||||
|
||||
// Url with Version check args attached.
|
||||
const wxString VerCheckUrl(){
|
||||
const URLString VerCheckUrl()
|
||||
{
|
||||
//The version we intend to use for live Audacity.
|
||||
#define VER_CHECK_URL "https://www.audacityteam.org/download/?"
|
||||
//For testing of our scriptlet.
|
||||
|
|
|
@ -13,12 +13,17 @@
|
|||
|
||||
class TranslatableString;
|
||||
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 TranslatableString TitleText( const wxString & Key );
|
||||
|
||||
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 wxString FormatHtmlText( const wxString & Text );
|
||||
|
||||
|
|
|
@ -313,7 +313,7 @@ void HistoryDialog::OnCompact(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)
|
||||
|
|
|
@ -285,7 +285,7 @@ void LabelDialog::PopulateOrExchange( ShuttleGui & S )
|
|||
|
||||
void LabelDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString page = GetHelpPageName();
|
||||
const auto &page = GetHelpPageName();
|
||||
HelpSystem::ShowHelp(this, page, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -60,8 +60,8 @@ class LabelDialog final : public wxDialogWrapper
|
|||
void Populate();
|
||||
void PopulateOrExchange( ShuttleGui & S );
|
||||
void PopulateLabels();
|
||||
virtual void OnHelp(wxCommandEvent & event);
|
||||
virtual wxString GetHelpPageName() {return "Labels_Editor";};
|
||||
void OnHelp(wxCommandEvent & event);
|
||||
ManualPageID GetHelpPageName() {return "Labels_Editor";}
|
||||
|
||||
bool TransferDataToWindow() override;
|
||||
bool TransferDataFromWindow() override;
|
||||
|
|
|
@ -19,6 +19,7 @@ Paul Licameli split from AudacityProject.cpp
|
|||
#include <wx/xml/xml.h>
|
||||
|
||||
#include "ActiveProjects.h"
|
||||
#include "CodeConversions.h"
|
||||
#include "DBConnection.h"
|
||||
#include "Project.h"
|
||||
#include "ProjectFileIORegistry.h"
|
||||
|
@ -2316,7 +2317,8 @@ void ProjectFileIO::ShowError(wxWindow *parent,
|
|||
const TranslatableString &message,
|
||||
const wxString &helpPage)
|
||||
{
|
||||
ShowExceptionDialog(parent, dlogTitle, message, helpPage, true, GetLastLog());
|
||||
ShowExceptionDialog(parent, dlogTitle, message, helpPage, true,
|
||||
audacity::ToWString(GetLastLog()));
|
||||
}
|
||||
|
||||
const TranslatableString &ProjectFileIO::GetLastError() const
|
||||
|
|
|
@ -17,6 +17,7 @@ Paul Licameli split from AudacityProject.cpp
|
|||
#endif
|
||||
|
||||
#include <wx/frame.h>
|
||||
#include "CodeConversions.h"
|
||||
#include "Legacy.h"
|
||||
#include "PlatformCompatibility.h"
|
||||
#include "Project.h"
|
||||
|
@ -776,7 +777,7 @@ bool ProjectFileManager::OpenNewProject()
|
|||
XO("Error opening a new empty project"),
|
||||
"FAQ:Errors_opening_a_new_empty_project",
|
||||
true,
|
||||
projectFileIO.GetLastLog());
|
||||
audacity::ToWString(projectFileIO.GetLastLog()));
|
||||
}
|
||||
return bOK;
|
||||
}
|
||||
|
@ -1362,7 +1363,7 @@ public:
|
|||
|
||||
void OnGetURL(wxCommandEvent &WXUNUSED(evt))
|
||||
{
|
||||
HelpSystem::ShowHelp(this, wxT("File_Menu:_Compact_Project"), true);
|
||||
HelpSystem::ShowHelp(this, L"File_Menu:_Compact_Project", true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -559,7 +559,7 @@ void ScreenshotBigDialog::OnClose(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))
|
||||
|
|
|
@ -972,7 +972,7 @@ void TagsEditorDialog::OnDontShow( wxCommandEvent & Evt )
|
|||
|
||||
void TagsEditorDialog::OnHelp(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
HelpSystem::ShowHelp(this, wxT("Metadata_Editor"), true);
|
||||
HelpSystem::ShowHelp(this, L"Metadata_Editor", true);
|
||||
}
|
||||
|
||||
bool TagsEditorDialog::TransferDataFromWindow()
|
||||
|
|
|
@ -363,7 +363,7 @@ void TimerRecordDialog::OnAutoExportCheckBox_Change(wxCommandEvent& WXUNUSED(eve
|
|||
|
||||
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))
|
||||
|
|
|
@ -65,7 +65,7 @@ class AUDACITY_DLL_API AudacityCommand /* not final */ : public wxEvtHandler,
|
|||
{wxFAIL_MSG( "Implement a Description for this command");return XO("FAIL");};
|
||||
|
||||
// Name of page in the Audacity alpha manual
|
||||
virtual wxString ManualPage(){ return wxEmptyString;};
|
||||
virtual ManualPageID ManualPage(){ return {}; }
|
||||
virtual bool IsBatchProcessing(){ return mIsBatch;}
|
||||
virtual void SetBatchProcessing(bool start){ mIsBatch = start;};
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_I");};
|
||||
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I";}
|
||||
|
||||
private:
|
||||
double delay;
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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 ApplyInner(const CommandContext &context);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
public:
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
bool ApplyInner(const CommandContext & context);
|
||||
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#help");};
|
||||
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#help";}
|
||||
public:
|
||||
wxString mCommandName;
|
||||
};
|
||||
|
@ -58,7 +58,7 @@ public:
|
|||
return true;
|
||||
};
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#comment");};
|
||||
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#comment";}
|
||||
public:
|
||||
wxString mComment;
|
||||
};
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#import");};
|
||||
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#import";}
|
||||
public:
|
||||
wxString mFileName;
|
||||
};
|
||||
|
@ -54,7 +54,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#export");};
|
||||
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#export";}
|
||||
public:
|
||||
wxString mFileName;
|
||||
int mnChannels;
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#message");};
|
||||
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#message";}
|
||||
public:
|
||||
wxString mMessage;
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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:
|
||||
wxString mFileName;
|
||||
bool mbAddToHistory;
|
||||
|
@ -60,7 +60,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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:
|
||||
wxString mFileName;
|
||||
bool mbAddToHistory;
|
||||
|
@ -80,7 +80,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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:
|
||||
wxString mFileName;
|
||||
};
|
||||
|
@ -98,7 +98,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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:
|
||||
wxString mFileName;
|
||||
};
|
||||
|
@ -116,7 +116,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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:
|
||||
wxString mFileName;
|
||||
};
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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;
|
||||
};
|
||||
|
@ -59,7 +59,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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 mValue;
|
||||
|
|
|
@ -87,7 +87,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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:
|
||||
int mWhat;
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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 bHasT1;
|
||||
|
@ -63,7 +63,7 @@ public:
|
|||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// 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 bHasTop;
|
||||
|
@ -85,7 +85,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
bool Apply(const CommandContext & context) override;
|
||||
// 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 bHasNumTracks;
|
||||
|
@ -123,7 +123,7 @@ public:
|
|||
mSelTracks.Apply(context);
|
||||
}
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#select");};
|
||||
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#select";}
|
||||
private:
|
||||
SelectTimeCommand mSelTime;
|
||||
SelectFrequenciesCommand mSelFreq;
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
public:
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
public:
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
public:
|
||||
|
@ -81,7 +81,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
public:
|
||||
|
@ -110,7 +110,7 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// 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;
|
||||
|
||||
public:
|
||||
|
@ -150,7 +150,7 @@ public:
|
|||
ComponentInterfaceSymbol GetSymbol() override {return Symbol;};
|
||||
TranslatableString GetDescription() override {return XO("Sets various values for a track.");};
|
||||
// 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:
|
||||
|
||||
|
|
|
@ -99,9 +99,9 @@ TranslatableString EffectAmplify::GetDescription()
|
|||
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
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
wxString EffectAutoDuck::ManualPage()
|
||||
ManualPageID EffectAutoDuck::ManualPage()
|
||||
{
|
||||
return wxT("Auto_Duck");
|
||||
return L"Auto_Duck";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -98,9 +98,9 @@ TranslatableString EffectBassTreble::GetDescription()
|
|||
return XO("Simple tone control effect");
|
||||
}
|
||||
|
||||
wxString EffectBassTreble::ManualPage()
|
||||
ManualPageID EffectBassTreble::ManualPage()
|
||||
{
|
||||
return wxT("Bass_and_Treble");
|
||||
return L"Bass_and_Treble";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -150,9 +150,9 @@ TranslatableString EffectChangePitch::GetDescription()
|
|||
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
|
||||
|
|
|
@ -46,7 +46,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -123,9 +123,9 @@ TranslatableString EffectChangeSpeed::GetDescription()
|
|||
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";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -124,9 +124,9 @@ TranslatableString EffectChangeTempo::GetDescription()
|
|||
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
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -93,9 +93,9 @@ TranslatableString EffectClickRemoval::GetDescription()
|
|||
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
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -115,9 +115,9 @@ TranslatableString EffectCompressor::GetDescription()
|
|||
return XO("Compresses the dynamic range of audio");
|
||||
}
|
||||
|
||||
wxString EffectCompressor::ManualPage()
|
||||
ManualPageID EffectCompressor::ManualPage()
|
||||
{
|
||||
return wxT("Compressor");
|
||||
return L"Compressor";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -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.
|
||||
// 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))
|
||||
|
|
|
@ -198,9 +198,9 @@ TranslatableString EffectDistortion::GetDescription()
|
|||
return XO("Waveshaping distortion effect");
|
||||
}
|
||||
|
||||
wxString EffectDistortion::ManualPage()
|
||||
ManualPageID EffectDistortion::ManualPage()
|
||||
{
|
||||
return wxT("Distortion");
|
||||
return L"Distortion";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -110,9 +110,9 @@ TranslatableString EffectDtmf::GetDescription()
|
|||
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
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -67,9 +67,9 @@ TranslatableString EffectEcho::GetDescription()
|
|||
return XO("Repeats the selected audio again and again");
|
||||
}
|
||||
|
||||
wxString EffectEcho::ManualPage()
|
||||
ManualPageID EffectEcho::ManualPage()
|
||||
{
|
||||
return wxT("Echo");
|
||||
return L"Echo";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -28,7 +28,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -1168,14 +1168,14 @@ bool Effect::HasFactoryDefaults()
|
|||
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) {
|
||||
|
|
|
@ -237,9 +237,9 @@ class AUDACITY_DLL_API Effect /* not final */ : public wxEvtHandler,
|
|||
virtual bool HasFactoryDefaults();
|
||||
|
||||
// Name of page in the Audacity alpha manual
|
||||
virtual wxString ManualPage();
|
||||
virtual ManualPageID ManualPage();
|
||||
// Fully qualified local help file name
|
||||
virtual wxString HelpPage();
|
||||
virtual FilePath HelpPage();
|
||||
|
||||
virtual void SetUIFlags(unsigned flags);
|
||||
virtual unsigned TestUIFlags(unsigned mask);
|
||||
|
|
|
@ -135,7 +135,7 @@ TranslatableString EffectManager::GetCommandDescription(const PluginID & ID)
|
|||
return {};
|
||||
}
|
||||
|
||||
wxString EffectManager::GetCommandUrl(const PluginID & ID)
|
||||
ManualPageID EffectManager::GetCommandUrl(const PluginID & ID)
|
||||
{
|
||||
Effect* pEff = GetEffect(ID);
|
||||
if( pEff )
|
||||
|
@ -190,7 +190,8 @@ void EffectManager::GetCommandDefinition(const PluginID & ID, const CommandConte
|
|||
S.EndArray();
|
||||
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!
|
||||
S.AddItem( GetCommandTip( ID ).Translation(), "tip" );
|
||||
S.EndStruct();
|
||||
|
|
|
@ -96,7 +96,7 @@ public:
|
|||
TranslatableString GetCommandName(const PluginID & ID);
|
||||
CommandID GetCommandIdentifier(const PluginID & ID);
|
||||
TranslatableString GetCommandDescription(const PluginID & ID);
|
||||
wxString GetCommandUrl(const PluginID & ID);
|
||||
ManualPageID GetCommandUrl(const PluginID & ID);
|
||||
TranslatableString GetCommandTip(const PluginID & ID);
|
||||
// flags control which commands are included.
|
||||
void GetCommandDefinition(const PluginID & ID, const CommandContext & context, int flags);
|
||||
|
|
|
@ -348,14 +348,14 @@ TranslatableString EffectEqualization::GetDescription()
|
|||
return XO("Adjusts the volume levels of particular frequencies");
|
||||
}
|
||||
|
||||
wxString EffectEqualization::ManualPage()
|
||||
ManualPageID EffectEqualization::ManualPage()
|
||||
{
|
||||
// Bug 2509: Must use _ and not space in names.
|
||||
if( mOptions == kEqOptionGraphic )
|
||||
return wxT("Graphic_EQ");
|
||||
return L"Graphic_EQ";
|
||||
if( mOptions == kEqOptionCurve )
|
||||
return wxT("Filter_Curve_EQ");
|
||||
return wxT("Equalization");
|
||||
return L"Filter_Curve_EQ";
|
||||
return L"Equalization";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -103,7 +103,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -68,9 +68,9 @@ TranslatableString EffectFindClipping::GetDescription()
|
|||
return XO("Creates labels where clipping is detected");
|
||||
}
|
||||
|
||||
wxString EffectFindClipping::ManualPage()
|
||||
ManualPageID EffectFindClipping::ManualPage()
|
||||
{
|
||||
return wxT("Find_Clipping");
|
||||
return L"Find_Clipping";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -93,9 +93,9 @@ TranslatableString EffectLoudness::GetDescription()
|
|||
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
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -91,9 +91,9 @@ TranslatableString EffectNoise::GetDescription()
|
|||
return XO("Generates one of three different types of noise");
|
||||
}
|
||||
|
||||
wxString EffectNoise::ManualPage()
|
||||
ManualPageID EffectNoise::ManualPage()
|
||||
{
|
||||
return wxT("Noise");
|
||||
return L"Noise";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -78,9 +78,9 @@ TranslatableString EffectNormalize::GetDescription()
|
|||
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
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -117,9 +117,9 @@ TranslatableString EffectPaulstretch::GetDescription()
|
|||
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
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -115,9 +115,9 @@ TranslatableString EffectPhaser::GetDescription()
|
|||
return XO("Combines phase-shifted signals with the original signal");
|
||||
}
|
||||
|
||||
wxString EffectPhaser::ManualPage()
|
||||
ManualPageID EffectPhaser::ManualPage()
|
||||
{
|
||||
return wxT("Phaser");
|
||||
return L"Phaser";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -75,9 +75,9 @@ TranslatableString EffectRepeat::GetDescription()
|
|||
return XO("Repeats the selection the specified number of times");
|
||||
}
|
||||
|
||||
wxString EffectRepeat::ManualPage()
|
||||
ManualPageID EffectRepeat::ManualPage()
|
||||
{
|
||||
return wxT("Repeat");
|
||||
return L"Repeat";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -149,9 +149,9 @@ TranslatableString EffectReverb::GetDescription()
|
|||
return XO("Adds ambience or a \"hall effect\"");
|
||||
}
|
||||
|
||||
wxString EffectReverb::ManualPage()
|
||||
ManualPageID EffectReverb::ManualPage()
|
||||
{
|
||||
return wxT("Reverb");
|
||||
return L"Reverb";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -192,9 +192,9 @@ TranslatableString EffectScienFilter::GetDescription()
|
|||
return XO("Performs IIR filtering that emulates analog filters");
|
||||
}
|
||||
|
||||
wxString EffectScienFilter::ManualPage()
|
||||
ManualPageID EffectScienFilter::ManualPage()
|
||||
{
|
||||
return wxT("Classic_Filters");
|
||||
return L"Classic_Filters";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -50,9 +50,9 @@ TranslatableString EffectSilence::GetDescription()
|
|||
return XO("Creates audio of zero amplitude");
|
||||
}
|
||||
|
||||
wxString EffectSilence::ManualPage()
|
||||
ManualPageID EffectSilence::ManualPage()
|
||||
{
|
||||
return wxT("Silence");
|
||||
return L"Silence";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -101,9 +101,9 @@ TranslatableString EffectTimeScale::GetDescription()
|
|||
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
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -139,11 +139,11 @@ TranslatableString EffectToneGen::GetDescription()
|
|||
: XO("Generates a constant frequency tone of one of four types");
|
||||
}
|
||||
|
||||
wxString EffectToneGen::ManualPage()
|
||||
ManualPageID EffectToneGen::ManualPage()
|
||||
{
|
||||
return mChirp
|
||||
? wxT("Chirp")
|
||||
: wxT("Tone");
|
||||
? L"Chirp"
|
||||
: L"Tone";
|
||||
}
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
|
|
@ -28,7 +28,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -168,9 +168,9 @@ TranslatableString EffectTruncSilence::GetDescription()
|
|||
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
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -106,9 +106,9 @@ TranslatableString EffectWahwah::GetDescription()
|
|||
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
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
wxString ManualPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -239,14 +239,14 @@ TranslatableString NyquistEffect::GetDescription()
|
|||
return mCopyright;
|
||||
}
|
||||
|
||||
wxString NyquistEffect::ManualPage()
|
||||
ManualPageID NyquistEffect::ManualPage()
|
||||
{
|
||||
return mIsPrompt
|
||||
? wxString("Nyquist_Prompt")
|
||||
: mManPage;
|
||||
}
|
||||
|
||||
wxString NyquistEffect::HelpPage()
|
||||
FilePath NyquistEffect::HelpPage()
|
||||
{
|
||||
auto paths = NyquistEffect::GetNyquistSearchPath();
|
||||
wxString fileName;
|
||||
|
|
|
@ -79,8 +79,8 @@ public:
|
|||
wxString GetVersion() override;
|
||||
TranslatableString GetDescription() override;
|
||||
|
||||
wxString ManualPage() override;
|
||||
wxString HelpPage() override;
|
||||
ManualPageID ManualPage() override;
|
||||
FilePath HelpPage() override;
|
||||
|
||||
// EffectDefinitionInterface implementation
|
||||
|
||||
|
|
|
@ -367,7 +367,7 @@ void Exporter::OnExtensionChanged(wxCommandEvent &evt)
|
|||
void Exporter::OnHelp(wxCommandEvent& WXUNUSED(evt))
|
||||
{
|
||||
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 )
|
||||
|
@ -1494,7 +1494,7 @@ void ExportMixerDialog::OnCancel(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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2562,7 +2562,7 @@ void ExportFFmpegOptions::OnOK(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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -674,7 +674,7 @@ public:
|
|||
|
||||
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()
|
||||
|
|
|
@ -574,7 +574,7 @@ void ExportMultipleDialog::OnCancel(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))
|
||||
|
|
|
@ -100,11 +100,11 @@ public:
|
|||
void PopulateOrExchange(ShuttleGui & S);
|
||||
void AddStuck( ShuttleGui & S, bool & bBool,
|
||||
const PrefSetter &prefSetter,
|
||||
const TranslatableString &Prompt, wxString Help );
|
||||
const TranslatableString &Prompt, const ManualPageID &Help );
|
||||
|
||||
void OnOk(wxCommandEvent &event);
|
||||
void OnCancel(wxCommandEvent &event);
|
||||
void OnHelp(const wxString &Str);
|
||||
void OnHelp(const ManualPageID &Str);
|
||||
void OnFix(const PrefSetter &setter, wxWindowID id);
|
||||
|
||||
AudacityProject &mProject;
|
||||
|
@ -154,7 +154,7 @@ QuickFixDialog::QuickFixDialog(wxWindow * pParent, AudacityProject &project) :
|
|||
|
||||
void QuickFixDialog::AddStuck( ShuttleGui & S, bool & bBool,
|
||||
const PrefSetter &prefSetter,
|
||||
const TranslatableString &Prompt, wxString Help )
|
||||
const TranslatableString &Prompt, const ManualPageID &Help )
|
||||
{
|
||||
mItem++;
|
||||
wxWindowID id = FixButtonID + mItem;
|
||||
|
@ -266,7 +266,7 @@ void QuickFixDialog::OnCancel(wxCommandEvent &event)
|
|||
EndModal(wxID_CANCEL);
|
||||
}
|
||||
|
||||
void QuickFixDialog::OnHelp(const wxString &Str)
|
||||
void QuickFixDialog::OnHelp(const ManualPageID &Str)
|
||||
{
|
||||
HelpSystem::ShowHelp(this, Str, true);
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ void OnQuickHelp(const CommandContext &context)
|
|||
auto &project = context.project;
|
||||
HelpSystem::ShowHelp(
|
||||
&GetProjectFrame( project ),
|
||||
wxT("Quick_Help"));
|
||||
L"Quick_Help");
|
||||
}
|
||||
|
||||
void OnManual(const CommandContext &context)
|
||||
|
@ -317,7 +317,7 @@ void OnManual(const CommandContext &context)
|
|||
auto &project = context.project;
|
||||
HelpSystem::ShowHelp(
|
||||
&GetProjectFrame( project ),
|
||||
wxT("Main_Page"));
|
||||
L"Main_Page");
|
||||
}
|
||||
|
||||
void OnAudioDeviceInfo(const CommandContext &context)
|
||||
|
|
|
@ -47,7 +47,7 @@ TranslatableString ApplicationPrefs::GetDescription()
|
|||
return XO("Preferences for Application");
|
||||
}
|
||||
|
||||
wxString ApplicationPrefs::HelpPageName()
|
||||
ManualPageID ApplicationPrefs::HelpPageName()
|
||||
{
|
||||
return "Application_Preferences";
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue