/**
 * @file edhrec_api_response_card_details_display_widget.h
 * @ingroup ApiResponseDisplayWidgets
 */
//! \todo Document this file.

#ifndef EDHREC_COMMANDER_API_RESPONSE_CARD_DETAILS_DISPLAY_WIDGET_H
#define EDHREC_COMMANDER_API_RESPONSE_CARD_DETAILS_DISPLAY_WIDGET_H

#include "../../../../../cards/card_info_picture_widget.h"
#include "../../../../../general/display/background_plate_widget.h"
#include "../../api_response/cards/edhrec_api_response_card_details.h"
#include "edhrec_api_response_card_inclusion_display_widget.h"
#include "edhrec_api_response_card_synergy_display_widget.h"

#include <QHBoxLayout>
#include <QLabel>
#include <QWidget>

class EdhrecApiResponseCardDetailsDisplayWidget : public QWidget
{
    Q_OBJECT
public:
    explicit EdhrecApiResponseCardDetailsDisplayWidget(QWidget *parent, const EdhrecApiResponseCardDetails &_toDisplay);
public slots:
    void actRequestPageNavigation();
signals:
    void requestUrl(QString url);

private:
    EdhrecApiResponseCardDetails toDisplay;
    QVBoxLayout *layout;
    CardInfoPictureWidget *cardPictureWidget;
    BackgroundPlateWidget *backgroundPlateWidget; ///< Plate for metadata labels
    QLabel *nameLabel;
    EdhrecApiResponseCardInclusionDisplayWidget *inclusionDisplayWidget;
    EdhrecApiResponseCardSynergyDisplayWidget *synergyDisplayWidget;

protected slots:
    void mousePressEvent(QMouseEvent *event) override;

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
    void enterEvent(QEnterEvent *event) override; ///< Qt6 hover enter
#else
    void enterEvent(QEvent *event) override; ///< Qt5 hover enter
#endif
    void leaveEvent(QEvent *event) override;
};

#endif // EDHREC_COMMANDER_API_RESPONSE_CARD_DETAILS_DISPLAY_WIDGET_H
