![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Non-modal preview of the decks contained in a shared-deck link. More...
#include <dlg_shared_decks_preview.h>
Public Slots | |
| void | setDownloading (bool downloading) |
Signals | |
| void | openRequested (const QList< int > &itemIds) |
| void | cancelled () |
Public Member Functions | |
| DlgSharedDecksPreview (QWidget *parent, const CardDatabaseQuerier *querier, const QString &shareName, qint64 expiresAt, const QString &serverText, const QList< ServerInfo_DeckShareItem > &items) | |
| void | setDownloadProgress (int done, int total, const QString ¤tDeckName) |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) override |
Private Slots | |
| void | openSelected () |
| void | openAll () |
| void | updateOpenSelectedEnabled () |
| void | onCancel () |
Private Member Functions | |
| QList< int > | selectedItemIds () const |
Private Attributes | |
| FlowWidget * | flowWidget |
| QList< SharedDeckPreviewWidget * > | tiles |
| QList< int > | itemIds |
| QPushButton * | openSelectedButton |
| QPushButton * | openAllButton |
| QLabel * | downloadStatusLabel |
| bool | resultEmitted = false |
| bool | downloadInProgress = false |
Non-modal preview of the decks contained in a shared-deck link.
Lets the user pick which of the shared decks to open before anything is downloaded. Emits openRequested with the ids of the chosen decks, or cancelled when the user closes the dialog without choosing. Once the user picks, the dialog switches into a "downloading" state: the tiles and open buttons are disabled, a progress label shows the current download and Cancel stays functional so the download can be aborted.
|
explicit |
|
signal |
|
overrideprotected |
|
privateslot |
|
privateslot |
|
signal |
|
privateslot |
|
private |
|
slot |
| void DlgSharedDecksPreview::setDownloadProgress | ( | int | done, |
| int | total, | ||
| const QString & | currentDeckName ) |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |