1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 09:09:47 +02:00

Cascade the four move commands of the track control menu...

... Note that "M" accelarator conflicts for now with "Mono" for wave tracks,
but there is no conflict with time and label tracks.
This commit is contained in:
Paul Licameli 2015-06-21 22:44:55 -04:00
parent ad3872e035
commit 413edf2820

View File

@ -156,6 +156,9 @@ is time to refresh some aspect of the screen.
*//*****************************************************************/
// This conditional compilation switch does not need to be seen
// in any other file, so I define it here, not in Experimental.h -- PRL
#define EXPERIMENTAL_CASCADE_TCP_MENU
#include "Audacity.h"
#include "Experimental.h"
@ -781,12 +784,34 @@ void TrackPanel::BuildCommonDropMenuItems(wxMenu * menu)
{
menu->Append(OnSetNameID, _("N&ame..."));
menu->AppendSeparator();
menu->Append(OnMoveUpID, _("Move Track &Up"));
menu->Append(OnMoveDownID, _("Move Track &Down"));
menu->Append(OnMoveTopID, _("Move Track to &Top"));
menu->Append(OnMoveBottomID, _("Move Track to &Bottom"));
menu->AppendSeparator();
wxMenu *theMenu;
#ifdef EXPERIMENTAL_CASCADE_TCP_MENU
wxMenu *const moveMenu = new wxMenu();
menu->Append(0, _("&Move"), moveMenu);
theMenu = moveMenu;
wxString names[] = {
_("&Up"),
_("&Down"),
_("To &Top"),
_("To &Bottom"),
};
#else
theMenu = menu;
wxString names[] = {
_("Move Track &Up"),
_("Move Track &Down"),
_("Move Track to &Top"),
_("Move Track to &Bottom"),
};
#endif
theMenu->Append(OnMoveUpID, names[0]);
theMenu->Append(OnMoveDownID, names[1]);
theMenu->Append(OnMoveTopID, names[2]);
theMenu->Append(OnMoveBottomID, names[3]);
menu->AppendSeparator();
}
// static