#include <printing_selector.h>
|
| void | selectCard (int changeBy) |
| | Selects a card based on the change direction.
|
◆ 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
-
| parent | The parent widget for the PrintingSelector. |
| deckEditor | The TabDeckEditor instance used for managing the deck. |
| deckModel | The DeckListModel instance that provides data for the deck's contents. |
| deckView | The QTreeView instance used to display the deck and its contents. |
◆ getAllSetsForCurrentCard()
| void PrintingSelector::getAllSetsForCurrentCard |
( |
| ) |
|
Loads and displays all sets for the current selected card.
◆ getDeckModel()
◆ printingsInDeckChanged
| void PrintingSelector::printingsInDeckChanged |
( |
| ) |
|
|
privateslot |
◆ retranslateUi
| void PrintingSelector::retranslateUi |
( |
| ) |
|
|
slot |
◆ selectCard()
| void PrintingSelector::selectCard |
( |
int | changeBy | ) |
|
|
private |
Selects a card based on the change direction.
- Parameters
-
| changeBy | The direction to change, -1 for previous, 1 for next. |
◆ selectNextCard
| void PrintingSelector::selectNextCard |
( |
| ) |
|
|
slot |
Selects the next card in the list.
◆ selectPreviousCard
| void PrintingSelector::selectPreviousCard |
( |
| ) |
|
|
slot |
Selects the previous card in the list.
◆ setCard()
| void PrintingSelector::setCard |
( |
const CardInfoPtr & | newCard, |
|
|
const QString & | _currentZone ) |
Sets the current card for the selector and updates the display.
- Parameters
-
| newCard | The new card to set. |
| _currentZone | The current zone the card is in. |
◆ toggleVisibilityNavigationButtons
| void PrintingSelector::toggleVisibilityNavigationButtons |
( |
bool | _state | ) |
|
|
slot |
Toggles the visibility of the navigation buttons.
- Parameters
-
| _state | The visibility state to set. |
◆ 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 |
◆ currentZone
| QString PrintingSelector::currentZone |
|
private |
◆ deckEditor
◆ deckModel
◆ deckView
| QTreeView* PrintingSelector::deckView |
|
private |
◆ displayOptionsWidget
◆ flowWidget
◆ layout
| QVBoxLayout* PrintingSelector::layout |
|
private |
◆ navigationCheckBox
| QCheckBox* PrintingSelector::navigationCheckBox |
|
private |
◆ 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: