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

#include <player_list_widget.h>

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

Public Slots

void addPlayer (const ServerInfo_PlayerProperties &player)
void removePlayer (int playerId)
void updatePlayerProperties (const ServerInfo_PlayerProperties &prop, int playerId=-1)

Signals

void openMessageDialog (const QString &userName, bool focus)

Public Member Functions

 PlayerListWidget (TabSupervisor *_tabSupervisor, AbstractClient *_client, AbstractGame *_game, QWidget *parent=nullptr)
void retranslateUi ()
void setActivePlayer (int playerId)
void setGameStarted (bool _gameStarted, bool resuming)
void showContextMenu (const QPoint &pos, const QModelIndex &index)

Private Attributes

PlayerListItemDelegateitemDelegate
QMap< int, QTreeWidgetItem * > players
TabSupervisortabSupervisor
AbstractClientclient
AbstractGamegame
UserContextMenuuserContextMenu
QIcon readyIcon
QIcon notReadyIcon
QIcon concededIcon
QIcon playerIcon
QIcon judgeIcon
QIcon spectatorIcon
QIcon lockIcon
bool gameStarted

Constructor & Destructor Documentation

◆ PlayerListWidget()

PlayerListWidget::PlayerListWidget ( TabSupervisor * _tabSupervisor,
AbstractClient * _client,
AbstractGame * _game,
QWidget * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ addPlayer

void PlayerListWidget::addPlayer ( const ServerInfo_PlayerProperties & player)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openMessageDialog

void PlayerListWidget::openMessageDialog ( const QString & userName,
bool focus )
signal
Here is the caller graph for this function:

◆ removePlayer

void PlayerListWidget::removePlayer ( int playerId)
slot
Here is the caller graph for this function:

◆ retranslateUi()

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

◆ setActivePlayer()

void PlayerListWidget::setActivePlayer ( int playerId)

◆ setGameStarted()

void PlayerListWidget::setGameStarted ( bool _gameStarted,
bool resuming )

◆ showContextMenu()

void PlayerListWidget::showContextMenu ( const QPoint & pos,
const QModelIndex & index )

◆ updatePlayerProperties

void PlayerListWidget::updatePlayerProperties ( const ServerInfo_PlayerProperties & prop,
int playerId = -1 )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ client

AbstractClient* PlayerListWidget::client
private

◆ concededIcon

QIcon PlayerListWidget::concededIcon
private

◆ game

AbstractGame* PlayerListWidget::game
private

◆ gameStarted

bool PlayerListWidget::gameStarted
private

◆ itemDelegate

PlayerListItemDelegate* PlayerListWidget::itemDelegate
private

◆ judgeIcon

QIcon PlayerListWidget::judgeIcon
private

◆ lockIcon

QIcon PlayerListWidget::lockIcon
private

◆ notReadyIcon

QIcon PlayerListWidget::notReadyIcon
private

◆ playerIcon

QIcon PlayerListWidget::playerIcon
private

◆ players

QMap<int, QTreeWidgetItem *> PlayerListWidget::players
private

◆ readyIcon

QIcon PlayerListWidget::readyIcon
private

◆ spectatorIcon

QIcon PlayerListWidget::spectatorIcon
private

◆ tabSupervisor

TabSupervisor* PlayerListWidget::tabSupervisor
private

◆ userContextMenu

UserContextMenu* PlayerListWidget::userContextMenu
private

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