![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <visual_deck_storage_widget.h>
Public Slots | |
| void | createRootFolderWidget () |
| Starts scanning the deck folder and rebuilds the folder tree and previews. | |
| void | updateShowFolders (bool enabled) |
| void | updateTagsVisibility (bool visible) |
| void | updateSelectionAnimationEnabled (bool enabled) |
| void | updateSortOrder () |
| void | updateTagFilter () |
| void | updateColorFilter () |
| void | updateSearchFilter (const QString &text) |
Signals | |
| void | deckLoadRequested (const QString &filePath) |
| void | openDeckEditor (const LoadedDeck &deck) |
| void | shareDeckRequested (const QString &filePath) |
| void | shareSelectionChanged () |
| void | shareRequested () |
Public Member Functions | |
| VisualDeckStorageWidget (QWidget *parent) | |
| void | refreshIfPossible () |
| void | retranslateUi () |
| void | setShareSelectable (bool selectable) |
| bool | isShareSelectable () const |
| QStringList | selectedFilePaths () const |
| void | setShareSelectedFiles (const QStringList &paths) |
| void | clearShareSelection () |
| void | setShareAvailable (bool available) |
| const VisualDeckStorageQuickSettingsWidget * | settings () const |
| VisualDeckStorageModel * | model () const |
| VisualDeckStorageSortFilterProxyModel * | proxyModel () const |
Public Attributes | |
| VisualDeckStorageTagFilterWidget * | tagFilterWidget |
| bool | deckPreviewSelectionAnimationEnabled |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
| void | showEvent (QShowEvent *event) override |
Private Member Functions | |
| void | reapplySortAndFilters () |
| QSet< QString > | gatherVisibleTags () const |
| The tags of all decks currently accepted by the proxy model. | |
Private Attributes | |
| QVBoxLayout * | layout |
| QWidget * | searchAndSortContainer |
| QHBoxLayout * | searchAndSortLayout |
| QLabel * | databaseLoadIndicator |
| VisualDeckStorageSortWidget * | sortWidget |
| VisualDeckStorageSearchWidget * | searchWidget |
| DeckPreviewColorIdentityFilterWidget * | deckPreviewColorIdentityFilterWidget |
| QToolButton * | refreshButton |
| QToolButton * | shareButton |
| VisualDeckStorageQuickSettingsWidget * | quickSettingsWidget |
| QScrollArea * | scrollArea |
| VisualDeckStorageFolderDisplayWidget * | folderWidget = nullptr |
| VisualDeckStorageModel * | storageModel = nullptr |
| VisualDeckStorageSortFilterProxyModel * | storageProxyModel = nullptr |
| QTimer * | refreshTimer = nullptr |
| Coalesces the re-apply/refresh burst following a batch of deck loads. | |
| bool | shareSelectable = false |
|
explicit |
| void VisualDeckStorageWidget::clearShareSelection | ( | ) |
|
slot |
Starts scanning the deck folder and rebuilds the folder tree and previews.
Scans the deck folder and rebuilds the folder tree of deck previews.
|
signal |
|
nodiscardprivate |
The tags of all decks currently accepted by the proxy model.
|
nodiscard |
|
inlinenodiscard |
|
signal |
|
inlinenodiscard |
|
private |
Reapplies all sort and filter options by updating the proxy model.
| void VisualDeckStorageWidget::refreshIfPossible | ( | ) |
|
overrideprotected |
| void VisualDeckStorageWidget::retranslateUi | ( | ) |
|
nodiscard |
| void VisualDeckStorageWidget::setShareAvailable | ( | bool | available | ) |
| void VisualDeckStorageWidget::setShareSelectable | ( | bool | selectable | ) |
| void VisualDeckStorageWidget::setShareSelectedFiles | ( | const QStringList & | paths | ) |
|
nodiscard |
Gets a const pointer to the quick settings so that the values can be accessed.
|
signal |
|
signal |
|
signal |
|
overrideprotected |
|
slot |
Pushes the color identity filter widget's state into the proxy model.
|
slot |
Pushes the search bar's text into the proxy model.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
private |
| bool VisualDeckStorageWidget::deckPreviewSelectionAnimationEnabled |
|
private |
|
private |
|
private |
|
private |
|
private |
Coalesces the re-apply/refresh burst following a batch of deck loads.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| VisualDeckStorageTagFilterWidget* VisualDeckStorageWidget::tagFilterWidget |