#include <printing_selector.h>
◆ PrintingSelector()
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.
- Parameters
-
◆ cardAmountsChanged
| void PrintingSelector::cardAmountsChanged |
( |
const QMap< QString, QPair< int, int > > & | uuidToAmounts | ) |
|
|
signal |
The amounts of the printings in the deck has changed
- Parameters
-
| uuidToAmounts | Map of uuids to the amounts (maindeck, sideboard) in the deck |
◆ getAllSetsForCurrentCard()
| void PrintingSelector::getAllSetsForCurrentCard |
( |
| ) |
|
Loads and displays all sets for the current selected card.
◆ nextCardRequested
| void PrintingSelector::nextCardRequested |
( |
| ) |
|
|
signal |
Requests the next card in the list
◆ prevCardRequested
| void PrintingSelector::prevCardRequested |
( |
| ) |
|
|
signal |
Requests the previous card in the list
◆ printingsInDeckChanged
| void PrintingSelector::printingsInDeckChanged |
( |
| ) |
|
|
privateslot |
◆ retranslateUi
| void PrintingSelector::retranslateUi |
( |
| ) |
|
|
slot |
◆ setCard()
| void PrintingSelector::setCard |
( |
const CardInfoPtr & | newCard | ) |
|
Sets the current card for the selector and updates the display.
- Parameters
-
| newCard | The new card to set. |
◆ toggleVisibilityNavigationButtons
| void PrintingSelector::toggleVisibilityNavigationButtons |
( |
bool | _state | ) |
|
|
slot |
Toggles the visibility of the navigation buttons.
- Parameters
-
| _state | The visibility state to set. |
◆ updateCardAmounts
| void PrintingSelector::updateCardAmounts |
( |
| ) |
|
|
privateslot |
◆ updateDisplay
| void PrintingSelector::updateDisplay |
( |
| ) |
|
|
slot |
Updates the display by clearing the layout and loading new sets for the current card.
◆ cardSelectionBar
◆ cardSizeWidget
◆ currentIndex
| int PrintingSelector::currentIndex = 0 |
|
private |
◆ deckEditor
◆ deckStateManager
◆ displayOptionsWidget
◆ flowWidget
◆ layout
| QVBoxLayout* PrintingSelector::layout |
|
private |
◆ navigationCheckBox
| QCheckBox* PrintingSelector::navigationCheckBox |
|
private |
◆ placeholderWidget
◆ searchBar
◆ selectedCard
◆ sortAndOptionsContainer
| QWidget* PrintingSelector::sortAndOptionsContainer |
|
private |
◆ sortAndOptionsLayout
| QHBoxLayout* PrintingSelector::sortAndOptionsLayout |
|
private |
◆ sortToolBar
◆ widgetLoadingBufferTimer
| QTimer* PrintingSelector::widgetLoadingBufferTimer |
|
private |
The documentation for this class was generated from the following files: