![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <player_list_widget.h>
Public Slots | |
| void | addPlayer (const ServerInfo_PlayerProperties &player) |
| void | removePlayer (int playerId) |
| void | updatePlayerProperties (const ServerInfo_PlayerProperties &prop, int playerId=-1) |
| void | clearSpectators () |
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 | |
| PlayerListItemDelegate * | itemDelegate |
| QMap< int, QTreeWidgetItem * > | players |
| TabSupervisor * | tabSupervisor |
| AbstractClient * | client |
| AbstractGame * | game |
| UserContextMenu * | userContextMenu |
| QIcon | readyIcon |
| QIcon | notReadyIcon |
| QIcon | concededIcon |
| QIcon | playerIcon |
| QIcon | judgeIcon |
| QIcon | spectatorIcon |
| QIcon | lockIcon |
| bool | gameStarted |
| PlayerListWidget::PlayerListWidget | ( | TabSupervisor * | _tabSupervisor, |
| AbstractClient * | _client, | ||
| AbstractGame * | _game, | ||
| QWidget * | parent = nullptr ) |
|
slot |
|
slot |
|
signal |
|
slot |
| void PlayerListWidget::retranslateUi | ( | ) |
| void PlayerListWidget::setActivePlayer | ( | int | playerId | ) |
| void PlayerListWidget::setGameStarted | ( | bool | _gameStarted, |
| bool | resuming ) |
| void PlayerListWidget::showContextMenu | ( | const QPoint & | pos, |
| const QModelIndex & | index ) |
|
slot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |