parent
4574df0a2e
commit
ea08fe168c
6 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,7 @@ class CardInfo;
|
||||||
|
|
||||||
class AbstractCardDragItem : public QObject, public QGraphicsItem {
|
class AbstractCardDragItem : public QObject, public QGraphicsItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsItem)
|
||||||
protected:
|
protected:
|
||||||
AbstractCardItem *item;
|
AbstractCardItem *item;
|
||||||
QPointF hotSpot;
|
QPointF hotSpot;
|
||||||
|
|
|
@ -9,6 +9,7 @@ class QAction;
|
||||||
|
|
||||||
class AbstractCounter : public QObject, public QGraphicsItem {
|
class AbstractCounter : public QObject, public QGraphicsItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsItem)
|
||||||
protected:
|
protected:
|
||||||
Player *player;
|
Player *player;
|
||||||
int id;
|
int id;
|
||||||
|
|
|
@ -11,6 +11,7 @@ class ArrowTarget;
|
||||||
|
|
||||||
class ArrowItem : public QObject, public QGraphicsItem {
|
class ArrowItem : public QObject, public QGraphicsItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsItem)
|
||||||
private:
|
private:
|
||||||
QPainterPath path;
|
QPainterPath path;
|
||||||
QMenu *menu;
|
QMenu *menu;
|
||||||
|
|
|
@ -11,6 +11,7 @@ class GameCommand;
|
||||||
|
|
||||||
class PhaseButton : public QObject, public QGraphicsItem {
|
class PhaseButton : public QObject, public QGraphicsItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsItem)
|
||||||
private:
|
private:
|
||||||
QString name;
|
QString name;
|
||||||
bool active, highlightable;
|
bool active, highlightable;
|
||||||
|
@ -39,6 +40,7 @@ protected:
|
||||||
|
|
||||||
class PhasesToolbar : public QObject, public QGraphicsItem {
|
class PhasesToolbar : public QObject, public QGraphicsItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsItem)
|
||||||
private:
|
private:
|
||||||
QList<PhaseButton *> buttonList;
|
QList<PhaseButton *> buttonList;
|
||||||
PhaseButton *nextTurnButton;
|
PhaseButton *nextTurnButton;
|
||||||
|
|
|
@ -58,7 +58,8 @@ class PendingCommand;
|
||||||
|
|
||||||
class PlayerArea : public QObject, public QGraphicsItem {
|
class PlayerArea : public QObject, public QGraphicsItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private:
|
Q_INTERFACES(QGraphicsItem)
|
||||||
|
private:
|
||||||
QBrush bgPixmapBrush;
|
QBrush bgPixmapBrush;
|
||||||
QRectF bRect;
|
QRectF bRect;
|
||||||
private slots:
|
private slots:
|
||||||
|
@ -76,6 +77,7 @@ public:
|
||||||
|
|
||||||
class Player : public QObject, public QGraphicsItem {
|
class Player : public QObject, public QGraphicsItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsItem)
|
||||||
signals:
|
signals:
|
||||||
void openDeckEditor(const DeckLoader *deck);
|
void openDeckEditor(const DeckLoader *deck);
|
||||||
void newCardAdded(AbstractCardItem *card);
|
void newCardAdded(AbstractCardItem *card);
|
||||||
|
|
|
@ -11,6 +11,7 @@ class QGraphicsSceneWheelEvent;
|
||||||
|
|
||||||
class ZoneViewZone : public SelectZone, public QGraphicsLayoutItem {
|
class ZoneViewZone : public SelectZone, public QGraphicsLayoutItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsLayoutItem)
|
||||||
private:
|
private:
|
||||||
QRectF bRect, optimumRect;
|
QRectF bRect, optimumRect;
|
||||||
int minRows, numberCards;
|
int minRows, numberCards;
|
||||||
|
|
Loading…
Reference in a new issue