]> git.sesse.net Git - kdenlive/blobdiff - src/effectslistview.h
Fix parts of Kdenlive not responding to color theme change
[kdenlive] / src / effectslistview.h
index c528fa9225775078c298bdcc7919b587111d8983..bba95eae48c38e93178f449c765410d5a2ac216d 100644 (file)
 class EffectsList;
 class EffectsListWidget;
 class QTreeWidget;
+class KActionCategory;
+
+/**
+ * @class EffectsListView
+ * @brief Manages the controls for the treewidget containing the effects.
+ * @author Jean-Baptiste Mardelle
+ */
 
 class EffectsListView : public QWidget, public Ui::EffectList_UI
 {
@@ -39,23 +46,48 @@ class EffectsListView : public QWidget, public Ui::EffectList_UI
 
 public:
     EffectsListView(QWidget *parent = 0);
-    void reloadEffectList();
-    //void slotAddEffect(GenTime pos, int track, QString name);
 
-protected:
-    virtual void focusInEvent(QFocusEvent * event);
+    /** @brief Re-initializes the list of effects. */
+    void reloadEffectList(QMenu *effectsMenu, KActionCategory *effectActions);
+    QMenu* getEffectsMenu();
+    //void slotAddEffect(GenTime pos, int track, QString name);
+    
+    /** @brief Palette was changed, update styles. */
+    void updatePalette();
 
 private:
     EffectsListWidget *m_effectsList;
 
 private slots:
+    /** @brief Applies the type filter to the effect list.
+    * @param pos Index of the combo box; where 0 = All, 1 = Video, 2 = Audio, 3 = Custom */
     void filterList(int pos);
+
+    /** @brief Updates the info panel to match the selected effect. */
     void slotUpdateInfo();
+
+    /** @brief Toggles the info panel's visibility. */
     void showInfoPanel();
+
+    /** @brief Emits addEffect signal for the selected effect. */
     void slotEffectSelected();
+
+    /** @brief Removes the XML file for the selected effect.
+    *
+    * Only used for custom effects */
     void slotRemoveEffect();
 
-public slots:
+    /** @brief Makes sure the item fits the type filter.
+    * @param item Current item
+    * @param hidden Hidden or not
+    *
+    * This is necessary to make the search obey to the type filter.
+    * Called when the visibility of this item was changed by searching */
+    void slotUpdateSearch(QTreeWidgetItem *item, bool hidden);
+
+    /** @brief Expands folders that match our search.
+    * @param text Current search string */
+    void slotAutoExpand(QString text);
 
 signals:
     void addEffect(const QDomElement);