Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SelectZone Class Reference

#include <select_zone.h>

Inheritance diagram for SelectZone:
[legend]
Collaboration diagram for SelectZone:
[legend]

Public Member Functions

 SelectZone (CardZoneLogic *logic, QGraphicsItem *parent=nullptr)
Public Member Functions inherited from CardZone
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 ()
CardZoneLogicgetLogic () const
void setMenu (QMenu *_menu, QAction *_doubleClickAction=0)
Public Member Functions inherited from AbstractGraphicsItem
 AbstractGraphicsItem (QGraphicsItem *parent=nullptr)

Protected Member Functions

void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
Protected Member Functions inherited from CardZone
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)

Private Attributes

QPointF selectionOrigin
QSet< CardItem * > cardsInSelectionRect

Additional Inherited Members

Public Types inherited from CardZone
enum  { Type = typeZone }
Public Slots inherited from CardZone
bool showContextMenu (const QPoint &screenPos)
void onCardAdded (CardItem *addedCard)
Protected Attributes inherited from CardZone
QMenu * menu
QAction * doubleClickAction

Detailed Description

A CardZone where the cards are laid out, with each card directly interactable by clicking.

Constructor & Destructor Documentation

◆ SelectZone()

SelectZone::SelectZone ( CardZoneLogic * logic,
QGraphicsItem * parent = nullptr )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ mouseMoveEvent()

void SelectZone::mouseMoveEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected
Here is the call graph for this function:

◆ mousePressEvent()

void SelectZone::mousePressEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected
Here is the call graph for this function:

◆ mouseReleaseEvent()

void SelectZone::mouseReleaseEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected

Member Data Documentation

◆ cardsInSelectionRect

QSet<CardItem *> SelectZone::cardsInSelectionRect
private

◆ selectionOrigin

QPointF SelectZone::selectionOrigin
private

The documentation for this class was generated from the following files: