]> git.sesse.net Git - kdenlive/blobdiff - src/effectstackview.h
Fix audio thumbs not displayed on project opening and abortion if audio thumbs creation
[kdenlive] / src / effectstackview.h
index 06a9c8d4b3cdfa531338c4ea3df3aaf4d7146b8e..3b31042d1db7c69bea88f45df5c8e3d4ed2a7e78 100644 (file)
  *                                                                         *
  ***************************************************************************/
 
+/**
+* @class EffectStackView
+* @brief View part of the EffectStack
+* @author Marco Gittler
+*/
+
 #ifndef EFFECTSTACKVIEW_H
 #define EFFECTSTACKVIEW_H
 
-#include <KIcon>
-
 #include "ui_effectstack_ui.h"
-#include "clipitem.h"
+#include "effectstackedit.h"
+
+class EffectsList;
+class ClipItem;
+class MltVideoProfile;
+
 class EffectStackView : public QWidget
 {
-       Q_OBJECT
-               
-       public:
-               EffectStackView( QWidget *parent=0);
-       
+    Q_OBJECT
+
+public:
+    EffectStackView(QWidget *parent = 0);
+    virtual ~EffectStackView();
+    void raiseWindow(QWidget*);
+    void clear();
+    void setMenu(QMenu *menu);
+    void updateProjectFormat(MltVideoProfile profile, Timecode t);
+
 private:
-       int activeRow;
-       QStringList effects;
-       Ui::EffectStack_UI ui;
-       ClipItem* clipref;
-       void setupListView(const QStringList& );
+    Ui::EffectStack_UI m_ui;
+    ClipItem* m_clipref;
+    QMap<QString, EffectsList*> m_effectLists;
+    EffectStackEdit* m_effectedit;
+    void setupListView(int ix);
+    //void updateButtonStatus();
+
 public slots:
-       void slotClipItemSelected(ClipItem*);
-       void slotItemSelectionChanged();
-       void slotItemUp();
-       void slotItemDown();
-       void slotItemDel();
-       
+    void slotClipItemSelected(ClipItem*, int ix);
+    void slotUpdateEffectParams(const QDomElement, const QDomElement);
+    /** @brief Remove selected effect. */
+    void slotItemDel();
+
+private slots:
+    void slotItemSelectionChanged(bool update = true);
+    void slotItemUp();
+    void slotItemDown();
+    void slotResetEffect();
+    void slotItemChanged(QListWidgetItem *item);
+    void slotSaveEffect();
+    void slotSeekTimeline(int pos);
+
+signals:
+    void removeEffect(ClipItem*, QDomElement);
+    /**  Parameters for an effect changed, update the filter in playlist */
+    void updateClipEffect(ClipItem*, QDomElement, QDomElement, int);
+    /** An effect in stack was moved, we need to regenerate
+        all effects for this clip in the playlist */
+    void refreshEffectStack(ClipItem *);
+    /** Enable or disable an effect */
+    void changeEffectState(ClipItem*, int, bool);
+    /** An effect in stack was moved */
+    void changeEffectPosition(ClipItem*, int, int);
+    /** an effect was saved, reload list */
+    void reloadEffects();
+    /** An effect with position parameter was changed, seek */
+    void seekTimeline(int);
+
 };
 
 #endif