mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
initial commit
This commit is contained in:
commit
a11f93df4d
99 changed files with 7493 additions and 0 deletions
25
cockatrice/src/zoneviewlayout.h
Normal file
25
cockatrice/src/zoneviewlayout.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef ZONEVIEWLAYOUT_H
|
||||
#define ZONEVIEWLAYOUT_H
|
||||
|
||||
#include <QGraphicsWidget>
|
||||
|
||||
class CardDatabase;
|
||||
class ZoneViewWidget;
|
||||
class Player;
|
||||
|
||||
class ZoneViewLayout : public QGraphicsWidget {
|
||||
Q_OBJECT
|
||||
signals:
|
||||
void sizeChanged();
|
||||
private:
|
||||
QList<ZoneViewWidget *> views;
|
||||
CardDatabase *db;
|
||||
public:
|
||||
ZoneViewLayout(CardDatabase *_db, QGraphicsItem *parent = 0);
|
||||
void reorganize();
|
||||
public slots:
|
||||
void addItem(Player *player, const QString &zoneName, int numberCards = 0);
|
||||
void removeItem(ZoneViewWidget *item);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue