38 lines
823 B
C++
38 lines
823 B
C++
#ifndef ZONEVIEWWIDGET_H
|
|
#define ZONEVIEWWIDGET_H
|
|
|
|
#include <QDialog>
|
|
#include <QGraphicsScene>
|
|
#include <QGraphicsWidget>
|
|
#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<ServerZoneCard *> 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
|