mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +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 ExtraMixerMenu( AudacityProject & );
|
||||||
MenuTable::BaseItemPtr ExtraEditMenu( AudacityProject & );
|
MenuTable::BaseItemPtr ExtraEditMenu( AudacityProject & );
|
||||||
MenuTable::BaseItemPtr ExtraPlayAtSpeedMenu( AudacityProject & );
|
MenuTable::BaseItemPtr ExtraPlayAtSpeedMenu( AudacityProject & );
|
||||||
|
MenuTable::BaseItemPtr ExtraSeekMenu( AudacityProject & );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tables of menu factories.
|
// Tables of menu factories.
|
||||||
@ -555,6 +556,7 @@ static const std::shared_ptr<MenuTable::BaseItem> extraItems = MenuTable::Items(
|
|||||||
, ExtraMixerMenu
|
, ExtraMixerMenu
|
||||||
, ExtraEditMenu
|
, ExtraEditMenu
|
||||||
, ExtraPlayAtSpeedMenu
|
, ExtraPlayAtSpeedMenu
|
||||||
|
, ExtraSeekMenu
|
||||||
);
|
);
|
||||||
|
|
||||||
static const auto menuTree = MenuTable::Items(
|
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)
|
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->BeginMenu( _("De&vice") );
|
||||||
|
|
||||||
c->AddItem( wxT("InputDevice"), XXO("Change &Recording Device..."), FN(OnInputDevice),
|
c->AddItem( wxT("InputDevice"), XXO("Change &Recording Device..."), FN(OnInputDevice),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user