![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <printing_selector.h>
Public Slots | |
| void | retranslateUi () |
| void | updateDisplay () |
| Updates the display by clearing the layout and loading new sets for the current card. | |
| void | toggleVisibilityNavigationButtons (bool _state) |
| Toggles the visibility of the navigation buttons. | |
Signals | |
| void | prevCardRequested () |
| void | nextCardRequested () |
| void | cardAmountsChanged (const QMap< QString, ZoneCounts > &uuidToAmounts) |
Public Member Functions | |
| PrintingSelector (QWidget *parent, AbstractTabDeckEditor *deckEditor) | |
| Constructs a PrintingSelector widget to display and manage card printings. | |
| void | setCard (const CardInfoPtr &newCard) |
| Sets the current card for the selector and updates the display. | |
| void | getAllSetsForCurrentCard () |
| Loads and displays all sets for the current selected card. | |
Private Slots | |
| void | printingsInDeckChanged () |
| void | updateCardAmounts () |
Private Attributes | |
| QVBoxLayout * | layout |
| SettingsButtonWidget * | displayOptionsWidget |
| QWidget * | sortAndOptionsContainer |
| QHBoxLayout * | sortAndOptionsLayout |
| QCheckBox * | navigationCheckBox |
| PrintingSelectorCardSortingWidget * | sortToolBar |
| PrintingSelectorCardSearchWidget * | searchBar |
| PrintingSelectorPlaceholderWidget * | placeholderWidget |
| FlowWidget * | flowWidget |
| CardSizeWidget * | cardSizeWidget |
| PrintingSelectorCardSelectionWidget * | cardSelectionBar |
| AbstractTabDeckEditor * | deckEditor |
| DeckStateManager * | deckStateManager |
| CardInfoPtr | selectedCard |
| QTimer * | widgetLoadingBufferTimer |
| int | currentIndex = 0 |
| PrintingSelector::PrintingSelector | ( | QWidget * | parent, |
| AbstractTabDeckEditor * | _deckEditor ) |
Constructs a PrintingSelector widget to display and manage card printings.
This constructor initializes the PrintingSelector widget, setting up various child widgets such as sorting tools, search bar, card size options, and navigation controls. It also connects signals and slots to update the display when the deck model changes, and loads available printings for the selected card.
| parent | The parent widget for the PrintingSelector. |
| deckEditor | The TabDeckEditor instance used for managing the deck. |
|
signal |
The amounts of the printings in the deck has changed
| uuidToAmounts | Map of uuids to the amounts (maindeck, sideboard, tokensboard) in the deck |
| void PrintingSelector::getAllSetsForCurrentCard | ( | ) |
Loads and displays all sets for the current selected card.
|
signal |
Requests the next card in the list
|
signal |
Requests the previous card in the list
|
privateslot |
|
slot |
| void PrintingSelector::setCard | ( | const CardInfoPtr & | newCard | ) |
Sets the current card for the selector and updates the display.
| newCard | The new card to set. |
|
slot |
Toggles the visibility of the navigation buttons.
| _state | The visibility state to set. |
|
privateslot |
|
slot |
Updates the display by clearing the layout and loading new sets for the current card.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |