Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
VisualDeckStorageQuickSettingsWidget Class Reference

#include <visual_deck_storage_quick_settings_widget.h>

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

Public Types

enum  TooltipType { None , Filepath }

Signals

void showFoldersChanged (bool enabled)
void drawUnusedColorIdentitiesChanged (bool enabled)
void showColorIdentityChanged (bool enabled)
void showBannerCardComboBoxChanged (bool enabled)
void showTagFilterChanged (bool enabled)
void showTagsOnDeckPreviewsChanged (bool enabled)
void showUploadTimeChanged (bool enabled)
void unusedColorIdentitiesOpacityChanged (int opacity)
void deckPreviewTooltipChanged (TooltipType tooltip)
void cardSizeChanged (int scale)

Public Member Functions

 VisualDeckStorageQuickSettingsWidget (QWidget *parent=nullptr)
void setPublicDecksMode (bool enabled)
 Hides the controls that do not apply to the public decks tab.
void retranslateUi ()
bool getShowFolders () const
bool getDrawUnusedColorIdentities () const
bool getShowColorIdentity () const
bool getShowBannerCardComboBox () const
bool getShowTagFilter () const
bool getShowTagsOnDeckPreviews () const
bool getShowUploadTime () const
int getUnusedColorIdentitiesOpacity () const
TooltipType getDeckPreviewTooltip () const
int getCardSize () const
CardSizeWidget * getCardSizeWidget () const
Public Member Functions inherited from SettingsButtonWidget
 SettingsButtonWidget (QWidget *parent=nullptr)
 ~SettingsButtonWidget () override
void addSettingsWidget (QWidget *toAdd) const
void removeSettingsWidget (QWidget *toRemove) const
void setButtonIcon (QPixmap iconMap)
void setButtonText (const QString &buttonText)
void setCompact (bool compact)
bool isCompact () const

Private Attributes

QCheckBox * showFoldersCheckBox
QCheckBox * showColorIdentityCheckBox
QCheckBox * drawUnusedColorIdentitiesCheckBox
QCheckBox * showBannerCardComboBoxCheckBox
QCheckBox * showTagFilterCheckBox
QCheckBox * showTagsOnDeckPreviewsCheckBox
QCheckBox * showUploadTimeCheckBox
QLabel * unusedColorIdentitiesOpacityLabel
QSpinBox * unusedColorIdentitiesOpacitySpinBox
QLabel * deckPreviewTooltipLabel
QComboBox * deckPreviewTooltipComboBox
QWidget * deckPreviewTooltipWidget
CardSizeWidget * cardSizeWidget

Additional Inherited Members

Public Attributes inherited from SettingsButtonWidget
SettingsPopupWidget * popup
Protected Member Functions inherited from SettingsButtonWidget
void mousePressEvent (QMouseEvent *event) override

Member Enumeration Documentation

◆ TooltipType

The info to display in the deck preview's banner card tooltip.

Enumerator
None 
Filepath 

Constructor & Destructor Documentation

◆ VisualDeckStorageQuickSettingsWidget()

VisualDeckStorageQuickSettingsWidget::VisualDeckStorageQuickSettingsWidget ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ cardSizeChanged

void VisualDeckStorageQuickSettingsWidget::cardSizeChanged ( int scale)
signal
Here is the caller graph for this function:

◆ deckPreviewTooltipChanged

void VisualDeckStorageQuickSettingsWidget::deckPreviewTooltipChanged ( TooltipType tooltip)
signal
Here is the caller graph for this function:

◆ drawUnusedColorIdentitiesChanged

void VisualDeckStorageQuickSettingsWidget::drawUnusedColorIdentitiesChanged ( bool enabled)
signal
Here is the caller graph for this function:

◆ getCardSize()

int VisualDeckStorageQuickSettingsWidget::getCardSize ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCardSizeWidget()

CardSizeWidget * VisualDeckStorageQuickSettingsWidget::getCardSizeWidget ( ) const
inlinenodiscard
Returns
The card size widget, so card display hosts can resize the cards on Ctrl + scroll even though the slider itself lives inside this menu.
Here is the caller graph for this function:

◆ getDeckPreviewTooltip()

VisualDeckStorageQuickSettingsWidget::TooltipType VisualDeckStorageQuickSettingsWidget::getDeckPreviewTooltip ( ) const
nodiscard
Here is the caller graph for this function:

◆ getDrawUnusedColorIdentities()

bool VisualDeckStorageQuickSettingsWidget::getDrawUnusedColorIdentities ( ) const
nodiscard

◆ getShowBannerCardComboBox()

bool VisualDeckStorageQuickSettingsWidget::getShowBannerCardComboBox ( ) const
nodiscard

◆ getShowColorIdentity()

