#ifndef LIBRARYZONE_H #define LIBRARYZONE_H #include "cardzone.h" class LibraryZone : public CardZone { private: public: LibraryZone(Player *_p, QGraphicsItem *parent = 0); 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(); void handleDropEvent(int cardId, CardZone *startZone, const QPoint &dropPoint, bool faceDown); protected: void mousePressEvent(QGraphicsSceneMouseEvent *event); void mouseMoveEvent(QGraphicsSceneMouseEvent *event); void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); }; #endif