| 119 | |
| 120 | |
| 121 | void VstEffectControls::saveSettings( QDomDocument & _doc, QDomElement & _this ) |
| 122 | { |
| 123 | _this.setAttribute( "plugin", m_effect->m_key.attributes["file"] ); |
| 124 | m_effect->m_pluginMutex.lock(); |
| 125 | if( m_effect->m_plugin != NULL ) |
| 126 | { |
| 127 | m_effect->m_plugin->saveSettings( _doc, _this ); |
| 128 | if (knobFModel != NULL) { |
| 129 | const QMap<QString, QString> & dump = m_effect->m_plugin->parameterDump(); |
| 130 | paramCount = dump.size(); |
| 131 | char paramStr[35]; |
| 132 | for( int i = 0; i < paramCount; i++ ) |
| 133 | { |
| 134 | if (knobFModel[i]->isAutomated() || knobFModel[i]->controllerConnection()) { |
| 135 | sprintf( paramStr, "param%d", i); |
| 136 | knobFModel[i]->saveSettings( _doc, _this, paramStr ); |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | m_effect->m_pluginMutex.unlock(); |
| 142 | } |
| 143 | |
| 144 | |
| 145 |
nothing calls this directly
no test coverage detected