bool VisualDeckStorageQuickSettingsWidget::getShowColorIdentity ( ) const
nodiscard

◆ getShowFolders()

bool VisualDeckStorageQuickSettingsWidget::getShowFolders ( ) const
nodiscard
Here is the caller graph for this function:

◆ getShowTagFilter()

bool VisualDeckStorageQuickSettingsWidget::getShowTagFilter ( ) const
nodiscard
Here is the caller graph for this function:

◆ getShowTagsOnDeckPreviews()

bool VisualDeckStorageQuickSettingsWidget::getShowTagsOnDeckPreviews ( ) const
nodiscard

◆ getShowUploadTime()

bool VisualDeckStorageQuickSettingsWidget::getShowUploadTime ( ) const
nodiscard

◆ getUnusedColorIdentitiesOpacity()

int VisualDeckStorageQuickSettingsWidget::getUnusedColorIdentitiesOpacity ( ) const
nodiscard

◆ retranslateUi()

void VisualDeckStorageQuickSettingsWidget::retranslateUi ( )
Here is the caller graph for this function:

◆ setPublicDecksMode()

void VisualDeckStorageQuickSettingsWidget::setPublicDecksMode ( bool enabled)

Hides the controls that do not apply to the public decks tab.

The public decks tab reuses this widget for its quick settings menu but has no folders, banner selection or per-deck tooltip, so those controls are hidden while every shared key keeps syncing with SettingsCache.

Here is the caller graph for this function:

◆ showBannerCardComboBoxChanged

void VisualDeckStorageQuickSettingsWidget::showBannerCardComboBoxChanged ( bool enabled)
signal
Here is the caller graph for this function:

◆ showColorIdentityChanged

void VisualDeckStorageQuickSettingsWidget::showColorIdentityChanged ( bool enabled)
signal
Here is the caller graph for this function:

◆ showFoldersChanged

void VisualDeckStorageQuickSettingsWidget::showFoldersChanged ( bool enabled)
signal
Here is the caller graph for this function:

◆ showTagFilterChanged

void VisualDeckStorageQuickSettingsWidget::showTagFilterChanged ( bool enabled)
signal
Here is the caller graph for this function:

◆ showTagsOnDeckPreviewsChanged

void VisualDeckStorageQuickSettingsWidget::showTagsOnDeckPreviewsChanged ( bool enabled)
signal
Here is the caller graph for this function:

◆ showUploadTimeChanged

void VisualDeckStorageQuickSettingsWidget::showUploadTimeChanged ( bool enabled)
signal
Here is the caller graph for this function:

◆ unusedColorIdentitiesOpacityChanged

void VisualDeckStorageQuickSettingsWidget::unusedColorIdentitiesOpacityChanged ( int opacity)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ cardSizeWidget

CardSizeWidget* VisualDeckStorageQuickSettingsWidget::cardSizeWidget
private

◆ deckPreviewTooltipComboBox

QComboBox* VisualDeckStorageQuickSettingsWidget::deckPreviewTooltipComboBox
private

◆ deckPreviewTooltipLabel

QLabel* VisualDeckStorageQuickSettingsWidget::deckPreviewTooltipLabel
private

◆ deckPreviewTooltipWidget

QWidget* VisualDeckStorageQuickSettingsWidget::deckPreviewTooltipWidget
private

◆ drawUnusedColorIdentitiesCheckBox

QCheckBox* VisualDeckStorageQuickSettingsWidget::drawUnusedColorIdentitiesCheckBox
private

◆ showBannerCardComboBoxCheckBox

QCheckBox* VisualDeckStorageQuickSettingsWidget::showBannerCardComboBoxCheckBox
private

◆ showColorIdentityCheckBox

QCheckBox* VisualDeckStorageQuickSettingsWidget::showColorIdentityCheckBox
private

◆ showFoldersCheckBox

QCheckBox* VisualDeckStorageQuickSettingsWidget::showFoldersCheckBox
private

◆ showTagFilterCheckBox

QCheckBox* VisualDeckStorageQuickSettingsWidget::showTagFilterCheckBox
private

◆ showTagsOnDeckPreviewsCheckBox

QCheckBox* VisualDeckStorageQuickSettingsWidget::showTagsOnDeckPreviewsCheckBox
private

◆ showUploadTimeCheckBox

QCheckBox* VisualDeckStorageQuickSettingsWidget::showUploadTimeCheckBox
private

◆ unusedColorIdentitiesOpacityLabel

QLabel* VisualDeckStorageQuickSettingsWidget::unusedColorIdentitiesOpacityLabel
private

◆ unusedColorIdentitiesOpacitySpinBox

QSpinBox* VisualDeckStorageQuickSettingsWidget::unusedColorIdentitiesOpacitySpinBox
private

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