mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Clip left/right commands: rename and move
The clip left/right commands can now time shift clips, notetracks, and labels. So: 1. Rename them Time Shift Left/Right 2. Move them the to edit sub menu of the extra menu, which is more appropriate than the Cursor sub menu.
This commit is contained in:
parent
617be5a403
commit
c563d5cc40
@ -871,23 +871,23 @@ AttachedItem sAttachment2{
|
||||
Shared( ClipCursorItems() )
|
||||
};
|
||||
|
||||
BaseItemSharedPtr ExtraClipCursorItems()
|
||||
BaseItemSharedPtr ExtraTimeShiftItems()
|
||||
{
|
||||
using Options = CommandManager::Options;
|
||||
static BaseItemSharedPtr items{
|
||||
( FinderScope{ findCommandHandler },
|
||||
Items( wxT("Clip"),
|
||||
Command( wxT("ClipLeft"), XXO("Clip L&eft"), FN(OnClipLeft),
|
||||
Items( wxT("TimeShift"),
|
||||
Command( wxT("ClipLeft"), XXO("Time Shift &Left"), FN(OnClipLeft),
|
||||
TracksExistFlag() | TrackPanelHasFocus(), Options{}.WantKeyUp() ),
|
||||
Command( wxT("ClipRight"), XXO("Clip Rig&ht"), FN(OnClipRight),
|
||||
Command( wxT("ClipRight"), XXO("Time Shift &Right"), FN(OnClipRight),
|
||||
TracksExistFlag() | TrackPanelHasFocus(), Options{}.WantKeyUp() )
|
||||
) ) };
|
||||
return items;
|
||||
}
|
||||
|
||||
AttachedItem sAttachment3{
|
||||
{ wxT("Optional/Extra/Part2/Cursor"), { OrderingHint::End, {} } },
|
||||
Shared( ExtraClipCursorItems() )
|
||||
{ wxT("Optional/Extra/Part1/Edit"), { OrderingHint::End, {} } },
|
||||
Shared( ExtraTimeShiftItems() )
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user