mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
37 lines
742 B
C++
37 lines
742 B
C++
#ifndef CARDINFOWIDGET_H
|
|
#define CARDINFOWIDGET_H
|
|
|
|
#include "../../../../card/exact_card.h"
|
|
#include "card_ref.h"
|
|
|
|
#include <QComboBox>
|
|
#include <QFrame>
|
|
#include <QStringList>
|
|
|
|
class CardInfoPictureWidget;
|
|
class CardInfoTextWidget;
|
|
class AbstractCardItem;
|
|
|
|
class CardInfoDisplayWidget : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
qreal aspectRatio;
|
|
ExactCard exactCard;
|
|
CardInfoPictureWidget *pic;
|
|
CardInfoTextWidget *text;
|
|
|
|
public:
|
|
explicit CardInfoDisplayWidget(const CardRef &cardRef, QWidget *parent = nullptr, Qt::WindowFlags f = {});
|
|
|
|
public slots:
|
|
void setCard(const ExactCard &card);
|
|
void setCard(const CardRef &cardRef);
|
|
void setCard(AbstractCardItem *card);
|
|
|
|
private slots:
|
|
void clear();
|
|
};
|
|
|
|
#endif
|