From: <sag...@us...> - 2015-03-10 18:20:42
|
Revision: 4853 http://sourceforge.net/p/modplug/code/4853 Author: saga-games Date: 2015-03-10 18:20:29 +0000 (Tue, 10 Mar 2015) Log Message: ----------- [Imp] Add keyboard shortcuts for channel transpose and channel duplicate [Mod] OpenMPT: Version is now 1.24.02.05 Modified Paths: -------------- trunk/OpenMPT/common/versionNumber.h trunk/OpenMPT/mptrack/CommandSet.cpp trunk/OpenMPT/mptrack/CommandSet.h trunk/OpenMPT/mptrack/View_pat.cpp Modified: trunk/OpenMPT/common/versionNumber.h =================================================================== --- trunk/OpenMPT/common/versionNumber.h 2015-03-10 17:45:38 UTC (rev 4852) +++ trunk/OpenMPT/common/versionNumber.h 2015-03-10 18:20:29 UTC (rev 4853) @@ -19,7 +19,7 @@ #define VER_MAJORMAJOR 1 #define VER_MAJOR 24 #define VER_MINOR 02 -#define VER_MINORMINOR 04 +#define VER_MINORMINOR 05 //Version string. For example "1.17.02.28" #define MPT_VERSION_STR VER_STRINGIZE(VER_MAJORMAJOR) "." VER_STRINGIZE(VER_MAJOR) "." VER_STRINGIZE(VER_MINOR) "." VER_STRINGIZE(VER_MINORMINOR) Modified: trunk/OpenMPT/mptrack/CommandSet.cpp =================================================================== --- trunk/OpenMPT/mptrack/CommandSet.cpp 2015-03-10 17:45:38 UTC (rev 4852) +++ trunk/OpenMPT/mptrack/CommandSet.cpp 2015-03-10 18:20:29 UTC (rev 4853) @@ -676,6 +676,8 @@ DefineKeyCommand(kcSampleCenterSustainEnd, 1919, _T("Center sustain loop end in view")); DefineKeyCommand(kcInstrumentEnvelopeLoad, 1920, _T("Load Envelope")); DefineKeyCommand(kcInstrumentEnvelopeSave, 1921, _T("Save Envelope")); + DefineKeyCommand(kcChannelTranspose, 1922, _T("Transpose Channel")); + DefineKeyCommand(kcChannelDuplicate, 1923, _T("Duplicate Channel")); Modified: trunk/OpenMPT/mptrack/CommandSet.h =================================================================== --- trunk/OpenMPT/mptrack/CommandSet.h 2015-03-10 17:45:38 UTC (rev 4852) +++ trunk/OpenMPT/mptrack/CommandSet.h 2015-03-10 18:20:29 UTC (rev 4853) @@ -287,6 +287,8 @@ kcChannelRecordSelect, kcChannelSplitRecordSelect, kcChannelReset, + kcChannelTranspose, + kcChannelDuplicate, kcChannelSettings, kcEndChannelKeys = kcChannelSettings, kcCopyAndLoseSelection, Modified: trunk/OpenMPT/mptrack/View_pat.cpp =================================================================== --- trunk/OpenMPT/mptrack/View_pat.cpp 2015-03-10 17:45:38 UTC (rev 4852) +++ trunk/OpenMPT/mptrack/View_pat.cpp 2015-03-10 18:20:29 UTC (rev 4853) @@ -2894,7 +2894,7 @@ void CViewPattern::OnTransposeChannel() //------------------------------------- { - CInputDlg dlg(this, "Enter transpose amount:", -(NOTE_MAX - NOTE_MIN), (NOTE_MAX - NOTE_MIN), m_nTransposeAmount); + CInputDlg dlg(this, "Enter transpose amount (affects all patterns):", -(NOTE_MAX - NOTE_MIN), (NOTE_MAX - NOTE_MIN), m_nTransposeAmount); if(dlg.DoModal() == IDOK) { m_nTransposeAmount = dlg.resultNumber; @@ -4540,6 +4540,8 @@ quickChannelProperties.Show(GetDocument(), m_Cursor.GetChannel(), m_nPattern, CPoint(windowPos.left + windowPos.Width() / 2, windowPos.top + windowPos.Height() / 2)); return wParam; } + case kcChannelTranspose: m_MenuCursor = m_Cursor; OnTransposeChannel(); return wParam; + case kcChannelDuplicate: m_MenuCursor = m_Cursor; OnDuplicateChannel(); return wParam; case kcDecreaseSpacing: if(m_nSpacing > 0) SetSpacing(m_nSpacing - 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |