Changeset 1278
- Timestamp:
- 10/08/07 14:31:15 (12 months ago)
- Location:
- trunk/src/buzelib
- Files:
-
- 3 modified
-
PatternView.cpp (modified) (3 diffs)
-
PatternView.h (modified) (1 diff)
-
res/keyboard_patterneditor.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/buzelib/PatternView.cpp
r1277 r1278 780 780 781 781 782 void CPatternView::transposeSelection(int delta ) {782 void CPatternView::transposeSelection(int delta, bool notesOnly) { 783 783 if (pattern == 0) return ; 784 784 … … 795 795 } 796 796 797 selection->transpose(delta );797 selection->transpose(delta, notesOnly); 798 798 799 799 // skal vi kanskje ha document->beginPatternEdit(); som returnerer en PatternEdit-objekt som vi adder edits på, og så har vi commitPatternEdit() som tar undo-action til parameter og kjører igang hele showet … … 861 861 862 862 LRESULT CPatternView::OnTransposeSelectionOctaveUp(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { 863 transposeSelection(12 );863 transposeSelection(12, false); 864 864 return 0; 865 865 } 866 866 867 867 LRESULT CPatternView::OnTransposeSelectionOctaveDown(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { 868 transposeSelection(-12 );868 transposeSelection(-12, false); 869 869 return 0; 870 870 } 871 871 872 872 LRESULT CPatternView::OnTransposeSelectionUp(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { 873 transposeSelection(1 );873 transposeSelection(1, false); 874 874 return 0; 875 875 } 876 876 877 877 LRESULT CPatternView::OnTransposeSelectionDown(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { 878 transposeSelection(-1 );878 transposeSelection(-1, false); 879 879 return 0; 880 880 } -
trunk/src/buzelib/PatternView.h
r1274 r1278 332 332 void setPattern(zzub::metaplugin* plugin, zzub::pattern* pattern); 333 333 334 void transposeSelection(int delta );334 void transposeSelection(int delta, bool notesOnly); 335 335 336 336 zzub::patterntrack* createSelection(); -
trunk/src/buzelib/res/keyboard_patterneditor.txt
r1232 r1278 52 52 Ctrl+Shift - Transpose octave down 53 53 Ctrl+F Double pattern length 54 Shift+F Double pattern length, no stretching 54 55 Ctrl+G Halve pattern length 55 56 Ctrl+I Interpolate values in selection
