Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckPreviewDeckTagsDisplayWidget Class Reference

#include <deck_preview_deck_tags_display_widget.h>

Inheritance diagram for DeckPreviewDeckTagsDisplayWidget:
[legend]
Collaboration diagram for DeckPreviewDeckTagsDisplayWidget:
[legend]

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
FlowWidgetflowWidget
std::function< QStringList()> knownTagsProvider
std::function< bool()> conversionPromptHandler

Constructor & Destructor Documentation

◆ DeckPreviewDeckTagsDisplayWidget()

DeckPreviewDeckTagsDisplayWidget::DeckPreviewDeckTagsDisplayWidget ( QWidget * _parent,
const QStringList & _tags = {} )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ execTagDialog()

void DeckPreviewDeckTagsDisplayWidget::execTagDialog ( const QStringList & knownTags)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openTagEditDlg

void DeckPreviewDeckTagsDisplayWidget::openTagEditDlg ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshTags()

void DeckPreviewDeckTagsDisplayWidget::refreshTags ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setConversionPromptHandler()

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).

◆ setKnownTagsProvider()

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.

◆ setTags()

void DeckPreviewDeckTagsDisplayWidget::setTags ( const QStringList & _tags)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tagsChanged

void DeckPreviewDeckTagsDisplayWidget::tagsChanged ( const QStringList & tags)
signal

Emitted when the tags have changed due to user interaction.

Parameters
tagsThe new list of tags.
Here is the caller graph for this function:

Member Data Documentation

◆ conversionPromptHandler

std::function<bool()> DeckPreviewDeckTagsDisplayWidget::conversionPromptHandler
private

◆ currentTags

QStringList DeckPreviewDeckTagsDisplayWidget::currentTags
private

◆ flowWidget

FlowWidget* DeckPreviewDeckTagsDisplayWidget::flowWidget
private

◆ knownTagsProvider

std::function<QStringList()> DeckPreviewDeckTagsDisplayWidget::knownTagsProvider
private

The documentation for this class was generated from the following files: