![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <card_group_display_widget.h>
Public Slots | |
| void | mousePressEvent (QMouseEvent *event) override |
| 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 | onDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles) |
| void | onActiveSortCriteriaChanged (QStringList activeSortCriteria) |
| void | updateCardCount () |
| void | resizeEvent (QResizeEvent *event) override |
Signals | |
| void | cardClicked (QMouseEvent *event, const ExactCard &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 | refreshSelectionForIndex (const QPersistentModelIndex &persistent) |
| void | clearAllDisplayWidgets () |
| void | addCardWidgets (const QPersistentModelIndex &persistent) |
Public Attributes | |
| DeckListModel * | deckListModel |
| QItemSelectionModel * | selectionModel |
| QPersistentModelIndex | trackedIndex |
| QMap< QPersistentModelIndex, QList< QWidget * > > | indexToWidgetMap |
| QString | zoneName |
| QString | cardGroupCategory |
| QString | activeGroupCriteria |
| QStringList | activeSortCriteria |
| CardSizeWidget * | cardSizeWidget |
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 |
| BannerWidget * | banner |
| CardGroupDisplayWidget::CardGroupDisplayWidget | ( | QWidget * | parent, |
| DeckListModel * | deckListModel, | ||
| QItemSelectionModel * | selectionModel, | ||
| QPersistentModelIndex | trackedIndex, | ||
| QString | zoneName, | ||
| QString | cardGroupCategory, | ||
| QString | activeGroupCriteria, | ||
| QStringList | activeSortCriteria, | ||
| int | bannerOpacity, | ||
| CardSizeWidget * | cardSizeWidget ) |
| void CardGroupDisplayWidget::addCardWidgets | ( | const QPersistentModelIndex & | persistent | ) |
|
inlineprotectedvirtual |
Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.
|
signal |
|
signal |
|
signal |
| void CardGroupDisplayWidget::clearAllDisplayWidgets | ( | ) |
|
virtualslot |
|
inlineprotectedvirtual |
Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.
|
inlineprotectedvirtual |
Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.
|
overrideslot |
|
slot |
|
virtualslot |
|
virtualslot |
|
slot |
| void CardGroupDisplayWidget::onSelectionChanged | ( | const QItemSelection & | selected, |
| const QItemSelection & | deselected ) |
| void CardGroupDisplayWidget::refreshSelectionForIndex | ( | const QPersistentModelIndex & | persistent | ) |
|
inlineprotectedvirtual |
Reimplemented in FlatCardGroupDisplayWidget, and OverlappedCardGroupDisplayWidget.
|
overrideslot |
|
slot |
|
virtualslot |
| QString CardGroupDisplayWidget::activeGroupCriteria |
| QStringList CardGroupDisplayWidget::activeSortCriteria |
|
protected |
| QString CardGroupDisplayWidget::cardGroupCategory |
| CardSizeWidget* CardGroupDisplayWidget::cardSizeWidget |
| DeckListModel* CardGroupDisplayWidget::deckListModel |
|
protected |
| QItemSelectionModel* CardGroupDisplayWidget::selectionModel |
| QPersistentModelIndex CardGroupDisplayWidget::trackedIndex |
| QString CardGroupDisplayWidget::zoneName |