/*
    SPDX-FileCopyrightText: 2015 Jean-Baptiste Mardelle <jb@kdenlive.org>

SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/

#pragma once

#include <QListWidget>

/**
 * @class EffectBasket
 * @brief A list of favorite effects that can be embedded in a toolbar
 * @author Jean-Baptiste Mardelle
 */
class EffectBasket : public QListWidget
{
    Q_OBJECT

public:
    explicit EffectBasket(QWidget *parent);

protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
    QMimeData *mimeData(const QList<QListWidgetItem *> list) const override;
#else
    QMimeData *mimeData(const QList<QListWidgetItem *> &list) const override;
#endif
    void showEvent(QShowEvent *event) override;

public Q_SLOTS:
    void slotReloadBasket();

private Q_SLOTS:
    void slotAddEffect(QListWidgetItem *item);

Q_SIGNALS:
    void activateAsset(const QVariantMap &);
};
