mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-07 16:53:00 -07:00
initial experiment with editor layout
This commit is contained in:
parent
95c6058dc3
commit
0b2231639f
6 changed files with 158 additions and 42 deletions
32
cockatrice/src/cardframe.h
Normal file
32
cockatrice/src/cardframe.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef CARDFRAME_H
|
||||
#define CARDFRAME_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QStringList>
|
||||
|
||||
class AbstractCardItem;
|
||||
class CardInfo;
|
||||
class QResizeEvent;
|
||||
|
||||
class CardFrame : public QLabel {
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
CardInfo *info;
|
||||
|
||||
public:
|
||||
CardFrame(const QString &cardName = QString(), QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
QString getCardName() const;
|
||||
|
||||
public slots:
|
||||
void setCard(CardInfo *card);
|
||||
void setCard(const QString &cardName);
|
||||
void setCard(AbstractCardItem *card);
|
||||
|
||||
private slots:
|
||||
void clear();
|
||||
void updatePixmap();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue