Logo Search packages:      
Sourcecode: kdenlive version File versions

void Command::KAddEffectCommand::addEffect (  )  [private]

Add the effect to the clip.

Definition at line 102 of file kaddeffectcommand.cpp.

References DocTrackBase::addEffectToClip(), KdenliveDoc::createEffect(), m_effect, m_effectIndex, m_position, m_trackIndex, KdenliveDoc::projectClip(), and DocClipProject::track().

Referenced by unexecute().

                                      {
      DocTrackBase *track =
          m_document->projectClip().track(m_trackIndex);
      if (track) {
          track->addEffectToClip(m_position, m_effectIndex,
            m_document->createEffect(m_effect.documentElement()));
      } else {
          kdError() <<
            "KAddEffectCommand::addEffect() - cannot find track index "
            << m_trackIndex << ", expect inconsistancies..." << endl;
      }
    }


Generated by  Doxygen 1.6.0   Back to index