40 lines
893 B
C++
40 lines
893 B
C++
#ifndef ZONEVIEWWIDGET_H
|
|
#define ZONEVIEWWIDGET_H
|
|
|
|
#include <QDialog>
|
|
#include <QGraphicsScene>
|
|
#include <QGraphicsWidget>
|
|
|
|
class CardZone;
|
|
class ZoneViewZone;
|
|
class Player;
|
|
class CardDatabase;
|
|
class QScrollBar;
|
|
class QCheckBox;
|
|
class GameScene;
|
|
class ServerInfo_Card;
|
|
|
|
class ZoneViewWidget : public QGraphicsWidget {
|
|
Q_OBJECT
|
|
private:
|
|
ZoneViewZone *zone;
|
|
|
|
QScrollBar *scrollBar;
|
|
QCheckBox *sortByNameCheckBox, *sortByTypeCheckBox, *shuffleCheckBox;
|
|
|
|
int extraHeight;
|
|
Player *player;
|
|
signals:
|
|
void closePressed(ZoneViewWidget *zv);
|
|
private slots:
|
|
void resizeToZoneContents();
|
|
void zoneDeleted();
|
|
public:
|
|
ZoneViewWidget(Player *_player, CardZone *_origZone, int numberCards = 0, const QList<ServerInfo_Card *> &cardList = QList<ServerInfo_Card *>());
|
|
ZoneViewZone *getZone() const { return zone; }
|
|
void retranslateUi();
|
|
protected:
|
|
void closeEvent(QCloseEvent *event);
|
|
};
|
|
|
|
#endif
|