Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
TabDeckStorage Class Reference

#include <tab_deck_storage.h>

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

Signals

void openDeckEditor (DeckLoader *deckLoader)
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)

Public Member Functions

 TabDeckStorage (TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User *currentUserInfo)
void retranslateUi () override
QString getTabText () const override
Public Member Functions inherited from Tab
 Tab (TabSupervisor *_tabSupervisor)
const QList< QMenu * > & getTabMenus () const
TabSupervisorgetTabSupervisor () const
bool getContentsChanged () const
void setContentsChanged (bool _contentsChanged)
virtual bool closeRequest ()
virtual void tabActivated ()

Private Slots

void handleConnected (const ServerInfo_User &userInfo)
void handleConnectionChanged (ClientStatus status)
void actLocalDoubleClick (const QModelIndex &curLeft)
void actOpenLocalDeck ()
void actRenameLocal ()
void actUpload ()
void uploadFinished (const Response &r, const CommandContainer &commandContainer)
void actNewLocalFolder ()
void actDeleteLocalDeck ()
void actOpenDecksFolder ()
void actRemoteDoubleClick (const QModelIndex &curRight)
void actOpenRemoteDeck ()
void openRemoteDeckFinished (const Response &r, const CommandContainer &commandContainer)
void actDownload ()
void downloadFinished (const Response &r, const CommandContainer &commandContainer, const QVariant &extraData)
void actNewFolder ()
void newFolderFinished (const Response &response, const CommandContainer &commandContainer)
void actDeleteRemoteDeck ()
void deleteFolderFinished (const Response &response, const CommandContainer &commandContainer)
void deleteDeckFinished (const Response &response, const CommandContainer &commandContainer)

Private Member Functions

QString getTargetPath () const
void setRemoteEnabled (bool enabled)
void uploadDeck (const QString &filePath, const QString &targetPath)
void deleteRemoteDeck (const RemoteDeckList_TreeModel::Node *node)
void downloadNodeAtIndex (const QModelIndex &curLeft, const QModelIndex &curRight)

Private Attributes

AbstractClientclient
QTreeView * localDirView
QFileSystemModel * localDirModel
QToolBar * leftToolBar
QToolBar * rightToolBar
RemoteDeckList_TreeWidgetserverDirView
QGroupBox * leftGroupBox
QGroupBox * rightGroupBox
QAction * aOpenLocalDeck
QAction * aRenameLocal
QAction * aUpload
QAction * aNewLocalFolder
QAction * aDeleteLocalDeck
QAction * aOpenDecksFolder
QAction * aOpenRemoteDeck
QAction * aDownload
QAction * aNewFolder
QAction * aDeleteRemoteDeck

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
TabSupervisortabSupervisor

Constructor & Destructor Documentation

◆ TabDeckStorage()

TabDeckStorage::TabDeckStorage ( TabSupervisor * _tabSupervisor,
AbstractClient * _client,
const ServerInfo_User * currentUserInfo )
Here is the call graph for this function:

Member Function Documentation

◆ actDeleteLocalDeck

void TabDeckStorage::actDeleteLocalDeck ( )
privateslot
Here is the caller graph for this function:

◆ actDeleteRemoteDeck

void TabDeckStorage::actDeleteRemoteDeck ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDownload

void TabDeckStorage::actDownload ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actLocalDoubleClick

void TabDeckStorage::actLocalDoubleClick ( const QModelIndex & curLeft)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actNewFolder

void TabDeckStorage::actNewFolder ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actNewLocalFolder

void TabDeckStorage::actNewLocalFolder ( )
privateslot
Here is the caller graph for this function:

◆ actOpenDecksFolder

void TabDeckStorage::actOpenDecksFolder ( )
privateslot
Here is the caller graph for this function:

◆ actOpenLocalDeck

void TabDeckStorage::actOpenLocalDeck ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actOpenRemoteDeck

void TabDeckStorage::actOpenRemoteDeck ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRemoteDoubleClick

void TabDeckStorage::actRemoteDoubleClick ( const QModelIndex & curRight)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRenameLocal

void TabDeckStorage::actRenameLocal ( )
privateslot
Here is the caller graph for this function:

◆ actUpload

void TabDeckStorage::actUpload ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteDeckFinished

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

◆ deleteFolderFinished

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

◆ deleteRemoteDeck()

void TabDeckStorage::deleteRemoteDeck ( const RemoteDeckList_TreeModel::Node * node)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ downloadFinished

void TabDeckStorage::downloadFinished ( const Response & r,
const CommandContainer & commandContainer,
const QVariant & extraData )
privateslot
Here is the caller graph for this function:

◆ downloadNodeAtIndex()

void TabDeckStorage::downloadNodeAtIndex ( const QModelIndex & curLeft,
const QModelIndex & curRight )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabText()

QString TabDeckStorage::getTabText ( ) const
inlineoverridevirtual

Implements Tab.

◆ getTargetPath()

QString TabDeckStorage::getTargetPath ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleConnected

void TabDeckStorage::handleConnected ( const ServerInfo_User & userInfo)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleConnectionChanged

void TabDeckStorage::handleConnectionChanged ( ClientStatus status)
privateslot

This is only responsible for handling the disconnect. The connect is already handled elsewhere

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

◆ newFolderFinished

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

◆ openDeckEditor

void TabDeckStorage::openDeckEditor ( DeckLoader * deckLoader)
signal
Here is the caller graph for this function:

◆ openRemoteDeckFinished

void TabDeckStorage::openRemoteDeckFinished ( const Response & r,
const CommandContainer & commandContainer )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void TabDeckStorage::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ setRemoteEnabled()

void TabDeckStorage::setRemoteEnabled ( bool enabled)
private
Here is the caller graph for this function:

◆ uploadDeck()

void TabDeckStorage::uploadDeck ( const QString & filePath,
const QString & targetPath )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ uploadFinished

void TabDeckStorage::uploadFinished ( const Response & r,
const CommandContainer & commandContainer )
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ aDeleteLocalDeck

QAction * TabDeckStorage::aDeleteLocalDeck
private

◆ aDeleteRemoteDeck

QAction * TabDeckStorage::aDeleteRemoteDeck
private

◆ aDownload

QAction * TabDeckStorage::aDownload
private

◆ aNewFolder

QAction * TabDeckStorage::aNewFolder
private

◆ aNewLocalFolder

QAction * TabDeckStorage::aNewLocalFolder
private

◆ aOpenDecksFolder

QAction* TabDeckStorage::aOpenDecksFolder
private

◆ aOpenLocalDeck

QAction* TabDeckStorage::aOpenLocalDeck
private

◆ aOpenRemoteDeck

QAction* TabDeckStorage::aOpenRemoteDeck
private

◆ aRenameLocal

QAction * TabDeckStorage::aRenameLocal
private

◆ aUpload

QAction * TabDeckStorage::aUpload
private

◆ client

AbstractClient* TabDeckStorage::client
private

◆ leftGroupBox

QGroupBox* TabDeckStorage::leftGroupBox
private

◆ leftToolBar

QToolBar* TabDeckStorage::leftToolBar
private

◆ localDirModel

QFileSystemModel* TabDeckStorage::localDirModel
private

◆ localDirView

QTreeView* TabDeckStorage::localDirView
private

◆ rightGroupBox

QGroupBox * TabDeckStorage::rightGroupBox
private

◆ rightToolBar

QToolBar * TabDeckStorage::rightToolBar
private

◆ serverDirView

RemoteDeckList_TreeWidget* TabDeckStorage::serverDirView
private

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