]> git.sesse.net Git - kdenlive/blobdiff - src/effectstackview.h
Fix small display issue in render widget
[kdenlive] / src / effectstackview.h
index 7bea226ca6b5717e09a92ce4bde424e33b83fa77..29ba056f0665d8ac923e0b79a396a4d6c4361022 100644 (file)
@@ -55,6 +55,10 @@ public:
     /** @brief Tells the effect editor to update its timecode format. */
     void updateTimecodeFormat();
 
+    /** @brief return the index of the track displayed in effect stack
+     ** @param ok set to true if we are looking at a track's effects, otherwise false. */
+    int isTrackMode(bool *ok) const;
+
 private:
     Ui::EffectStack_UI m_ui;
     Monitor *m_monitor;
@@ -70,6 +74,9 @@ private:
     /** @brief The track index of currently edited track. */
     int m_trackindex;
 
+    /** If in track mode: Info of the edited track to be able to access its duration. */
+    TrackInfo m_trackInfo;
+
     /** @brief Sets the list of effects according to the clip's effect list.
     * @param ix Number of the effect to preselect */
     void setupListView(int ix);
@@ -80,7 +87,7 @@ public slots:
     * @param ix Effect to preselect */
     void slotClipItemSelected(ClipItem* c, int ix);
 
-    void slotTrackItemSelected(int ix, EffectsList list);
+    void slotTrackItemSelected(int ix, const TrackInfo info);
 
     /** @brief Emits updateClipEffect.
     * @param old Old effect information
@@ -123,8 +130,8 @@ private slots:
     /** @brief Sets the check state of all effects according to @param state. */
     void slotCheckAll(int state);
 
-    /** @brief Define the region filter for current effect. */
-    void slotRegionChanged();
+    /* @brief Define the region filter for current effect.
+    void slotRegionChanged();*/
 
     /** @brief Checks whether the monitor scene has to be displayed. */
     void slotCheckMonitorPosition(int renderPos);
@@ -132,6 +139,9 @@ private slots:
     /** @brief Pass position changes of the timeline cursor to the effects to keep their local timelines in sync. */
     void slotRenderPos(int pos);
 
+    /** @brief Shows/Hides the comment box and emits showComments to notify the parameter widgets to do the same. */
+    void slotShowComments();
+
 signals:
     void removeEffect(ClipItem*, int, QDomElement);
     /**  Parameters for an effect changed, update the filter in playlist */
@@ -150,6 +160,7 @@ signals:
     /** The region effect for current effect was changed */
     void updateClipRegion(ClipItem*, int, QString);
     void displayMessage(const QString&, int);
+    void showComments();
 };
 
 #endif