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

#include <card_group_display_widget.h>

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

Public Slots

void mousePressEvent (QMouseEvent *event) override
void onClick (QMouseEvent *event, CardInfoPictureWithTextOverlayWidget *card)
void onHover (const ExactCard &card)
virtual QWidget * constructWidgetForIndex (QPersistentModelIndex index)
virtual void updateCardDisplays ()
virtual void onCardAddition (const QModelIndex &parent, int first, int last)
virtual void onCardRemoval (const QModelIndex &parent, int first, int last)
void onActiveSortCriteriaChanged (QStringList activeSortCriteria)
void resizeEvent (QResizeEvent *event) override

Signals

void cardClicked (QMouseEvent *event, CardInfoPictureWithTextOverlayWidget *card)
void cardHovered (const ExactCard &card)
void cleanupRequested (CardGroupDisplayWidget *cardGroupDisplayWidget)

Public Member Functions

 CardGroupDisplayWidget (QWidget *parent, DeckListModel *deckListModel, QItemSelectionModel *selectionModel, QPersistentModelIndex trackedIndex, QString zoneName, QString cardGroupCategory, QString activeGroupCriteria, QStringList activeSortCriteria, int bannerOpacity, CardSizeWidget *cardSizeWidget)
void onSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
void clearAllDisplayWidgets ()

Public Attributes

DeckListModeldeckListModel
QItemSelectionModel * selectionModel
QPersistentModelIndex trackedIndex
QHash< QPersistentModelIndex, QWidget * > indexToWidgetMap
QString zoneName
QString cardGroupCategory
QString activeGroupCriteria
QStringList activeSortCriteria
CardSizeWidgetcardSizeWidget

Protected Member Functions

virtual QWidget * getLayoutParent ()
virtual void addToLayout (QWidget *toAdd)
virtual void insertIntoLayout (QWidget *toInsert, int insertAt)
virtual void removeFromLayout (QWidget *toRemove)

Protected Attributes

QVBoxLayout * layout
BannerWidgetbanner

Constructor & Destructor Documentation

◆ CardGroupDisplayWidget()

CardGroupDisplayWidget::CardGroupDisplayWidget ( QWidget * parent,
DeckListModel * deckListModel,
QItemSelectionModel * selectionModel,
QPersistentModelIndex trackedIndex,
QString zoneName,
QString cardGroupCategory,
QString activeGroupCriteria,
QStringList activeSortCriteria,
int bannerOpacity,
CardSizeWidget * cardSizeWidget )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addToLayout()

virtual void CardGroupDisplayWidget::addToLayout ( QWidget * toAdd)
inlineprotectedvirtual

Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.

Here is the caller graph for this function:

◆ cardClicked

void CardGroupDisplayWidget::cardClicked ( QMouseEvent * event,
CardInfoPictureWithTextOverlayWidget * card )
signal
Here is the caller graph for this function:

◆ cardHovered

void CardGroupDisplayWidget::cardHovered ( const ExactCard & card)
signal
Here is the caller graph for this function:

◆ cleanupRequested

void CardGroupDisplayWidget::cleanupRequested ( CardGroupDisplayWidget * cardGroupDisplayWidget)
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearAllDisplayWidgets()

void CardGroupDisplayWidget::clearAllDisplayWidgets ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ constructWidgetForIndex

QWidget * CardGroupDisplayWidget::constructWidgetForIndex ( QPersistentModelIndex index)
virtualslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLayoutParent()

virtual QWidget * CardGroupDisplayWidget::getLayoutParent ( )
inlineprotectedvirtual

Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.

Here is the caller graph for this function:

◆ insertIntoLayout()

virtual void CardGroupDisplayWidget::insertIntoLayout ( QWidget * toInsert,
int insertAt )
inlineprotectedvirtual

Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.

Here is the caller graph for this function:

◆ mousePressEvent

void CardGroupDisplayWidget::mousePressEvent ( QMouseEvent * event)
overrideslot

◆ onActiveSortCriteriaChanged

void CardGroupDisplayWidget::onActiveSortCriteriaChanged ( QStringList activeSortCriteria)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCardAddition

void CardGroupDisplayWidget::onCardAddition ( const QModelIndex & parent,
int first,
int last )
virtualslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCardRemoval

void CardGroupDisplayWidget::onCardRemoval ( const QModelIndex & parent,
int first,
int last )
virtualslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onClick

void CardGroupDisplayWidget::onClick ( QMouseEvent * event,
CardInfoPictureWithTextOverlayWidget * card )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onHover

void CardGroupDisplayWidget::onHover ( const ExactCard & card)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSelectionChanged()

void CardGroupDisplayWidget::onSelectionChanged ( const QItemSelection & selected,
const QItemSelection & deselected )
Here is the caller graph for this function:

◆ removeFromLayout()

virtual void CardGroupDisplayWidget::removeFromLayout ( QWidget * toRemove)
inlineprotectedvirtual

Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.

Here is the caller graph for this function:

◆ resizeEvent

void CardGroupDisplayWidget::resizeEvent ( QResizeEvent * event)
overrideslot

◆ updateCardDisplays

void CardGroupDisplayWidget::updateCardDisplays ( )
virtualslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ activeGroupCriteria

QString CardGroupDisplayWidget::activeGroupCriteria

◆ activeSortCriteria

QStringList CardGroupDisplayWidget::activeSortCriteria

◆ banner

BannerWidget* CardGroupDisplayWidget::banner
protected

◆ cardGroupCategory

QString CardGroupDisplayWidget::cardGroupCategory

◆ cardSizeWidget

CardSizeWidget* CardGroupDisplayWidget::cardSizeWidget

◆ deckListModel

DeckListModel* CardGroupDisplayWidget::deckListModel

◆ indexToWidgetMap

QHash<QPersistentModelIndex, QWidget *> CardGroupDisplayWidget::indexToWidgetMap

◆ layout

QVBoxLayout* CardGroupDisplayWidget::layout
protected

◆ selectionModel

QItemSelectionModel* CardGroupDisplayWidget::selectionModel

◆ trackedIndex

QPersistentModelIndex CardGroupDisplayWidget::trackedIndex

◆ zoneName

QString CardGroupDisplayWidget::zoneName

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