Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

void EffectStackView::slotClipItemSelected ( ClipItem *  c,
int  ix 
) [slot]

Sets the clip whose effect list should be managed.

Parameters:
c Clip whose effect list should be managed
ix Effect to preselect

Definition at line 154 of file effectstackview.cpp.

References setupListView().

{
    if (c && !c->isEnabled()) return;
    if (c && c == m_clipref) {
        if (ix == -1) ix = m_ui.effectlist->currentRow();
        //if (ix == -1 || ix == m_ui.effectlist->currentRow()) return;
    } else {
        m_clipref = c;
        if (c) {
            ix = c->selectedEffectIndex();
            QString size = c->baseClip()->getProperty("frame_size");
            double factor = c->baseClip()->getProperty("aspect_ratio").toDouble();
            QPoint p((int)(size.section('x', 0, 0).toInt() * factor + 0.5), size.section('x', 1, 1).toInt());
            m_effectedit->setFrameSize(p);
            m_effectedit->setFrameSize(p);
        } else ix = 0;
    }
    if (m_clipref == NULL) {
        m_ui.effectlist->blockSignals(true);
        m_ui.effectlist->clear();
        m_effectedit->transferParamDesc(QDomElement(), 0, 0, 0);
        m_ui.region_url->clear();
        m_ui.effectlist->blockSignals(false);
        setEnabled(false);
        return;
    }
    setEnabled(true);
    setupListView(ix);
}


Generated by  Doxygen 1.6.0   Back to index