servatrice/cockatrice/src/zoneviewlayout.h
2009-09-10 18:28:19 +02:00

30 lines
653 B
C++

#ifndef ZONEVIEWLAYOUT_H
#define ZONEVIEWLAYOUT_H
#include <QGraphicsWidget>
class CardDatabase;
class ZoneViewWidget;
class ZoneViewZone;
class Player;
class ZoneViewLayout : public QGraphicsWidget {
Q_OBJECT
signals:
void sizeChanged();
private:
QList<ZoneViewWidget *> views;
CardDatabase *db;
public:
ZoneViewLayout(CardDatabase *_db, QGraphicsItem *parent = 0);
void retranslateUi();
public slots:
void toggleZoneView(Player *player, const QString &zoneName, int numberCards = 0);
void removeItem(ZoneViewWidget *item);
void removeItem(ZoneViewZone *item);
void closeMostRecentZoneView();
void reorganize();
void clear();
};
#endif