mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-23 07:58:05 +02:00
Add 'Advanced Vertical Zooming' to 'View' menu
This commit is contained in:
parent
277473f0de
commit
6c71e02d28
@ -247,6 +247,18 @@ void OnZoomFitV(const CommandContext &context)
|
|||||||
project.ModifyState(true);
|
project.ModifyState(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnAdvancedVZoom(const CommandContext &context)
|
||||||
|
{
|
||||||
|
auto &project = context.project;
|
||||||
|
auto commandManager = project.GetCommandManager();
|
||||||
|
|
||||||
|
bool checked = !gPrefs->Read(wxT("/GUI/VerticalZooming"), 0L);
|
||||||
|
gPrefs->Write(wxT("/GUI/VerticalZooming"), checked);
|
||||||
|
gPrefs->Flush();
|
||||||
|
commandManager->Check(wxT("AdvancedVZoom"), checked);
|
||||||
|
MenuCreator::RebuildAllMenuBars();
|
||||||
|
}
|
||||||
|
|
||||||
void OnCollapseAllTracks(const CommandContext &context)
|
void OnCollapseAllTracks(const CommandContext &context)
|
||||||
{
|
{
|
||||||
auto &project = context.project;
|
auto &project = context.project;
|
||||||
@ -395,7 +407,11 @@ MenuTable::BaseItemPtr ViewMenu( AudacityProject& )
|
|||||||
Command( wxT("ZoomSel"), XXO("&Zoom to Selection"), FN(OnZoomSel),
|
Command( wxT("ZoomSel"), XXO("&Zoom to Selection"), FN(OnZoomSel),
|
||||||
TimeSelectedFlag, wxT("Ctrl+E") ),
|
TimeSelectedFlag, wxT("Ctrl+E") ),
|
||||||
Command( wxT("ZoomToggle"), XXO("Zoom &Toggle"), FN(OnZoomToggle),
|
Command( wxT("ZoomToggle"), XXO("Zoom &Toggle"), FN(OnZoomToggle),
|
||||||
TracksExistFlag, wxT("Shift+Z") )
|
TracksExistFlag, wxT("Shift+Z") ),
|
||||||
|
Separator(),
|
||||||
|
Command( wxT("AdvancedVZoom"), XXO("Advanced &Vertical Zooming"),
|
||||||
|
FN(OnAdvancedVZoom), AlwaysEnabledFlag,
|
||||||
|
Options{}.CheckState( gPrefs->Read(wxT("/GUI/VerticalZooming"), 0L) ) )
|
||||||
),
|
),
|
||||||
|
|
||||||
Menu( _("T&rack Size"),
|
Menu( _("T&rack Size"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user