]> git.sesse.net Git - kdenlive/blobdiff - src/trackview.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / trackview.h
index 5b19ecdbfcb806cec2648a669b0da9532457035d..755b8e11173c17c89da22afdb3ba519e651ee7c7 100644 (file)
@@ -40,7 +40,6 @@
 #include "definitions.h"
 
 class ClipItem;
-class Transition;
 class CustomTrackView;
 class KdenliveDoc;
 class CustomRuler;
@@ -51,7 +50,7 @@ class TrackView : public QWidget, public Ui::TimeLine_UI
     Q_OBJECT
 
 public:
-    explicit TrackView(KdenliveDoc *doc, QList <QAction *> actions, bool *ok, QWidget *parent = 0);
+    explicit TrackView(KdenliveDoc *doc, const QList <QAction *>& actions, bool *ok, QWidget *parent = 0);
     virtual ~ TrackView();
     void setEditMode(const QString & editMode);
     const QString & editMode() const;
@@ -78,17 +77,18 @@ public:
 
     void checkTrackHeight();
     void updateProfile();
+    void updatePalette();
 
 protected:
-    virtual void keyPressEvent(QKeyEvent * event);
+    void keyPressEvent(QKeyEvent * event);
 
 public slots:
     void slotDeleteClip(const QString &clipId);
     void slotChangeZoom(int horizontal, int vertical = -1);
     void setDuration(int dur);
-    void slotSetZone(QPoint p, bool updateDocumentProperties = true);
+    void slotSetZone(const QPoint &p, bool updateDocumentProperties = true);
     /** @brief Save a snapshot image of current timeline view */
-    void slotSaveTimelinePreview(const QString path);
+    void slotSaveTimelinePreview(const QString &path);
 private:
     CustomRuler *m_ruler;
     CustomTrackView *m_trackview;
@@ -105,12 +105,18 @@ private:
     QString m_documentErrors;
     QList <QAction *> m_trackActions;
     
-    void parseDocument(QDomDocument doc);
-    int slotAddProjectTrack(int ix, QDomElement xml, bool locked, QDomNodeList producers);
-    DocClipBase *getMissingProducer(const QString id) const;
+    void parseDocument(const QDomDocument &doc);
+    int slotAddProjectTrack(int ix, QDomElement xml, bool locked, const QDomNodeList &producers);
+    DocClipBase *getMissingProducer(const QString &id) const;
     void adjustTrackHeaders();
     /** @brief Add effects from the xml. Returns true if some effect was upgraded, false if everything went fine.*/
     void slotAddProjectEffects(QDomNodeList effects, QDomElement parentNode, ClipItem *clip, int trackIndex);
+    
+    /** @brief Returns a kdenlive effect xml description from an effect tag / id */
+    QDomElement getEffectByTag(const QString &effecttag, const QString &effectid);
+    
+    /** @brief Adjust kdenlive effect xml parameters to the MLT value*/
+    void adjustparameterValue(QDomNodeList clipeffectparams, const QString &paramname, const QString &paramvalue);
 
 private slots:
     void setCursorPos(int pos);
@@ -126,7 +132,7 @@ private slots:
     /** @brief Changes the name of a track.
     * @param ix Number of the track
     * @param name New name */
-    void slotRenameTrack(int ix, QString name);
+    void slotRenameTrack(int ix, const QString &name);
     void slotRepaintTracks();
 
     /** @brief Adjusts the margins of the header area.
@@ -146,7 +152,7 @@ signals:
     void configTrack(int);
     void updateTracksInfo();
     void setZoom(int);
-    void showTrackEffects(int, TrackInfo);
+    void showTrackEffects(int, const TrackInfo&);
 };
 
 #endif