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

#include <deck_card_zone_display_widget.h>

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

Public Slots

void onClick (QMouseEvent *event, CardInfoPictureWithTextOverlayWidget *card)
void onHover (const ExactCard &card)
void cleanupInvalidCardGroup (CardGroupDisplayWidget *displayWidget)
void constructAppropriateWidget (QPersistentModelIndex index)
void displayCards ()
void refreshDisplayType (const DisplayType &displayType)
void onActiveGroupCriteriaChanged (QString activeGroupCriteria)
void onActiveSortCriteriaChanged (QStringList activeSortCriteria)
QList< QString > getGroupCriteriaValueList ()
void onCategoryAddition (const QModelIndex &parent, int first, int last)
void onCategoryRemoval (const QModelIndex &parent, int first, int last)

Signals

void cardClicked (QMouseEvent *event, CardInfoPictureWithTextOverlayWidget *card, QString zoneName)
void cardHovered (const ExactCard &card)
void activeSortCriteriaChanged (QStringList activeSortCriteria)
void requestCleanup (DeckCardZoneDisplayWidget *displayWidget)

Public Member Functions

 DeckCardZoneDisplayWidget (QWidget *parent, DeckListModel *deckListModel, QItemSelectionModel *selectionModel, QPersistentModelIndex trackedIndex, QString zoneName, QString activeGroupCriteria, QStringList activeSortCriteria, DisplayType displayType, int bannerOpacity, int subBannerOpacity, CardSizeWidget *_cardSizeWidget)
void onSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
void addCardsToOverlapWidget ()
void resizeEvent (QResizeEvent *event) override

Public Attributes

DeckListModeldeckListModel
QItemSelectionModel * selectionModel
QPersistentModelIndex trackedIndex
QString zoneName

Private Attributes

QString activeGroupCriteria
QStringList activeSortCriteria
DisplayType displayType = DisplayType::Overlap
int bannerOpacity = 20
int subBannerOpacity = 10
CardSizeWidgetcardSizeWidget
QVBoxLayout * layout
BannerWidgetbanner
QWidget * cardGroupContainer
QVBoxLayout * cardGroupLayout
OverlapWidgetoverlapWidget
QHash< QPersistentModelIndex, QWidget * > indexToWidgetMap

Constructor & Destructor Documentation

◆ DeckCardZoneDisplayWidget()

DeckCardZoneDisplayWidget::DeckCardZoneDisplayWidget ( QWidget * parent,
DeckListModel * deckListModel,
QItemSelectionModel * selectionModel,
QPersistentModelIndex trackedIndex,
QString zoneName,
QString activeGroupCriteria,
QStringList activeSortCriteria,
DisplayType displayType,
int bannerOpacity,
int subBannerOpacity,
CardSizeWidget * _cardSizeWidget )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ activeSortCriteriaChanged

void DeckCardZoneDisplayWidget::activeSortCriteriaChanged ( QStringList activeSortCriteria)
signal
Here is the caller graph for this function:

◆ addCardsToOverlapWidget()

void DeckCardZoneDisplayWidget::addCardsToOverlapWidget ( )

◆ cardClicked

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

◆ cardHovered

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

◆ cleanupInvalidCardGroup

void DeckCardZoneDisplayWidget::cleanupInvalidCardGroup ( CardGroupDisplayWidget * displayWidget)
slot
Here is the caller graph for this function:

◆ constructAppropriateWidget

void DeckCardZoneDisplayWidget::constructAppropriateWidget ( QPersistentModelIndex index)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayCards

void DeckCardZoneDisplayWidget::displayCards ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGroupCriteriaValueList

QList< QString > DeckCardZoneDisplayWidget::getGroupCriteriaValueList ( )
slot

◆ onActiveGroupCriteriaChanged

void DeckCardZoneDisplayWidget::onActiveGroupCriteriaChanged ( QString activeGroupCriteria)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onActiveSortCriteriaChanged

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

◆ onCategoryAddition

void DeckCardZoneDisplayWidget::onCategoryAddition ( const QModelIndex & parent,
int first,
int last )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCategoryRemoval

void DeckCardZoneDisplayWidget::onCategoryRemoval ( const QModelIndex & parent,
int first,
int last )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onClick

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

◆ onHover

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

◆ onSelectionChanged()

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

◆ refreshDisplayType

void DeckCardZoneDisplayWidget::refreshDisplayType ( const DisplayType & displayType)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestCleanup

void DeckCardZoneDisplayWidget::requestCleanup ( DeckCardZoneDisplayWidget * displayWidget)
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resizeEvent()

void DeckCardZoneDisplayWidget::resizeEvent ( QResizeEvent * event)
override

Member Data Documentation

◆ activeGroupCriteria

QString DeckCardZoneDisplayWidget::activeGroupCriteria
private

◆ activeSortCriteria

QStringList DeckCardZoneDisplayWidget::activeSortCriteria
private

◆ banner

BannerWidget* DeckCardZoneDisplayWidget::banner
private

◆ bannerOpacity

int DeckCardZoneDisplayWidget::bannerOpacity = 20
private

◆ cardGroupContainer

QWidget* DeckCardZoneDisplayWidget::cardGroupContainer
private

◆ cardGroupLayout

QVBoxLayout* DeckCardZoneDisplayWidget::cardGroupLayout
private

◆ cardSizeWidget

CardSizeWidget* DeckCardZoneDisplayWidget::cardSizeWidget
private

◆ deckListModel

DeckListModel* DeckCardZoneDisplayWidget::deckListModel

◆ displayType

DisplayType DeckCardZoneDisplayWidget::displayType = DisplayType::Overlap
private

◆ indexToWidgetMap

QHash<QPersistentModelIndex, QWidget *> DeckCardZoneDisplayWidget::indexToWidgetMap
private

◆ layout

QVBoxLayout* DeckCardZoneDisplayWidget::layout
private

◆ overlapWidget

OverlapWidget* DeckCardZoneDisplayWidget::overlapWidget
private

◆ selectionModel

QItemSelectionModel* DeckCardZoneDisplayWidget::selectionModel

◆ subBannerOpacity

int DeckCardZoneDisplayWidget::subBannerOpacity = 10
private

◆ trackedIndex

QPersistentModelIndex DeckCardZoneDisplayWidget::trackedIndex

◆ zoneName

QString DeckCardZoneDisplayWidget::zoneName

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