mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
37 lines
764 B
C++
37 lines
764 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 ZoneViewWidget : public QGraphicsWidget {
|
|
Q_OBJECT
|
|
private:
|
|
ZoneViewZone *zone;
|
|
|
|
QScrollBar *scrollBar;
|
|
QCheckBox *sortCheckBox, *shuffleCheckBox;
|
|
|
|
Player *player;
|
|
signals:
|
|
void closePressed(ZoneViewWidget *zv);
|
|
void sizeChanged();
|
|
private slots:
|
|
void resizeToZoneContents();
|
|
public:
|
|
ZoneViewWidget(Player *_player, CardZone *_origZone, int numberCards = 0, QGraphicsItem *parent = 0);
|
|
ZoneViewZone *getZone() const { return zone; }
|
|
void retranslateUi();
|
|
protected:
|
|
void closeEvent(QCloseEvent *event);
|
|
};
|
|
|
|
#endif
|