mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 16:39:30 +02:00
Define table for Extra Seek menu
This commit is contained in:
parent
9e4e1ae699
commit
bbc2837d67
@ -545,6 +545,7 @@ MenuTable::BaseItemPtr ExtraToolsMenu( AudacityProject & );
|
||||
MenuTable::BaseItemPtr ExtraMixerMenu( AudacityProject & );
|
||||
MenuTable::BaseItemPtr ExtraEditMenu( AudacityProject & );
|
||||
MenuTable::BaseItemPtr ExtraPlayAtSpeedMenu( AudacityProject & );
|
||||
MenuTable::BaseItemPtr ExtraSeekMenu( AudacityProject & );
|
||||
}
|
||||
|
||||
// Tables of menu factories.
|
||||
@ -555,6 +556,7 @@ static const std::shared_ptr<MenuTable::BaseItem> extraItems = MenuTable::Items(
|
||||
, ExtraMixerMenu
|
||||
, ExtraEditMenu
|
||||
, ExtraPlayAtSpeedMenu
|
||||
, ExtraSeekMenu
|
||||
);
|
||||
|
||||
static const auto menuTree = MenuTable::Items(
|
||||
@ -1856,6 +1858,22 @@ MenuTable::BaseItemPtr ExtraPlayAtSpeedMenu( AudacityProject & )
|
||||
);
|
||||
}
|
||||
|
||||
MenuTable::BaseItemPtr ExtraSeekMenu( AudacityProject & )
|
||||
{
|
||||
using namespace MenuTable;
|
||||
return Menu( _("See&k"),
|
||||
Command( wxT("SeekLeftShort"), XXO("Short Seek &Left During Playback"),
|
||||
FN(OnSeekLeftShort), AudioIOBusyFlag, wxT("Left\tallowDup") ),
|
||||
Command( wxT("SeekRightShort"),
|
||||
XXO("Short Seek &Right During Playback"), FN(OnSeekRightShort),
|
||||
AudioIOBusyFlag, wxT("Right\tallowDup") ),
|
||||
Command( wxT("SeekLeftLong"), XXO("Long Seek Le&ft During Playback"),
|
||||
FN(OnSeekLeftLong), AudioIOBusyFlag, wxT("Shift+Left\tallowDup") ),
|
||||
Command( wxT("SeekRightLong"), XXO("Long Seek Rig&ht During Playback"),
|
||||
FN(OnSeekRightLong), AudioIOBusyFlag, wxT("Shift+Right\tallowDup") )
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void MenuCreator::CreateMenusAndCommands(AudacityProject &project)
|
||||
@ -1890,21 +1908,6 @@ void MenuCreator::CreateMenusAndCommands(AudacityProject &project)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
c->BeginMenu( _("See&k") );
|
||||
|
||||
c->AddItem( wxT("SeekLeftShort"), XXO("Short Seek &Left During Playback"),
|
||||
FN(OnSeekLeftShort), AudioIOBusyFlag, wxT("Left\tallowDup") );
|
||||
c->AddItem( wxT("SeekRightShort"),
|
||||
XXO("Short Seek &Right During Playback"), FN(OnSeekRightShort),
|
||||
AudioIOBusyFlag, wxT("Right\tallowDup") );
|
||||
c->AddItem( wxT("SeekLeftLong"), XXO("Long Seek Le&ft During Playback"),
|
||||
FN(OnSeekLeftLong), AudioIOBusyFlag, wxT("Shift+Left\tallowDup") );
|
||||
c->AddItem( wxT("SeekRightLong"), XXO("Long Seek Rig&ht During Playback"),
|
||||
FN(OnSeekRightLong), AudioIOBusyFlag, wxT("Shift+Right\tallowDup") );
|
||||
c->EndMenu();
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
c->BeginMenu( _("De&vice") );
|
||||
|
||||
c->AddItem( wxT("InputDevice"), XXO("Change &Recording Device..."), FN(OnInputDevice),
|
||||
|
Loading…
x
Reference in New Issue
Block a user