mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 00:49:33 +02:00
Bug 1541 - Skip to Start/End buttons don't show that they respect SHIFT usage
This commit is contained in:
parent
a9c417854c
commit
b196c7de8d
@ -256,10 +256,18 @@ void ControlToolBar::RegenerateTooltips()
|
||||
commands.push_back(wxT("Stop"));
|
||||
break;
|
||||
case ID_FF_BUTTON:
|
||||
commands.push_back(wxT("SkipEnd"));
|
||||
commands.push_back(wxT("CursProjectEnd"));
|
||||
// With shift
|
||||
commands.push_back(_("Select to End"));
|
||||
// For the shortcut tooltip.
|
||||
commands.push_back(wxT("SelCursorEnd"));
|
||||
break;
|
||||
case ID_REW_BUTTON:
|
||||
commands.push_back(wxT("SkipStart"));
|
||||
commands.push_back(wxT("CursProjectStart"));
|
||||
// With shift
|
||||
commands.push_back(_("Select to Start"));
|
||||
// For the shortcut tooltip.
|
||||
commands.push_back(wxT("SelStartCursor"));
|
||||
break;
|
||||
}
|
||||
ToolBar::SetButtonToolTip(*pCtrl, commands);
|
||||
|
@ -302,8 +302,12 @@ void TranscriptionToolBar::RegenerateTooltips()
|
||||
int tool;
|
||||
wxString commandName;
|
||||
wxString untranslatedLabel;
|
||||
wxString commandName2;
|
||||
wxString untranslatedLabel2;
|
||||
} table[] = {
|
||||
{ TTB_PlaySpeed, wxT("PlayAtSpeed"), XO("Play-at-Speed") },
|
||||
{ TTB_PlaySpeed, wxT("PlayAtSpeed"), XO("Play-at-Speed"),
|
||||
wxT("PlayAtSpeedLooped"), XO("Looped-Play-at-Speed")
|
||||
},
|
||||
};
|
||||
|
||||
std::vector<wxString> commands;
|
||||
@ -311,6 +315,8 @@ void TranscriptionToolBar::RegenerateTooltips()
|
||||
commands.clear();
|
||||
commands.push_back(wxGetTranslation(entry.untranslatedLabel));
|
||||
commands.push_back(entry.commandName);
|
||||
commands.push_back(wxGetTranslation(entry.untranslatedLabel2));
|
||||
commands.push_back(entry.commandName2);
|
||||
ToolBar::SetButtonToolTip(*mButtons[entry.tool], commands);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user