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

#include <tab_deck_storage_visual.h>

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

Public Slots

void actOpenLocalDeck (const QString &filePath)
void actShareDeck (const QString &filePath)

Signals

void openDeckEditor (const LoadedDeck &deck)
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)
void cockatriceLinkActivated (const QString &url)

Public Member Functions

 TabDeckStorageVisual (TabSupervisor *_tabSupervisor, AbstractClient *_client)
void retranslateUi () override
QString getTabText () const override
void enterShareMode (const QStringList &preselectFiles={})
 Enters share-selection mode, optionally preselecting the given deck files.
void exitShareMode ()
 Leaves share-selection mode and clears the selection.
bool isShareModeActive () const
Public Member Functions inherited from Tab
 Tab (TabSupervisor *_tabSupervisor)
const QList< QMenu * > & getTabMenus () const
TabSupervisor * getTabSupervisor () const
bool getContentsChanged () const
void setContentsChanged (bool _contentsChanged)
virtual bool closeRequest ()
virtual void tabActivated ()

Private Slots

void actShareSelected ()
void shareFinished (const Response &response, const CommandContainer &commandContainer)
void onShareTimeout ()
void onShareSelectionChanged ()
void handleConnectionChanged (ClientStatus status)

Private Member Functions

void showShareNotice (const QString &message, bool warning=false)
void updateShareHint ()

Private Attributes

VisualDeckStorageWidget * visualDeckStorageWidget
ShareBarWidget * shareBar = nullptr
AbstractClient * client
QTimer * shareTimeoutTimer
int shareRequestSeq = 0
int shareInFlightSeq = 0
bool shareDeckAvailable = false

Additional Inherited Members

Protected Slots inherited from Tab
void showCardInfoPopup (const QPoint &pos, const CardRef &cardRef)
void deleteCardInfoPopup (const QString &cardName)
Protected Member Functions inherited from Tab
void addTabMenu (QMenu *menu)
Protected Attributes inherited from Tab
TabSupervisor * tabSupervisor

Constructor & Destructor Documentation

◆ TabDeckStorageVisual()

TabDeckStorageVisual::TabDeckStorageVisual ( TabSupervisor * _tabSupervisor,
AbstractClient * _client )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ actOpenLocalDeck

void TabDeckStorageVisual::actOpenLocalDeck ( const QString & filePath)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actShareDeck

void TabDeckStorageVisual::actShareDeck ( const QString & filePath)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actShareSelected

void TabDeckStorageVisual::actShareSelected ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ enterShareMode()

void TabDeckStorageVisual::enterShareMode ( const QStringList & preselectFiles = {})

Enters share-selection mode, optionally preselecting the given deck files.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exitShareMode()

void TabDeckStorageVisual::exitShareMode ( )

Leaves share-selection mode and clears the selection.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabText()

QString TabDeckStorageVisual::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ handleConnectionChanged

void TabDeckStorageVisual::handleConnectionChanged ( ClientStatus status)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isShareModeActive()

bool TabDeckStorageVisual::isShareModeActive ( ) const
inlinenodiscard

◆ onShareSelectionChanged

void TabDeckStorageVisual::onShareSelectionChanged ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onShareTimeout

void TabDeckStorageVisual::onShareTimeout ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openDeckEditor

void TabDeckStorageVisual::openDeckEditor ( const LoadedDeck & deck)
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void TabDeckStorageVisual::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shareFinished

void TabDeckStorageVisual::shareFinished ( const Response & response,
const CommandContainer & commandContainer )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showShareNotice()

void TabDeckStorageVisual::showShareNotice ( const QString & message,
bool warning = false )
private
Here is the caller graph for this function:

◆ updateShareHint()

void TabDeckStorageVisual::updateShareHint ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ client

AbstractClient* TabDeckStorageVisual::client
private

◆ shareBar

ShareBarWidget* TabDeckStorageVisual::shareBar = nullptr
private

◆ shareDeckAvailable

bool TabDeckStorageVisual::shareDeckAvailable = false
private

◆ shareInFlightSeq

int TabDeckStorageVisual::shareInFlightSeq = 0
private

◆ shareRequestSeq

int TabDeckStorageVisual::shareRequestSeq = 0
private

◆ shareTimeoutTimer

QTimer* TabDeckStorageVisual::shareTimeoutTimer
private

◆ visualDeckStorageWidget

VisualDeckStorageWidget* TabDeckStorageVisual::visualDeckStorageWidget
private

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