void RGBMatrix::setFixtureGroup(quint32 id) { m_fixtureGroupID = id; { QMutexLocker algoLocker(&m_algorithmMutex); m_group = doc()->fixtureGroup(m_fixtureGroupID); } m_stepsCount = stepsCount(); }
void RGBMatrix::setProperty(QString propName, QString value) { QMutexLocker algoLocker(&m_algorithmMutex); m_properties[propName] = value; if (m_algorithm != NULL && m_algorithm->type() == RGBAlgorithm::Script) { RGBScript *script = static_cast<RGBScript*> (m_algorithm); script->setProperty(propName, value); } m_stepsCount = stepsCount(); }
QString RGBMatrix::property(QString propName) { QMutexLocker algoLocker(&m_algorithmMutex); /** If the property is cached, then return it right away */ if (m_properties.contains(propName)) return m_properties[propName]; /** Otherwise, let's retrieve it from the Script */ if (m_algorithm != NULL && m_algorithm->type() == RGBAlgorithm::Script) { RGBScript *script = static_cast<RGBScript*> (m_algorithm); return script->property(propName); } return QString(); }
QString RGBMatrix::property(QString propName) { QMutexLocker algoLocker(&m_algorithmMutex); return m_properties[propName]; }
void RGBMatrix::setProperty(QString propName, QString value) { QMutexLocker algoLocker(&m_algorithmMutex); m_properties[propName] = value; }