mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 21:13:55 -07:00
trying to get rid of ZoneViewLayout
This commit is contained in:
parent
e9a0203880
commit
8295b49634
10 changed files with 62 additions and 148 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include <QList>
|
||||
|
||||
class Player;
|
||||
class ZoneViewLayout;
|
||||
class ZoneViewWidget;
|
||||
|
||||
class GameScene : public QGraphicsScene {
|
||||
Q_OBJECT
|
||||
|
|
@ -13,14 +13,18 @@ private:
|
|||
static const int playerAreaSpacing = 5;
|
||||
|
||||
QList<Player *> players;
|
||||
ZoneViewLayout *zvLayout;
|
||||
QRectF playersRect;
|
||||
QList<ZoneViewWidget *> views;
|
||||
public:
|
||||
GameScene(ZoneViewLayout *_zvLayout, QObject *parent = 0);
|
||||
GameScene(QObject *parent = 0);
|
||||
void retranslateUi();
|
||||
const QRectF &getPlayersRect() const { return playersRect; }
|
||||
public slots:
|
||||
void toggleZoneView(Player *player, const QString &zoneName, int numberCards);
|
||||
void removeZoneView(ZoneViewWidget *item);
|
||||
void addPlayer(Player *player);
|
||||
void removePlayer(Player *player);
|
||||
void clearViews();
|
||||
private slots:
|
||||
void rearrange();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue