]> git.sesse.net Git - kdenlive/blobdiff - src/abstractclipitem.h
Zoom through vertical move in timeline ruler:
[kdenlive] / src / abstractclipitem.h
index b3f34e5c2ba2287c17efe4e722a842f166f8cd3e..79072ea5f6ada2dad26879464e40ffb3f4e757e3 100644 (file)
@@ -26,6 +26,7 @@
 #include "gentime.h"
 
 class CustomTrackScene;
+class QGraphicsSceneMouseEvent;
 
 class AbstractClipItem : public QObject , public QGraphicsRectItem
 {
@@ -54,28 +55,29 @@ public:
     virtual GenTime cropStart() const ;
     virtual GenTime cropDuration() const ;
     virtual void resizeStart(int posx, double speed = 1.0);
-    virtual void resizeEnd(int posx, double speed = 1.0, bool updateKeyFrames = true);
+    virtual void resizeEnd(int posx, double speed = 1.0);
     virtual double fps() const;
+    virtual void updateFps(double fps);
     virtual GenTime maxDuration() const;
     virtual void setCropStart(GenTime pos);
 
 protected:
-    int m_track;
+    ItemInfo m_info;
+//    int m_track;
     int m_editedKeyframe;
     int m_selectedKeyframe;
-    GenTime m_cropStart;
-    GenTime m_cropDuration;
-    GenTime m_startPos;
+    /*    GenTime m_cropStart;
+        GenTime m_cropDuration;
+        GenTime m_startPos;*/
     GenTime m_maxDuration;
-    QMap <int, double> m_keyframes;
+    QMap <int, int> m_keyframes;
     double m_keyframeFactor;
     double m_keyframeDefault;
     double m_fps;
-    QPainterPath upperRectPart(QRectF);
-    QPainterPath lowerRectPart(QRectF);
     //QRect visibleRect();
     void drawKeyFrames(QPainter *painter, QRectF exposedRect);
-    int mouseOverKeyFrames(QPointF pos);
+    int mouseOverKeyFrames(QPointF pos, double maxOffset);
+    virtual void mousePressEvent(QGraphicsSceneMouseEvent * event);
 };
 
 #endif