diff options
author | Be <be@mixxx.org> | 2020-04-03 13:58:09 -0500 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-04-03 18:16:05 -0500 |
commit | be99aa2efb6a71d5493db4620bbdc9ed8455e59d (patch) | |
tree | 4794dd7eb805c0fc9593d93cf4a1bab46be8c83e /src/effects/effectchainslot.cpp | |
parent | e3fdb9b1fe0f920b69abd9b9e515a469a6311005 (diff) |
reimplement saving to effects.xml with new EffectPreset classes
Diffstat (limited to 'src/effects/effectchainslot.cpp')
-rw-r--r-- | src/effects/effectchainslot.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/effects/effectchainslot.cpp b/src/effects/effectchainslot.cpp index 7ebf5ba8e7..613098f25f 100644 --- a/src/effects/effectchainslot.cpp +++ b/src/effects/effectchainslot.cpp @@ -386,61 +386,3 @@ void EffectChainSlot::disableForInputChannel(const ChannelHandleAndGroup& handle request->DisableInputChannelForChain.pChannelHandle = &handle_group.handle(); m_pEffectsManager->writeRequest(request); } - -QDomElement EffectChainSlot::toXml(QDomDocument* doc) const { - QDomElement chainElement = doc->createElement(EffectXml::Chain); - - // XmlParse::addElement(*doc, chainElement, EffectXml::ChainId, - // m_pEffectChain->id()); - // XmlParse::addElement(*doc, chainElement, EffectXml::ChainName, - // m_pEffectChain->name()); - // XmlParse::addElement(*doc, chainElement, EffectXml::ChainDescription, - // m_pEffectChain->description()); - // XmlParse::addElement(*doc, chainElement, EffectXml::ChainMixMode, - // EffectChain::mixModeToString( - // static_cast<EffectChainMixMode>( - // static_cast<int>(m_pControlChainMixMode->get())))); - // XmlParse::addElement(*doc, chainElement, EffectXml::ChainSuperParameter, - // QString::number(m_pControlChainSuperParameter->get())); - - // QDomElement effectsElement = doc->createElement(EffectXml::EffectsRoot); - // for (const auto& pEffectSlot : m_effectSlots) { - // QDomElement effectNode; - // if (pEffectSlot->getEffect()) { - // effectNode = pEffectSlot->toXml(doc); - // } else { - // // Create empty element to ensure effects stay in order - // // if there are empty slots before loaded slots. - // effectNode = doc->createElement(EffectXml::Effect); - // } - // effectsElement.appendChild(effectNode); - // } - // chainElement.appendChild(effectsElement); - - return chainElement; -} - -void EffectChainSlot::loadChainSlotFromXml(const QDomElement& effectChainElement) { - // if (!effectChainElement.hasChildNodes()) { - // return; - // } - - // // FIXME: mix mode is set in EffectChain::createFromXml - - // m_pControlChainSuperParameter->set(XmlParse::selectNodeDouble( - // effectChainElement, - // EffectXml::ChainSuperParameter)); - - // QDomElement effectsElement = XmlParse::selectElement(effectChainElement, - // EffectXml::EffectsRoot); - // QDomNodeList effectsNodeList = effectsElement.childNodes(); - // for (int i = 0; i < m_effectSlots.size(); ++i) { - // if (m_effectSlots[i] != nullptr) { - // QDomNode effectNode = effectsNodeList.at(i); - // if (effectNode.isElement()) { - // QDomElement effectElement = effectNode.toElement(); - // m_effectSlots[i]->loadEffectSlotFromXml(effectElement); - // } - // } - // } -} |