Cockatrice 2026-01-14-Development-2.11.0-beta.46
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PrintingSelectorCardDisplayWidget Class Reference

#include <printing_selector_card_display_widget.h>

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

Public Slots

void clampSetNameToPicture ()
 Adjusts the width of the set name display to fit the card overlay widget.
void updateCardAmounts (const QMap< QString, QPair< int, int > > &uuidToAmounts)

Signals

void cardPreferenceChanged ()

Public Member Functions

 PrintingSelectorCardDisplayWidget (QWidget *parent, AbstractTabDeckEditor *deckEditor, DeckStateManager *deckStateManager, QSlider *cardSizeSlider, const ExactCard &rootCard)
 Constructs a PrintingSelectorCardDisplayWidget to display card information.

Private Attributes

ExactCard rootCard
QVBoxLayout * layout
SetNameAndCollectorsNumberDisplayWidgetsetNameAndCollectorsNumberDisplayWidget
PrintingSelectorCardOverlayWidgetoverlayWidget

Constructor & Destructor Documentation

◆ PrintingSelectorCardDisplayWidget()

PrintingSelectorCardDisplayWidget::PrintingSelectorCardDisplayWidget ( QWidget * parent,
AbstractTabDeckEditor * deckEditor,
DeckStateManager * deckStateManager,
QSlider * cardSizeSlider,
const ExactCard & rootCard )

Constructs a PrintingSelectorCardDisplayWidget to display card information.

This widget is responsible for displaying the selected card's printing information, including the card's image and set details. It also handles the layout of the card's display, including its size, set name, and collectors number. The card is displayed within a QVBoxLayout with two main components: the overlay (which combines the card image and buttons) and the set name and collectors number display.

Parameters
parentThe parent widget for this display.
deckEditorThe TabDeckEditor instance for deck management.
deckStateManagerThe DeckStateManager instance providing deck data.
cardSizeSliderThe slider controlling the size of the displayed card.
rootCardThe root card object, representing the card to be displayed.
Here is the call graph for this function:

Member Function Documentation

◆ cardPreferenceChanged

void PrintingSelectorCardDisplayWidget::cardPreferenceChanged ( )
signal
Here is the caller graph for this function:

◆ clampSetNameToPicture

void PrintingSelectorCardDisplayWidget::clampSetNameToPicture ( )
slot

Adjusts the width of the set name display to fit the card overlay widget.

This method ensures that the set name and collector's number display widget does not exceed the width of the card's overlay widget. It clamps the set name widget to match the width of the overlay widget and updates the display.

Here is the caller graph for this function:

◆ updateCardAmounts

void PrintingSelectorCardDisplayWidget::updateCardAmounts ( const QMap< QString, QPair< int, int > > & uuidToAmounts)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ layout

QVBoxLayout* PrintingSelectorCardDisplayWidget::layout
private

◆ overlayWidget

PrintingSelectorCardOverlayWidget* PrintingSelectorCardDisplayWidget::overlayWidget
private

◆ rootCard

ExactCard PrintingSelectorCardDisplayWidget::rootCard
private

◆ setNameAndCollectorsNumberDisplayWidget

SetNameAndCollectorsNumberDisplayWidget* PrintingSelectorCardDisplayWidget::setNameAndCollectorsNumberDisplayWidget
private

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