m_speed(speed),
m_strobe(strobe),
m_framePixelWidth(0),
- m_limitedKeyFrames(false),
- m_isMainSelectedClip(false)
+ m_limitedKeyFrames(false)
{
setZValue(2);
m_effectList = EffectsList(true);
}
*/
-void ClipItem::resizeStart(int posx, bool /*size*/)
+void ClipItem::resizeStart(int posx, bool /*size*/, bool emitChange)
{
bool sizeLimit = false;
if (clipType() != IMAGE && clipType() != COLOR && clipType() != TEXT) {
m_startThumbTimer.start(150);
}
}
+ if (m_isMainSelectedClip && emitChange) emit updateRange();
}
-void ClipItem::resizeEnd(int posx)
+void ClipItem::resizeEnd(int posx, bool emitChange)
{
const int max = (startPos() - cropStart() + maxDuration()).frames(m_fps);
if (posx > max && maxDuration() != GenTime()) posx = max;
m_endThumbTimer.start(150);
}
}
+ if (m_isMainSelectedClip && emitChange) emit updateRange();
}
//virtual
update();
}
-void ClipItem::setMainSelectedClip(bool selected)
-{
- if (selected == m_isMainSelectedClip) return;
- m_isMainSelectedClip = selected;
- update();
-}
-
-bool ClipItem::isMainSelectedClip()
-{
- return m_isMainSelectedClip;
-}
#include "clipitem.moc"