#include <card_zone.h>
Public Types | |
| enum | { Type = typeZone } |
Public Slots | |
| bool | showContextMenu (const QPoint &screenPos) |
| void | onCardAdded (CardItem *addedCard) |
Public Member Functions | |
| int | type () const override |
| virtual void | handleDropEvent (const QList< CardDragItem * > &dragItem, CardZoneLogic *startZone, const QPoint &dropPoint)=0 |
| CardZone (CardZoneLogic *logic, QGraphicsItem *parent=nullptr) | |
| void | retranslateUi () |
| CardZoneLogic * | getLogic () const |
| void | setMenu (QMenu *_menu, QAction *_doubleClickAction=0) |
| Public Member Functions inherited from AbstractGraphicsItem | |
| AbstractGraphicsItem (QGraphicsItem *parent=nullptr) | |
Protected Member Functions | |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| virtual void | reorganizeCards ()=0 |
| virtual QPointF | closestGridPoint (const QPointF &point) |
| QMenu * | getMenu () const |
| Protected Member Functions inherited from AbstractGraphicsItem | |
| void | paintNumberEllipse (int number, int radius, const QColor &color, int position, int count, QPainter *painter) |
Protected Attributes | |
| QMenu * | menu |
| QAction * | doubleClickAction |
Private Attributes | |
| CardZoneLogic * | logic |
A zone in the game that can contain cards. This class contains methods to get and modify the cards that are contained inside this zone.
The cards are stored as a list of CardItem*.
| CardZone::CardZone | ( | CardZoneLogic * | logic, |
| QGraphicsItem * | parent = nullptr ) |
|
protectedvirtual |
Reimplemented in TableZone.
|
inline |
|
inlineprotected |
|
pure virtual |
Implemented in HandZone, PileZone, StackZone, TableZone, and ZoneViewZone.
|
overrideprotected |
|
overrideprotected |
|
slot |
|
protectedpure virtual |
Implemented in HandZone, PileZone, StackZone, and ZoneViewZone.
| void CardZone::retranslateUi | ( | ) |
|
inline |
|
slot |
|
inlineoverride |
|
protected |
|
private |
|
protected |