27 lines
763 B
C++
27 lines
763 B
C++
#ifndef ZONEVIEWERZONE_H
|
|
#define ZONEVIEWERZONE_H
|
|
|
|
#include "cardzone.h"
|
|
#include "serverzonecard.h"
|
|
|
|
class ZoneViewWidget;
|
|
|
|
class ZoneViewZone : public CardZone {
|
|
private:
|
|
int numberCards;
|
|
void handleDropEvent(int cardId, CardZone *startZone, const QPoint &dropPoint);
|
|
CardZone *origZone;
|
|
signals:
|
|
void removeZoneViewWidget(ZoneViewWidget *zv);
|
|
public:
|
|
ZoneViewZone(Player *_p, CardZone *_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
|