]> git.sesse.net Git - kdenlive/blobdiff - src/clipitem.h
Cleanup timecode display
[kdenlive] / src / clipitem.h
index 5e69f84db9ca4c117971ddba14fddbde6be83334..0522c4bbaea62367478f8c8fe5427e40c07d38bb 100644 (file)
@@ -48,9 +48,9 @@ public:
                        QWidget *);
     virtual int type() const;
     void resizeStart(int posx, double speed = 1.0);
-    void resizeEnd(int posx, double speed = 1.0, bool updateKeyFrames = true);
+    void resizeEnd(int posx, double speed = 1.0);
     OPERATIONTYPE operationMode(QPointF pos);
-    const QString &clipProducer() const;
+    const QString clipProducer() const;
     int clipType() const;
     DocClipBase *baseClip() const;
     QString clipName() const;
@@ -72,8 +72,10 @@ public:
     int effectsCount();
     /** return a unique effect id */
     int effectsCounter();
-    /** return the xml of effect at index ix in stack */
+    /** return a copy of the xml of effect at index ix in stack */
     QDomElement effectAt(int ix) const;
+    /** return the xml of effect at index ix in stack */
+    QDomElement getEffectAt(int ix) const;
     /** Replace effect at pos ix with given value */
     void setEffectAt(int ix, QDomElement effect);
     void flashClip();
@@ -110,6 +112,8 @@ public:
     void setAudioOnly(bool force);
     bool isVideoOnly() const;
     bool isAudioOnly() const;
+    /** Called when clip start is resized, adjust keyframes values */
+    bool checkEffectsKeyframesPos(const int previous, const int current, bool fromStart);
 
 protected:
     //virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
@@ -130,6 +134,7 @@ private:
     int m_endFade;
     bool m_audioOnly;
     bool m_videoOnly;
+    QColor m_baseColor;
 
     QPixmap m_startPix;
     QPixmap m_endPix;
@@ -150,8 +155,7 @@ private:
     QMap<int, QPixmap> m_audioThumbCachePic;
     bool m_audioThumbReady;
     double m_framePixelWidth;
-    /** Called when clip start is resized, adjust keyframes values */
-    void checkEffectsKeyframesPos(const int previous, const int current, bool fromStart);
+
     QPixmap m_videoPix;
     QPixmap m_audioPix;