![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <deck_preview_deck_tags_display_widget.h>
Public Slots | |
| void | openTagEditDlg () |
Signals | |
| void | tagsChanged (const QStringList &tags) |
Public Member Functions | |
| DeckPreviewDeckTagsDisplayWidget (QWidget *_parent, const QStringList &_tags={}) | |
| void | setTags (const QStringList &_tags) |
| void | refreshTags () |
| void | setKnownTagsProvider (const std::function< QStringList()> &provider) |
| Sets a provider for the tags shown in the edit dialog. Defaults to scanning all deck files in the deck folder. | |
| void | setConversionPromptHandler (const std::function< bool()> &handler) |
| Sets a handler run before opening the tag dialog. Returning false cancels the dialog. Defaults to no handler (the deck editor path). | |
Private Member Functions | |
| void | execTagDialog (const QStringList &knownTags) |
Private Attributes | |
| QStringList | currentTags |
| FlowWidget * | flowWidget |
| std::function< QStringList()> | knownTagsProvider |
| std::function< bool()> | conversionPromptHandler |
|
explicit |
|
private |
|
slot |
| void DeckPreviewDeckTagsDisplayWidget::refreshTags | ( | ) |
| void DeckPreviewDeckTagsDisplayWidget::setConversionPromptHandler | ( | const std::function< bool()> & | handler | ) |
Sets a handler run before opening the tag dialog. Returning false cancels the dialog. Defaults to no handler (the deck editor path).
| void DeckPreviewDeckTagsDisplayWidget::setKnownTagsProvider | ( | const std::function< QStringList()> & | provider | ) |
Sets a provider for the tags shown in the edit dialog. Defaults to scanning all deck files in the deck folder.
| void DeckPreviewDeckTagsDisplayWidget::setTags | ( | const QStringList & | _tags | ) |
|
signal |
Emitted when the tags have changed due to user interaction.
| tags | The new list of tags. |
|
private |
|
private |
|
private |
|
private |