X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslistview.h;h=4970bb164d63fbac19820b78f10ea44619e9b383;hb=ebd5f85f5c5992383c9da4d08ec0671aed99309b;hp=e95d2137396dd1a99610cf63441b3b3af7066580;hpb=e93cb83c1deb2c8130c17650da3fc7c176094d19;p=kdenlive diff --git a/src/effectslistview.h b/src/effectslistview.h index e95d2137..4970bb16 100644 --- a/src/effectslistview.h +++ b/src/effectslistview.h @@ -25,34 +25,64 @@ #include "ui_effectlist_ui.h" #include "gentime.h" + #include +#include class EffectsList; class EffectsListWidget; -class KListWidget; +class QTreeWidget; + +/** + * @class EffectsListView + * @brief Manages the controls for the treewidget containing the effects. + * @author Jean-Baptiste Mardelle + */ -class EffectsListView : public QWidget +class EffectsListView : public QWidget, public Ui::EffectList_UI { Q_OBJECT public: EffectsListView(QWidget *parent = 0); - KListWidget *listView(); + + /** @brief Re-initializes the list of effects. */ void reloadEffectList(); //void slotAddEffect(GenTime pos, int track, QString name); private: - Ui::EffectList_UI m_ui; 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);