]> git.sesse.net Git - kdenlive/blobdiff - src/definitions.h
Fetch timeline thumbnails in a different thread to improve workflow
[kdenlive] / src / definitions.h
index a82b894d52ba08d122a4f38b448bbabd6b62f9d5..7b72a88adc108083b6aee7bb74c9ba85f6b4ef02 100644 (file)
@@ -25,8 +25,6 @@
 
 #include <KLocale>
 
-#include <QEvent>
-
 const int FRAME_SIZE = 90;
 const int MAXCLIPDURATION = 15000;
 
@@ -49,22 +47,29 @@ enum MessageType {
     DefaultMessage,
     OperationCompletedMessage,
     InformationMessage,
-    ErrorMessage
+    ErrorMessage,
+    MltError
 };
 
 enum TRACKTYPE { AUDIOTRACK = 0, VIDEOTRACK = 1 };
 
 struct TrackInfo {
     TRACKTYPE type;
+    QString trackName;
     bool isMute;
     bool isBlind;
     bool isLocked;
 };
 
 struct ItemInfo {
+    /** startPos is the position where the clip starts on the track */
     GenTime startPos;
+    /** endPos is the duration where the clip ends on the track */
     GenTime endPos;
+    /** cropStart is the position where the sub-clip starts, relative to the clip's 0 position */
     GenTime cropStart;
+    /** cropDuration is the duration of the clip */
+    GenTime cropDuration;
     int track;
 };
 
@@ -182,18 +187,5 @@ private:
 
 };
 
-class MltErrorEvent : public QEvent
-{
-public:
-    MltErrorEvent(QString message) : QEvent(QEvent::User), m_message(message) {}
-    QString message() const {
-        return m_message;
-    }
-
-private:
-    QString m_message;
-};
-
-
 
 #endif