Mercurial > hg > svcore
comparison plugin/transform/Transform.cpp @ 353:1c6816220185
* more handy functions
author | Chris Cannam |
---|---|
date | Mon, 10 Dec 2007 17:37:13 +0000 |
parents | d7c41483af8f |
children | 4bb19132da23 |
comparison
equal
deleted
inserted
replaced
352:f4f9c039c458 | 353:1c6816220185 |
---|---|
172 | 172 |
173 QString | 173 QString |
174 Transform::getOutput() const | 174 Transform::getOutput() const |
175 { | 175 { |
176 return m_id.section(':', 3); | 176 return m_id.section(':', 3); |
177 } | |
178 | |
179 void | |
180 Transform::setPluginIdentifier(QString pluginIdentifier) | |
181 { | |
182 m_id = pluginIdentifier + ':' + getOutput(); | |
183 } | |
184 | |
185 void | |
186 Transform::setOutput(QString output) | |
187 { | |
188 m_id = getPluginIdentifier() + ':' + output; | |
189 } | |
190 | |
191 TransformId | |
192 Transform::getIdentifierForPluginOutput(QString pluginIdentifier, | |
193 QString output) | |
194 { | |
195 return pluginIdentifier + ':' + output; | |
177 } | 196 } |
178 | 197 |
179 const Transform::ParameterMap & | 198 const Transform::ParameterMap & |
180 Transform::getParameters() const | 199 Transform::getParameters() const |
181 { | 200 { |