const QStyleOptionGraphicsItem *option,
QWidget *);
virtual int type() const;
- void resizeStart(int posx);
+ void resizeStart(int posx, bool size = true);
void resizeEnd(int posx);
OPERATIONTYPE operationMode(QPointF pos);
const QString clipProducer() const;
QString clipName() const;
void setClipName(const QString &name);
QDomElement xml() const;
+ QDomElement itemXml() const;
ClipItem *clone(ItemInfo info) const;
const EffectsList effectList() const;
void setFadeOut(int pos);
void setFadeIn(int pos);
+ void setFades(int in, int out);
/** Give a string list of the clip's effect names */
QStringList effectNames();
/** Add an effect to the clip and return the parameters that will be passed to Mlt */
/** Returns a list of times for this clip's markers */
QList <GenTime> snapMarkers() const;
QList <CommentedTime> commentedSnapMarkers() const;
+ /** Get the position of the fade in effect */
int fadeIn() const;
+ /** Get the position of the fade out effect */
int fadeOut() const;
void setSelectedEffect(const int ix);
void updateKeyframeEffect();
bool isAudioOnly() const;
/** Called when clip start is resized, adjust keyframes values */
bool checkEffectsKeyframesPos(const int previous, const int current, bool fromStart);
+ void insertKeyframe(QDomElement effect, int pos, int val);
+ void movedKeyframe(QDomElement effect, int oldpos, int newpos, double value);
+ void updateKeyframes(QDomElement effect);
protected:
//virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
QPixmap m_startPix;
QPixmap m_endPix;
+
bool m_hasThumbs;
QTimer m_startThumbTimer;
QTimer m_endThumbTimer;
void animate(qreal value);
void slotSetStartThumb(QImage img);
void slotSetEndThumb(QImage img);
- void slotThumbReady(int frame, QPixmap pix);
+ void slotThumbReady(int frame, QImage img);
public slots:
void slotFetchThumbs();