#include <deck_view_container.h>
Public Slots | |
| void | loadDeckFromFile (const QString &filePath) |
| void | loadDeckFromDeckLoader (DeckLoader *deck) |
Signals | |
| void | newCardAdded (AbstractCardItem *card) |
| void | notIdle () |
Public Member Functions | |
| DeckViewContainer (int _playerId, TabGame *parent) | |
| void | retranslateUi () |
| void | setReadyStart (bool ready) |
| void | readyAndUpdate () |
| void | setSideboardLocked (bool locked) |
| void | setDeck (DeckLoader &deck) |
| void | setVisualDeckStorageExists (bool exists) |
Private Slots | |
| void | switchToDeckSelectView () |
| void | switchToDeckLoadedView () |
| void | loadLocalDeck () |
| void | loadRemoteDeck () |
| void | loadFromClipboard () |
| void | loadFromWebsite () |
| void | unloadDeck () |
| void | readyStart () |
| void | forceStart () |
| void | deckSelectFinished (const Response &r) |
| void | sideboardPlanChanged () |
| void | sideboardLockButtonClicked () |
| void | updateSideboardLockButtonText () |
| void | refreshShortcuts () |
Private Member Functions | |
| void | tryCreateVisualDeckStorageWidget () |
| void | sendReadyStartCommand (bool ready) |
Private Attributes | |
| QVBoxLayout * | deckViewLayout |
| QPushButton * | loadLocalButton |
| QPushButton * | loadRemoteButton |
| QPushButton * | loadFromClipboardButton |
| QPushButton * | loadFromWebsiteButton |
| QPushButton * | unloadDeckButton |
| QPushButton * | forceStartGameButton |
| ToggleButton * | readyStartButton |
| ToggleButton * | sideboardLockButton |
| DeckView * | deckView |
| VisualDeckStorageWidget * | visualDeckStorageWidget |
| TabGame * | parentGame |
| int | playerId |
This widget contains the deck selection view that is used before a game begins.
| DeckViewContainer::DeckViewContainer | ( | int | _playerId, |
| TabGame * | parent ) |
|
privateslot |
|
privateslot |
|
slot |
|
slot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
signal |
|
signal |
| void DeckViewContainer::readyAndUpdate | ( | ) |
Sends a ReadyStart command with ready=true to the server
|
privateslot |
|
privateslot |
| void DeckViewContainer::retranslateUi | ( | ) |
|
private |
Sends the basic ReadyStart command.
| void DeckViewContainer::setDeck | ( | DeckLoader & | deck | ) |
| void DeckViewContainer::setReadyStart | ( | bool | ready | ) |
Updates the buttons to make the client-side ready state match the given state.
Notably, this method only updates the client and does not send a ReadyStart command to the server. This method is intended to be called upon receiving the response from a ReadyStart command.
| void DeckViewContainer::setSideboardLocked | ( | bool | locked | ) |
| void DeckViewContainer::setVisualDeckStorageExists | ( | bool | exists | ) |
Updates the existence of the embedded Visual Deck Storage, destroying or creating it if needed. Note that this change is temporary; the VDS may get recreated when the view transitions to the deck select state, depending on current settings.
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
Creates the VDS widget and inserts it into the layout. No-ops if the widget already exists
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |