]> git.sesse.net Git - kdenlive/blobdiff - src/definitions.h
forgot to commit that small change, fixes compilation
[kdenlive] / src / definitions.h
index 1279a542ec15980026a657b1c693e1ec8046f860..80f10581c51cdad755a4a8c6ecef9fe4862e0629 100644 (file)
 
 #include "gentime.h"
 
-#define FRAME_SIZE 90
-#define MAXCLIPDURATION 15000
+const int FRAME_SIZE = 90;
+const int MAXCLIPDURATION = 15000;
 
 enum OPERATIONTYPE { NONE = 0, MOVE = 1, RESIZESTART = 2, RESIZEEND = 3, FADEIN = 4, FADEOUT = 5, TRANSITIONSTART = 6, TRANSITIONEND = 7, MOVEGUIDE = 8, KEYFRAME = 9};
 enum CLIPTYPE { UNKNOWN = 0, AUDIO = 1, VIDEO = 2, AV = 3, COLOR = 4, IMAGE = 5, TEXT = 6, SLIDESHOW = 7, VIRTUAL = 8, PLAYLIST = 9, FOLDER = 10};
-enum GRAPHICSRECTITEM { AVWIDGET = 70000 , LABELWIDGET , TRANSITIONWIDGET };
+enum GRAPHICSRECTITEM { AVWIDGET = 70000 , LABELWIDGET , TRANSITIONWIDGET  , GROUPWIDGET};
 
 enum PROJECTTOOL { SELECTTOOL = 0 , RAZORTOOL = 1 };
 
@@ -61,6 +61,7 @@ struct TrackInfo {
 struct ItemInfo {
     GenTime startPos;
     GenTime endPos;
+    GenTime cropStart;
     int track;
 };
 
@@ -93,8 +94,36 @@ public:
     void    setComment(QString comm) {
         c = comm;
     }
+
+    /* Implementation of > operator; Works identically as with basic types. */
+    bool operator>(CommentedTime op) const {
+        return t > op.time();
+    }
+    /* Implementation of < operator; Works identically as with basic types. */
+    bool operator<(CommentedTime op) const {
+        return t < op.time();
+    }
+    /* Implementation of >= operator; Works identically as with basic types. */
+    bool operator>=(CommentedTime op) const {
+        return t >= op.time();
+    }
+    /* Implementation of <= operator; Works identically as with basic types. */
+    bool operator<=(CommentedTime op) const {
+        return t <= op.time();
+    }
+    /* Implementation of == operator; Works identically as with basic types. */
+    bool operator==(CommentedTime op) const {
+        return t == op.time();
+    }
+    /* Implementation of != operator; Works identically as with basic types. */
+    bool operator!=(CommentedTime op) const {
+        return t != op.time();
+    }
+
 private:
     GenTime t;
     QString c;
+
+
 };
 #endif