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

#include <tab_developer.h>

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

Public Member Functions

 TabDeveloper (TabSupervisor *_tabSupervisor, AbstractClient *_client)
void retranslateUi () override
QString getTabText () const override
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 refreshClicked ()
void serverStatsResponse (const Response &resp)
void autoRefreshToggled (bool checked)
void refreshIntervalChanged ()

Private Member Functions

void appendStatRow (const QString &name, const QString &value)
void appendSeparatorRow (const QString &sectionTitle)

Static Private Member Functions

static QString formatBytes (quint64 bytes)
static QString formatDurationMs (qint64 ms)

Private Attributes

AbstractClient * client
QTableWidget * statsTable
QTableWidget * commandTable
QPushButton * refreshButton
QLabel * statusLabel
QCheckBox * autoRefreshCheckBox
QSpinBox * refreshIntervalSpinBox
QTimer * autoRefreshTimer
bool requestPending = false

Additional Inherited Members

Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)
void cockatriceLinkActivated (const QString &url)
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

◆ TabDeveloper()

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

Member Function Documentation

◆ appendSeparatorRow()

void TabDeveloper::appendSeparatorRow ( const QString & sectionTitle)
private
Here is the caller graph for this function:

◆ appendStatRow()

void TabDeveloper::appendStatRow ( const QString & name,
const QString & value )
private
Here is the caller graph for this function:

◆ autoRefreshToggled

void TabDeveloper::autoRefreshToggled ( bool checked)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ formatBytes()

QString TabDeveloper::formatBytes ( quint64 bytes)
staticprivate
Here is the caller graph for this function:

◆ formatDurationMs()

QString TabDeveloper::formatDurationMs ( qint64 ms)
staticprivate
Here is the caller graph for this function:

◆ getTabText()

QString TabDeveloper::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ refreshClicked

void TabDeveloper::refreshClicked ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshIntervalChanged

void TabDeveloper::refreshIntervalChanged ( )
privateslot
Here is the caller graph for this function:

◆ retranslateUi()

void TabDeveloper::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ serverStatsResponse

void TabDeveloper::serverStatsResponse ( const Response & resp)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ autoRefreshCheckBox

QCheckBox* TabDeveloper::autoRefreshCheckBox
private

◆ autoRefreshTimer

QTimer* TabDeveloper::autoRefreshTimer
private

◆ client

AbstractClient* TabDeveloper::client
private

◆ commandTable

QTableWidget* TabDeveloper::commandTable
private

◆ refreshButton

QPushButton* TabDeveloper::refreshButton
private

◆ refreshIntervalSpinBox

QSpinBox* TabDeveloper::refreshIntervalSpinBox
private

◆ requestPending

bool TabDeveloper::requestPending = false
private

◆ statsTable

QTableWidget* TabDeveloper::statsTable
private

◆ statusLabel

QLabel* TabDeveloper::statusLabel
private

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