+ m_valueItems[paramName] = cval;
+ connect(cval->kcolorbutton, SIGNAL(clicked()) , this, SLOT(collectAllParameters()));
+ m_uiItems.append(cval);
+ } else if (type == "position") {
+ int pos = value.toInt();
+ if (d.attribute("id") == "fadein" || d.attribute("id") == "fade_from_black") {
+ pos = pos - m_in;
+ } else if (d.attribute("id") == "fadeout" || d.attribute("id") == "fade_to_black") {
+ // fadeout position starts from clip end
+ pos = m_out - (pos - m_in);
+ }
+ PositionEdit *posedit = new PositionEdit(paramName, pos, 1, m_out, m_timecode);
+ m_vbox->addWidget(posedit);
+ m_valueItems[paramName+"position"] = posedit;
+ connect(posedit, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
+ m_items.append(posedit);