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

#include <tab_replays.h>

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

Signals

void openReplay (GameReplay *replay)
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)

Public Member Functions

 TabReplays (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 actRenameLocal ()
void actOpenLocalReplay ()
void actNewLocalFolder ()
void actDeleteLocalReplay ()
void actOpenReplaysFolder ()
void actRemoteDoubleClick (const QModelIndex &curLeft)
void actOpenRemoteReplay ()
void openRemoteReplayFinished (const Response &r)
void actDownload ()
void downloadFinished (const Response &r, const CommandContainer &commandContainer, const QVariant &extraData)
void actKeepRemoteReplay ()
void keepRemoteReplayFinished (const Response &r, const CommandContainer &commandContainer)
void actDeleteRemoteReplay ()
void deleteRemoteReplayFinished (const Response &r, const CommandContainer &commandContainer)
void actGetReplayCode ()
void getReplayCodeFinished (const Response &r, const CommandContainer &commandContainer)
void actSubmitReplayCode ()
void submitReplayCodeFinished (const Response &r, const CommandContainer &commandContainer)
void replayAddedEventReceived (const Event_ReplayAdded &event)

Private Member Functions

QGroupBox * createLeftLayout ()
QGroupBox * createRightLayout ()
void setRemoteEnabled (bool enabled)
void downloadNodeAtIndex (const QModelIndex &curLeft, const QModelIndex &curRight)

Private Attributes

AbstractClientclient
QTreeView * localDirView
QFileSystemModel * localDirModel
RemoteReplayList_TreeWidgetserverDirView
QGroupBox * leftGroupBox
QGroupBox * rightGroupBox
QAction * aOpenLocalReplay
QAction * aRenameLocal
QAction * aNewLocalFolder
QAction * aDeleteLocalReplay
QAction * aOpenReplaysFolder
QAction * aOpenRemoteReplay
QAction * aDownload
QAction * aKeep
QAction * aDeleteRemoteReplay
QAction * aGetReplayCode
QAction * aSubmitReplayCode

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

◆ TabReplays()

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

Member Function Documentation

◆ actDeleteLocalReplay

void TabReplays::actDeleteLocalReplay ( )
privateslot
Here is the caller graph for this function:

◆ actDeleteRemoteReplay

void TabReplays::actDeleteRemoteReplay ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDownload

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

◆ actGetReplayCode

void TabReplays::actGetReplayCode ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actKeepRemoteReplay

void TabReplays::actKeepRemoteReplay ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actLocalDoubleClick

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

◆ actNewLocalFolder

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

◆ actOpenLocalReplay

void TabReplays::actOpenLocalReplay ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actOpenRemoteReplay

void TabReplays::actOpenRemoteReplay ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actOpenReplaysFolder

void TabReplays::actOpenReplaysFolder ( )
privateslot
Here is the caller graph for this function:

◆ actRemoteDoubleClick

void TabReplays::actRemoteDoubleClick ( const QModelIndex & curLeft)
privateslot
Here is the call graph for this function:

◆ actRenameLocal

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

◆ actSubmitReplayCode

void TabReplays::actSubmitReplayCode ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createLeftLayout()

QGroupBox * TabReplays::createLeftLayout ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createRightLayout()

QGroupBox * TabReplays::createRightLayout ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteRemoteReplayFinished

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

◆ downloadFinished

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

◆ downloadNodeAtIndex()

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

◆ getReplayCodeFinished

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

◆ getTabText()

QString TabReplays::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ handleConnected

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

◆ handleConnectionChanged

void TabReplays::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:

◆ keepRemoteReplayFinished

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

◆ openRemoteReplayFinished

void TabReplays::openRemoteReplayFinished ( const Response & r)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openReplay

void TabReplays::openReplay ( GameReplay * replay)
signal
Here is the caller graph for this function:

◆ replayAddedEventReceived

void TabReplays::replayAddedEventReceived ( const Event_ReplayAdded & event)
privateslot
Here is the caller graph for this function:

◆ retranslateUi()

void TabReplays::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ setRemoteEnabled()

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

◆ submitReplayCodeFinished

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

Member Data Documentation

◆ aDeleteLocalReplay

QAction * TabReplays::aDeleteLocalReplay
private

◆ aDeleteRemoteReplay

QAction * TabReplays::aDeleteRemoteReplay
private

◆ aDownload

QAction * TabReplays::aDownload
private

◆ aGetReplayCode

QAction * TabReplays::aGetReplayCode
private

◆ aKeep

QAction * TabReplays::aKeep
private

◆ aNewLocalFolder

QAction * TabReplays::aNewLocalFolder
private

◆ aOpenLocalReplay

QAction* TabReplays::aOpenLocalReplay
private

◆ aOpenRemoteReplay

QAction* TabReplays::aOpenRemoteReplay
private

◆ aOpenReplaysFolder

QAction* TabReplays::aOpenReplaysFolder
private

◆ aRenameLocal

QAction * TabReplays::aRenameLocal
private

◆ aSubmitReplayCode

QAction* TabReplays::aSubmitReplayCode
private

◆ client

AbstractClient* TabReplays::client
private

◆ leftGroupBox

QGroupBox* TabReplays::leftGroupBox
private

◆ localDirModel

QFileSystemModel* TabReplays::localDirModel
private

◆ localDirView

QTreeView* TabReplays::localDirView
private

◆ rightGroupBox

QGroupBox * TabReplays::rightGroupBox
private

◆ serverDirView

RemoteReplayList_TreeWidget* TabReplays::serverDirView
private

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