mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 08:33:54 -07:00
initial commit
This commit is contained in:
commit
a11f93df4d
99 changed files with 7493 additions and 0 deletions
27
cockatrice/src/zoneviewzone.h
Normal file
27
cockatrice/src/zoneviewzone.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef ZONEVIEWERZONE_H
|
||||
#define ZONEVIEWERZONE_H
|
||||
|
||||
#include "playerzone.h"
|
||||
#include "serverzonecard.h"
|
||||
|
||||
class ZoneViewWidget;
|
||||
|
||||
class ZoneViewZone : public PlayerZone {
|
||||
private:
|
||||
int numberCards;
|
||||
void handleDropEvent(int cardId, PlayerZone *startZone, const QPoint &dropPoint);
|
||||
PlayerZone *origZone;
|
||||
signals:
|
||||
void removeZoneViewWidget(ZoneViewWidget *zv);
|
||||
public:
|
||||
ZoneViewZone(Player *_p, PlayerZone *_origZone, int _numberCards = 0, QGraphicsItem *parent = 0);
|
||||
~ZoneViewZone();
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
void addCard(CardItem *card, bool reorganize = true, int x = 0, int y = -1);
|
||||
void reorganizeCards();
|
||||
bool initializeCards();
|
||||
void removeCard(int position);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue