#ifndef ZONEVIEWWIDGET_H #define ZONEVIEWWIDGET_H #include #include #include #include "serverzonecard.h" class CardZone; class ZoneViewZone; class Player; class CardDatabase; class QScrollBar; class QCheckBox; class ZoneViewWidget : public QGraphicsWidget { Q_OBJECT private: ZoneViewZone *zone; int cmdId; QScrollBar *scrollBar; QCheckBox *shuffleCheckBox; CardDatabase *db; Player *player; signals: void closePressed(ZoneViewWidget *zv); private slots: void zoneDumpReceived(int commandId, QList cards); public: ZoneViewWidget(CardDatabase *_db, Player *_player, CardZone *_origZone, int numberCards = 0, QGraphicsItem *parent = 0); ZoneViewZone *getZone() const { return zone; } protected: void closeEvent(QCloseEvent *event); }; #endif