summaryrefslogtreecommitdiffstats
path: root/src/effects/effectchainslot.cpp
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2020-04-25 14:33:04 -0500
committerBe <be@mixxx.org>2020-04-25 14:33:04 -0500
commit6a0980111dbb6d0ea3d6b678e07e51e05f4dce57 (patch)
tree6176a0161a3e30108928227e93c1c50a2b3d1659 /src/effects/effectchainslot.cpp
parent0dbf1fe0d1b9a427256f05d184772507e90a36ae (diff)
EffectChainSlot: reimplement chain_selector and next/prev_chain
Now they are actually useful for the first time.
Diffstat (limited to 'src/effects/effectchainslot.cpp')
-rw-r--r--src/effects/effectchainslot.cpp27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/effects/effectchainslot.cpp b/src/effects/effectchainslot.cpp
index f7d8b895f9..378361986e 100644
--- a/src/effects/effectchainslot.cpp
+++ b/src/effects/effectchainslot.cpp
@@ -308,13 +308,12 @@ void EffectChainSlot::slotControlChainSuperParameter(double v, bool force) {
}
}
-void EffectChainSlot::slotControlChainSelector(double v) {
-// qDebug() << debugString() << "slotControlChainSelector" << v;
-// if (v > 0) {
-// emit nextChain(m_iChainSlotNumber, m_pEffectChain);
-// } else if (v < 0) {
-// emit prevChain(m_iChainSlotNumber, m_pEffectChain);
-// }
+void EffectChainSlot::slotControlChainSelector(double value) {
+ if (value > 0) {
+ emit selectChainPreset(this, 1);
+ } else {
+ emit selectChainPreset(this, -1);
+ }
}
void EffectChainSlot::slotControlLoadChainPreset(double value) {
@@ -322,17 +321,15 @@ void EffectChainSlot::slotControlLoadChainPreset(double value) {
emit loadChainPreset(this, value - 1);
}
-void EffectChainSlot::slotControlChainNextPreset(double v) {
- // qDebug() << debugString() << "slotControlChainNextPreset" << v;
- if (v > 0) {
- slotControlChainSelector(1);
+void EffectChainSlot::slotControlChainNextPreset(double value) {
+ if (value > 0) {
+ emit selectChainPreset(this, 1);
}
}
-void EffectChainSlot::slotControlChainPrevPreset(double v) {
- //qDebug() << debugString() << "slotControlChainPrevPreset" << v;
- if (v > 0) {
- slotControlChainSelector(-1);
+void EffectChainSlot::slotControlChainPrevPreset(double value) {
+ if (value > 0) {
+ emit selectChainPreset(this, -1);
}
}