- const QStyleOptionGraphicsItem *option,
- QWidget *widget);
- virtual int type () const;
- void moveTo(double x, double offset);
- OPERATIONTYPE operationMode(QPointF pos);
- int clipProducer();
- int clipType();
- QString clipName();
- int maxDuration();
-
- protected:
- virtual void mouseMoveEvent ( QGraphicsSceneMouseEvent * event );
- virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
- virtual void mousePressEvent ( QGraphicsSceneMouseEvent * event );
-
- private:
- LabelItem *m_label;
- int m_textWidth;
+ const QStyleOptionGraphicsItem *option,
+ QWidget *);
+ virtual int type() const;
+ void resizeStart(int posx, double scale);
+ void resizeEnd(int posx, double scale);
+ OPERATIONTYPE operationMode(QPointF pos, double scale);
+ int clipProducer() const;
+ int clipType() const;
+ DocClipBase *baseClip() const;
+ QString clipName() const;
+ QDomElement xml() const;
+
+ void setFadeOut(int pos, double scale);
+ void setFadeIn(int pos, double scale);
+ /** 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 */
+ QMap <QString, QString> addEffect(QDomElement effect, bool animate = true);
+ /** Get the effect parameters that will be passed to Mlt */
+ QMap <QString, QString> getEffectArgs(QDomElement effect);
+ /** Delete effect with id index */
+ void deleteEffect(QString index);
+ /** return the number of effects in that clip */
+ int effectsCount();
+ /** return a unique effect id */
+ int effectsCounter();
+ /** return the xml of effect at index ix in stack */
+ QDomElement effectAt(int ix);
+ /** Replace effect at pos ix with given value */
+ void setEffectAt(int ix, QDomElement effect);
+ void flashClip();
+ void addTransition(Transition*);
+ /** regenerate audio and video thumbnails */
+ void resetThumbs();
+ /** update clip properties from base clip */
+ void refreshClip();
+ /** Returns a list of times for this clip's markers */
+ QList <GenTime> snapMarkers() const;
+ uint fadeIn() const;
+ uint fadeOut() const;
+ void setSelectedEffect(int ix);
+ void updateKeyframeEffect();
+ QDomElement selectedEffect();
+ int selectedEffectIndex() const;
+
+protected:
+ //virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
+ virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * event);
+ virtual void mousePressEvent(QGraphicsSceneMouseEvent * event);
+ virtual void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
+ virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
+ virtual void dropEvent(QGraphicsSceneDragDropEvent *event);
+ virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *);
+ virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *);
+
+private:
+ DocClipBase *m_clip;