Audacity  2.2.2
Functions
HelpText.h File Reference

Go to the source code of this file.

Functions

wxString HelpText (const wxString &Key)
 
wxString TitleText (const wxString &Key)
 

Function Documentation

wxString HelpText ( const wxString &  Key)

Definition at line 297 of file HelpText.cpp.

References HelpTextBuiltIn(), LinkExpand(), and WrapText().

Referenced by ErrorDialog::OnHelp(), LinkingHtmlWindow::OnLinkClicked(), SplashDialog::Populate(), SplashDialog::Show2(), and HelpSystem::ShowHelp().

298 {
299 
300  // Possible future enhancement...
301  // We could look for the text as a local file and use
302  // that if we find it...
303  // if( wxFileExists( Path+Key ) )
304  // ...
305 
306  wxString Text;
307  Text = HelpTextBuiltIn( Key );
308 
309  if( !Text.IsEmpty())
310  return LinkExpand( Text );
311 
312  // Perhaps useful for debugging - we'll return key that we didn't find.
313  return WrapText( Key );
314 }
static wxString HelpTextBuiltIn(const wxString &Key)
Definition: HelpText.cpp:203
static wxString WrapText(const wxString &Text)
Definition: HelpText.cpp:32
static wxString LinkExpand(const wxString &Text)
Definition: HelpText.cpp:85
wxString TitleText ( const wxString &  Key)

Definition at line 139 of file HelpText.cpp.

References _().

Referenced by ErrorDialog::OnHelp(), and LinkingHtmlWindow::OnLinkClicked().

140 {
141  if(Key==wxT("welcome"))
142  {
143  return _("Welcome!");
144  }
145 
146  if(Key ==wxT("play") )
147  {
148  /* i18n-hint: Title for a topic.*/
149  return _("Playing Audio");
150  }
151  if((Key ==wxT("record") ) || (Key ==wxT("norecord") ))
152  {
153  /* i18n-hint: Title for a topic.*/
154  return _("Recording Audio");
155  }
156  if(Key ==wxT("inputdevice") )
157  {
158  /* i18n-hint: Title for a topic.*/
159  return _("Recording - Choosing the Recording Device");
160  }
161  if(Key ==wxT("inputsource") )
162  {
163  /* i18n-hint: Title for a topic.*/
164  return _("Recording - Choosing the Recording Source");
165  }
166  if(Key ==wxT("inputlevel") )
167  {
168  /* i18n-hint: Title for a topic.*/
169  return _("Recording - Setting the Recording Level");
170  }
171  if((Key ==wxT("edit") ) || (Key==wxT("grey")))
172  {
173  /* i18n-hint: Title for a topic.*/
174  return _("Editing and greyed out Menus");
175  }
176  if(Key ==wxT("export") )
177  {
178  /* i18n-hint: Title for a topic.*/
179  return _("Exporting an Audio File");
180  }
181  if(Key ==wxT("save") )
182  {
183  /* i18n-hint: Title for a topic.*/
184  return _("Saving an Audacity Project");
185  }
186  if(Key ==wxT("wma-proprietary") )
187  {
188  /* i18n-hint: Title for a topic.*/
189  return _("Support for Other Formats");
190  }
191  if(Key ==wxT("burncd") )
192  {
193  /* i18n-hint: Title for a topic.*/
194  return _("Burn to CD" );
195  }
196  if(Key == wxT("remotehelp") )
197  {
198  return _("No Local Help");
199  }
200  return Key;
201 }
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom"))), OnMoveTrack) void TrackMenuTable::OnSetName(wxCommandEvent &)