]> git.sesse.net Git - kdenlive/blobdiff - src/trackview.h
Progress on track effects
[kdenlive] / src / trackview.h
index ea4cf277658c115b99728d84c21553053cf05e87..a46530ddc4f73b0b747bbd52ed83b0cb907a2d00 100644 (file)
@@ -35,6 +35,7 @@
 #include <KRuler>
 
 #include "customtrackscene.h"
+#include "effectslist.h"
 #include "ui_timeline_ui.h"
 
 class ClipItem;
@@ -64,6 +65,16 @@ public:
     int inPoint() const;
     int fitZoom() const;
 
+    /** @brief Updates (redraws) the ruler.
+    *
+    * Used to change from displaying frames to timecode or vice versa. */
+    void updateRuler();
+
+    /** @brief Parse tracks to see if project has audio in it.
+    *
+    * Parses all tracks to check if there is audio data. */
+    bool checkProjectAudio() const;
+
 protected:
     virtual void keyPressEvent(QKeyEvent * event);
 
@@ -93,21 +104,27 @@ private:
 private slots:
     void setCursorPos(int pos);
     void moveCursorPos(int pos);
-    /** @brief Rebuild the track headers */
+    /** @brief Rebuilds the track headers */
     void slotRebuildTrackHeaders();
     /** @brief The tracks count or a track name changed, rebuild and notify */
     void slotReloadTracks();
     void slotChangeTrackLock(int ix, bool lock);
     void slotVerticalZoomDown();
     void slotVerticalZoomUp();
-    void slotRenameTrack(int ix);
+
+    /** @brief Changes the name of a track.
+    * @param ix Number of the track
+    * @param name New name */
+    void slotRenameTrack(int ix, QString name);
     void slotRepaintTracks();
-    /** @brief Adjust margins of header area
+
+    /** @brief Adjusts the margins of the header area.
      *
      * Avoid a shift between header area and trackview if
      * the horizontal scrollbar is visible and the position
      * of the vertical scrollbar is maximal */
     void slotUpdateVerticalScroll(int min, int max);
+    void slotShowTrackEffects(int);
 
 signals:
     void mousePosition(int);
@@ -115,9 +132,10 @@ signals:
     void zoneMoved(int, int);
     void insertTrack(int);
     void deleteTrack(int);
-    void changeTrack(int);
+    void configTrack(int);
     void updateTracksInfo();
     void setZoom(int);
+    void showTrackEffects(int, EffectsList);
 };
 
 #endif