summaryrefslogtreecommitdiff
path: root/muse2/muse/midiedit/dlist.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-10-03 12:35:57 +0000
committerFlorian Jung <flo@windfisch.org>2011-10-03 12:35:57 +0000
commitb99988059eb65520df143380aa707c52256cf77c (patch)
tree1823821eb0bbe55cbfb02a550b4ca212c2280f0e /muse2/muse/midiedit/dlist.cpp
parentfbb72c809a2e75e0d4b038056df80d60c09d62c5 (diff)
added support for grouping tracks in drum editor
Diffstat (limited to 'muse2/muse/midiedit/dlist.cpp')
-rw-r--r--muse2/muse/midiedit/dlist.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/muse2/muse/midiedit/dlist.cpp b/muse2/muse/midiedit/dlist.cpp
index be7255b9..7de39b81 100644
--- a/muse2/muse/midiedit/dlist.cpp
+++ b/muse2/muse/midiedit/dlist.cpp
@@ -295,7 +295,7 @@ void DList::viewMousePressEvent(QMouseEvent* ev)
else if (val > 127)
val = 127;
- if (old_style_drummap_mode) //FINDMICH auch beim doppelklick!
+ if (old_style_drummap_mode)
{
//Check if there is any other drumMap with the same inmap value (there should be one (and only one):-)
//If so, switch the inmap between the instruments
@@ -318,7 +318,7 @@ void DList::viewMousePressEvent(QMouseEvent* ev)
dm->len = val;
break;
case COL_ANOTE:
- if (old_style_drummap_mode) //only allow changing in old style mode FINDMICH auch beim doppelklick
+ if (old_style_drummap_mode) //only allow changing in old style mode
{
val = dm->anote + incVal;
if (val < 0)
@@ -412,10 +412,7 @@ void DList::viewMousePressEvent(QMouseEvent* ev)
}
if (!old_style_drummap_mode && dm_old != *dm) //something changed and we're in new style mode?
- {
- //FINDMICHJETZT propagate that!
dcanvas->propagate_drummap_change(dm-ourDrumMap);
- }
redraw();
}
@@ -579,7 +576,7 @@ void DList::setCurDrumInstrument(int instr)
if (currentlySelected != dm) {
currentlySelected = dm;
emit curDrumInstrumentChanged(instr);
- song->update(SC_DRUMMAP); //FINDMICH necessary??
+ song->update(SC_DRUMMAP);
}
}
@@ -678,10 +675,7 @@ void DList::returnPressed()
}
if (editEntryOld != *editEntry)
- {
- //FINDMICHJETZT propagate!
dcanvas->propagate_drummap_change(editEntry-ourDrumMap);
- }
selectedColumn = -1;
editor->hide();
@@ -740,10 +734,7 @@ void DList::pitchEdited()
}
if (editEntryOld != *editEntry)
- {
- //FINDMICHJETZT propagate
dcanvas->propagate_drummap_change(editEntry-ourDrumMap);
- }
selectedColumn = -1;
pitch_editor->hide();