From: <sag...@us...> - 2012-11-16 22:41:30
|
Revision: 1428 http://modplug.svn.sourceforge.net/modplug/?rev=1428&view=rev Author: saga-games Date: 2012-11-16 22:41:23 +0000 (Fri, 16 Nov 2012) Log Message: ----------- [Imp] Added context menu shortcuts for Record Select. Modified Paths: -------------- trunk/OpenMPT/mptrack/View_pat.cpp trunk/OpenMPT/mptrack/View_pat.h Modified: trunk/OpenMPT/mptrack/View_pat.cpp =================================================================== --- trunk/OpenMPT/mptrack/View_pat.cpp 2012-11-16 22:34:22 UTC (rev 1427) +++ trunk/OpenMPT/mptrack/View_pat.cpp 2012-11-16 22:41:23 UTC (rev 1428) @@ -1460,7 +1460,7 @@ { if (BuildSoloMuteCtxMenu(hMenu, ih, nChn, pSndFile)) AppendMenu(hMenu, MF_SEPARATOR, 0, ""); - BuildRecordCtxMenu(hMenu, nChn, pModDoc); + BuildRecordCtxMenu(hMenu, ih, nChn, pModDoc); BuildChannelControlCtxMenu(hMenu); } } @@ -5762,11 +5762,11 @@ return true; } -bool CViewPattern::BuildRecordCtxMenu(HMENU hMenu, UINT nChn, CModDoc* pModDoc) const -//----------------------------------------------------------------------------------- +bool CViewPattern::BuildRecordCtxMenu(HMENU hMenu, CInputHandler *ih, UINT nChn, CModDoc* pModDoc) const +//------------------------------------------------------------------------------------------------------ { - AppendMenu(hMenu, pModDoc->IsChannelRecord1(nChn) ? (MF_STRING|MF_CHECKED) : MF_STRING, ID_EDIT_RECSELECT, "Record select"); - AppendMenu(hMenu, pModDoc->IsChannelRecord2(nChn) ? (MF_STRING|MF_CHECKED) : MF_STRING, ID_EDIT_SPLITRECSELECT, "Split Record select"); + AppendMenu(hMenu, pModDoc->IsChannelRecord1(nChn) ? (MF_STRING | MF_CHECKED) : MF_STRING, ID_EDIT_RECSELECT, "Record select\t" + ih->GetKeyTextFromCommand(kcChannelRecordSelect)); + AppendMenu(hMenu, pModDoc->IsChannelRecord2(nChn) ? (MF_STRING | MF_CHECKED) : MF_STRING, ID_EDIT_SPLITRECSELECT, "Split Record select\t" + ih->GetKeyTextFromCommand(kcChannelSplitRecordSelect)); return true; } Modified: trunk/OpenMPT/mptrack/View_pat.h =================================================================== --- trunk/OpenMPT/mptrack/View_pat.h 2012-11-16 22:34:22 UTC (rev 1427) +++ trunk/OpenMPT/mptrack/View_pat.h 2012-11-16 22:41:23 UTC (rev 1428) @@ -428,7 +428,7 @@ bool BuildChannelControlCtxMenu(HMENU hMenu) const; bool BuildPluginCtxMenu(HMENU hMenu, UINT nChn, CSoundFile *pSndFile) const; - bool BuildRecordCtxMenu(HMENU hMenu, UINT nChn, CModDoc *pModDoc) const; + bool BuildRecordCtxMenu(HMENU hMenu, CInputHandler *ih, UINT nChn, CModDoc *pModDoc) const; bool BuildSoloMuteCtxMenu(HMENU hMenu, CInputHandler *ih, UINT nChn, CSoundFile *pSndFile) const; bool BuildRowInsDelCtxMenu(HMENU hMenu, CInputHandler *ih) const; bool BuildMiscCtxMenu(HMENU hMenu, CInputHandler *ih) const; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |