]> git.sesse.net Git - kdenlive/blobdiff - src/effectslistwidget.h
Fix small display issue in render widget
[kdenlive] / src / effectslistwidget.h
index a1aa7ac85d0901f4357fcd5bd50f5c3a95184320..04ee8544612f86866097c1fff271de5842499431 100644 (file)
@@ -25,6 +25,7 @@
 #include <QDomElement>
 
 class EffectsList;
+class KIcon;
 
 class EffectsListWidget : public QTreeWidget
 {
@@ -45,9 +46,20 @@ protected:
 
 private:
     QMenu *m_menu;
-    /** @brief Returns the folder item with name equal to passed parameter. */
+    /** @brief Returns the folder item whose name == @param name. */
     QTreeWidgetItem *findFolder(const QString name);
 
+    /** @brief Loads the effects from the given effectlist as item of this widget.
+     * @param effectlist effectlist containing the effects that should be loaded
+     * @param icon the icon to be used for the QTreeWidgetItems
+     * @param defaultFolder parent item which will be used by default 
+     * @param folders list of folders which might be used instead for specific effects
+     * @param type type of the effects
+     * @param current name of selected effect before reload; if an effect name matches this one it will become selected
+     * @param found will be set to true if an effect name matches current
+     */
+    void loadEffects(const EffectsList *effectlist, KIcon icon, QTreeWidgetItem *defaultFolder, const QList<QTreeWidgetItem *> *folders, const QString type, const QString current, bool *found);
+
 private slots:
     void slotExpandItem(const QModelIndex & index);
 };