![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
A visual grid of the public decks published by another user. More...
#include <tab_public_decks.h>
Signals | |
| void | closing (TabPublicDecks *tab) |
| Signals inherited from Tab | |
| void | userEvent (bool globalEvent=true) |
| void | tabTextChanged (Tab *tab, const QString &newTabText) |
| void | cockatriceLinkActivated (const QString &url) |
Public Member Functions | |
| TabPublicDecks (TabSupervisor *tabSupervisor, AbstractClient *client, const QString &userName) | |
| QString | getTabText () const override |
| void | retranslateUi () override |
| bool | closeRequest () override |
| QString | getUserName () const |
| Public Member Functions inherited from Tab | |
| Tab (TabSupervisor *_tabSupervisor) | |
| const QList< QMenu * > & | getTabMenus () const |
| TabSupervisor * | getTabSupervisor () const |
| bool | getContentsChanged () const |
| void | setContentsChanged (bool _contentsChanged) |
| virtual void | tabActivated () |
Private Slots | |
| void | openDeck (int deckId) |
| void | openDeckFinished (const Response &response, const CommandContainer &commandContainer) |
| void | updateColorFilter () |
| void | updateTagFilter () |
| void | updateCardSize (int scale) |
| void | updateTagsVisibility (bool visible) |
| void | updateLoadingState (bool loading) |
Private Member Functions | |
| void | rebuildGrid () |
| void | applyCardSize (int scale) |
Private Attributes | |
| AbstractClient * | client |
| QString | userName |
| RemotePublicDecksModel * | model |
| FlowWidget * | flowWidget |
| VisualDeckStorageSearchWidget * | searchWidget |
| DeckPreviewColorIdentityFilterWidget * | colorIdentityFilter |
| VisualDeckStorageTagFilterWidget * | tagFilterWidget |
| QToolButton * | refreshButton |
| VisualDeckStorageQuickSettingsWidget * | quickSettingsWidget |
| QLabel * | titleLabel |
| QLabel * | statusLabel |
| QLabel * | emptyLabel |
| QString | lastFailureMessage |
| Last load-failure text, re-shown on retranslate. | |
| int | cardSize = 100 |
Additional Inherited Members | |
| Protected Slots inherited from Tab | |
| void | showCardInfoPopup (const QPoint &pos, const CardRef &cardRef) |
| void | deleteCardInfoPopup (const QString &cardName) |
| Protected Member Functions inherited from Tab | |
| void | addTabMenu (QMenu *menu) |
| Protected Attributes inherited from Tab | |
| TabSupervisor * | tabSupervisor |
A visual grid of the public decks published by another user.
The grid is rendered from the preview metadata the server stores for the decks, so browsing costs no downloads; the deck list is fetched via Command_DeckDownloadPublic only when the user opens a deck. Multiple users can be browsed simultaneously; each gets its own tab.
| TabPublicDecks::TabPublicDecks | ( | TabSupervisor * | tabSupervisor, |
| AbstractClient * | client, | ||
| const QString & | userName ) |
|
private |
|
overridevirtual |
Nicely asks to close the tab. Override this method to do checks or ask for confirmation before closing the tab. If you need to force close the tab, just call close() instead.
Reimplemented from Tab.
|
signal |
|
nodiscardoverridevirtual |
|
inlinenodiscard |
|
privateslot |
|
privateslot |
|
private |
|
overridevirtual |
Implements Tab.
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Last load-failure text, re-shown on retranslate.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |