ControlParameter::ControlParameter(const ControlParameter &control): XmlExportable(), m_name(control.getName()), m_type(control.getType()), m_description(control.getDescription()), m_min(control.getMin()), m_max(control.getMax()), m_default(control.getDefault()), m_controllerValue(control.getControllerValue()), m_colourIndex(control.getColourIndex()), m_ipbPosition(control.getIPBPosition()) { }
void ControlRulerWidget::slotAddControlRuler(const ControlParameter &controlParameter) { if (!m_viewSegment) return; ControlRuler *controlruler = new ControllerEventsRuler(m_viewSegment, m_scale, this, &controlParameter); controlruler->setXOffset(m_gutter); connect(controlruler, SIGNAL(dragScroll(timeT)), this, SLOT(slotDragScroll(timeT))); connect(controlruler, SIGNAL(rulerSelectionChanged(EventSelection *)), this, SLOT(slotChildRulerSelectionChanged(EventSelection *))); addRuler(controlruler,QString::fromStdString(controlParameter.getName())); }