summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2010-08-21 17:04:41 +0000
committerRobert Jonsson <spamatica@gmail.com>2010-08-21 17:04:41 +0000
commit377486989e6ac9b7733f02aa001d80ad76e69c73 (patch)
tree0106c45a251178732ff02dedfe3be789921dae56
parent031e6d6ab98a02bc07bf840d25ad3b326d4f9851 (diff)
len of event shortcuts
-rw-r--r--muse/ChangeLog1
-rw-r--r--muse/muse/midiedit/ecanvas.cpp10
-rw-r--r--muse/muse/shortcuts.cpp3
-rw-r--r--muse/muse/shortcuts.h2
4 files changed, 16 insertions, 0 deletions
diff --git a/muse/ChangeLog b/muse/ChangeLog
index faa0837b..75d4a4d4 100644
--- a/muse/ChangeLog
+++ b/muse/ChangeLog
@@ -1,6 +1,7 @@
21.08.2010
* Renamed: Soft synth configuration changed to Synth configuration, as per patch from Geoff King (rj)
* Fixed: Shortcuts with modifier keys wasn't working for global shortcuts, should be now (rj)
+ * Added: Shortcuts for changing len of events, default Ctrl+Shift+Left/Right (rj)
10.08.2010
* Fixed/Changed: Grid reacts to midi resolution change (rj)
01.08.2010
diff --git a/muse/muse/midiedit/ecanvas.cpp b/muse/muse/midiedit/ecanvas.cpp
index e19ee78f..202e33de 100644
--- a/muse/muse/midiedit/ecanvas.cpp
+++ b/muse/muse/midiedit/ecanvas.cpp
@@ -345,6 +345,16 @@ void EventCanvas::keyPress(QKeyEvent* event)
// TODO: Check boundaries
modifySelected(NoteInfo::VAL_TIME, 0 - editor->raster());
}
+
+ else if (key == shortcuts[SHRT_INCREASE_LEN].key) {
+ // TODO: Check boundaries
+ modifySelected(NoteInfo::VAL_LEN, editor->raster());
+ }
+ else if (key == shortcuts[SHRT_DECREASE_LEN].key) {
+ // TODO: Check boundaries
+ modifySelected(NoteInfo::VAL_LEN, 0 - editor->raster());
+ }
+
else
event->ignore();
}
diff --git a/muse/muse/shortcuts.cpp b/muse/muse/shortcuts.cpp
index 11f1dd67..ee25de61 100644
--- a/muse/muse/shortcuts.cpp
+++ b/muse/muse/shortcuts.cpp
@@ -221,6 +221,9 @@ void initShortCuts()
defShrt(SHRT_TOGGLE_PUNCT2, Qt::Key_Comma, "Quantize: Toggle punctuation quantization (2)", PROLL_SHRT, "midi_quant_punct2");
defShrt(SHRT_INSERT_AT_LOCATION, Qt::SHIFT + Qt::Key_Right, "Edit: Insert at location", PROLL_SHRT, "midi_insert_at_loc");
+ defShrt(SHRT_INCREASE_LEN, Qt::CTRL + Qt::SHIFT + Qt::Key_Right, "Edit: Increase length", PROLL_SHRT, "increase_len");
+ defShrt(SHRT_DECREASE_LEN, Qt::CTRL + Qt::SHIFT + Qt::Key_Left, "Edit: Decrease length", PROLL_SHRT, "decrease_len");
+
//-----------------------------------------------------------
// List edit:
//-----------------------------------------------------------
diff --git a/muse/muse/shortcuts.h b/muse/muse/shortcuts.h
index b1d92463..89875375 100644
--- a/muse/muse/shortcuts.h
+++ b/muse/muse/shortcuts.h
@@ -189,6 +189,8 @@ enum {
SHRT_DEC_POS,
SHRT_LOCATORS_TO_SELECTION, //Alt+P, currently in arranger & pianoroll
SHRT_INSERT_AT_LOCATION, //Shift+CrsrRight
+ SHRT_INCREASE_LEN,
+ SHRT_DECREASE_LEN,
SHRT_TOOL_1,//Shift+1 Pointer
SHRT_TOOL_2,//Shift+2 Pen