mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 16:20:05 +02:00
George Simon's patch to make moving to the start and end of a selection easier. It put the ends of a selection on-screen, and often in the middle (if not at the extreme ends). We might like to argue about the shortcuts.
This commit is contained in:
parent
3814ecbdd0
commit
3089dab83a
@ -624,6 +624,8 @@ void AudacityProject::CreateMenusAndCommands()
|
|||||||
c->AddItem(wxT("FitInWindow"), _("&Fit in Window"), FN(OnZoomFit), wxT("Ctrl+F"));
|
c->AddItem(wxT("FitInWindow"), _("&Fit in Window"), FN(OnZoomFit), wxT("Ctrl+F"));
|
||||||
c->AddItem(wxT("FitV"), _("Fit &Vertically"), FN(OnZoomFitV), wxT("Ctrl+Shift+F"));
|
c->AddItem(wxT("FitV"), _("Fit &Vertically"), FN(OnZoomFitV), wxT("Ctrl+Shift+F"));
|
||||||
c->AddItem(wxT("ZoomSel"), _("&Zoom to Selection"), FN(OnZoomSel), wxT("Ctrl+E"), TimeSelectedFlag, TimeSelectedFlag);
|
c->AddItem(wxT("ZoomSel"), _("&Zoom to Selection"), FN(OnZoomSel), wxT("Ctrl+E"), TimeSelectedFlag, TimeSelectedFlag);
|
||||||
|
c->AddItem(wxT("GoSelStart"), _("&Go to Selection Start"), FN(OnGoSelStart), wxT("Ctrl+4"), TimeSelectedFlag, TimeSelectedFlag);
|
||||||
|
c->AddItem(wxT("GoSelEnd"), _("&Go to Selection End"), FN(OnGoSelEnd), wxT("Ctrl+5"), TimeSelectedFlag, TimeSelectedFlag);
|
||||||
|
|
||||||
c->AddSeparator();
|
c->AddSeparator();
|
||||||
|
|
||||||
@ -4961,6 +4963,22 @@ void AudacityProject::OnZoomSel()
|
|||||||
TP_ScrollWindow(mViewInfo.sel0);
|
TP_ScrollWindow(mViewInfo.sel0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AudacityProject::OnGoSelStart()
|
||||||
|
{
|
||||||
|
if (mViewInfo.sel1 <= mViewInfo.sel0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
TP_ScrollWindow(mViewInfo.sel0 - (mViewInfo.screen / 2));
|
||||||
|
}
|
||||||
|
|
||||||
|
void AudacityProject::OnGoSelEnd()
|
||||||
|
{
|
||||||
|
if (mViewInfo.sel1 <= mViewInfo.sel0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
TP_ScrollWindow(mViewInfo.sel1 - (mViewInfo.screen / 2));
|
||||||
|
}
|
||||||
|
|
||||||
void AudacityProject::OnShowClipping()
|
void AudacityProject::OnShowClipping()
|
||||||
{
|
{
|
||||||
bool checked = !gPrefs->Read(wxT("/GUI/ShowClipping"), 0L);
|
bool checked = !gPrefs->Read(wxT("/GUI/ShowClipping"), 0L);
|
||||||
|
@ -257,6 +257,8 @@ void OnZoomFit();
|
|||||||
void OnZoomFitV();
|
void OnZoomFitV();
|
||||||
void DoZoomFitV();
|
void DoZoomFitV();
|
||||||
void OnZoomSel();
|
void OnZoomSel();
|
||||||
|
void OnGoSelStart();
|
||||||
|
void OnGoSelEnd();
|
||||||
|
|
||||||
void OnExpandAllTracks();
|
void OnExpandAllTracks();
|
||||||
void OnCollapseAllTracks();
|
void OnCollapseAllTracks();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user