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

#include <user_context_menu.h>

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

Signals

void openMessageDialog (const QString &userName, bool focus)

Public Member Functions

 UserContextMenu (TabSupervisor *_tabSupervisor, QWidget *_parent, AbstractGame *_game=0)
void retranslateUi ()
void showContextMenu (const QPoint &pos, const QString &userName, UserLevelFlags userLevel, bool online=true, int playerId=-1)
void showContextMenu (const QPoint &pos, const QString &userName, UserLevelFlags userLevel, ChatView *chatView)
void showContextMenu (const QPoint &pos, const QString &userName, UserLevelFlags userLevel, bool online, int playerId, const QString &deckHash, ChatView *chatView=nullptr)

Private Slots

void banUser_processUserInfoResponse (const Response &resp)
void warnUser_processGetWarningsListResponse (const Response &r)
void warnUser_processUserInfoResponse (const Response &resp)
void banUserHistory_processResponse (const Response &resp)
void warnUserHistory_processResponse (const Response &resp)
void getAdminNotes_processResponse (const Response &resp)
void adjustMod_processUserResponse (const Response &resp, const CommandContainer &commandContainer)
void banUser_dialogFinished ()
void warnUser_dialogFinished ()
void updateAdminNotes_dialogFinished ()
void gamesOfUserReceived (const Response &resp, const CommandContainer &commandContainer)

Private Attributes

AbstractClientclient
TabSupervisortabSupervisor
const UserListProxyuserListProxy
AbstractGamegame
QAction * aUserName
QAction * aDetails
QAction * aShowGames
QAction * aChat
QAction * aAddToBuddyList
QAction * aRemoveFromBuddyList
QAction * aAddToIgnoreList
QAction * aRemoveFromIgnoreList
QAction * aKick
QAction * aBan
QAction * aBanHistory
QAction * aPromoteToMod
QAction * aDemoteFromMod
QAction * aPromoteToJudge
QAction * aDemoteFromJudge
QAction * aWarnUser
QAction * aWarnHistory
QAction * aGetAdminNotes

Constructor & Destructor Documentation

◆ UserContextMenu()

UserContextMenu::UserContextMenu ( TabSupervisor * _tabSupervisor,
QWidget * _parent,
AbstractGame * _game = 0 )
Here is the call graph for this function:

Member Function Documentation

◆ adjustMod_processUserResponse

void UserContextMenu::adjustMod_processUserResponse ( const Response & resp,
const CommandContainer & commandContainer )
privateslot
Here is the caller graph for this function:

◆ banUser_dialogFinished

void UserContextMenu::banUser_dialogFinished ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ banUser_processUserInfoResponse

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

◆ banUserHistory_processResponse

void UserContextMenu::banUserHistory_processResponse ( const Response & resp)
privateslot
Here is the caller graph for this function:

◆ gamesOfUserReceived

void UserContextMenu::gamesOfUserReceived ( const Response & resp,
const CommandContainer & commandContainer )
privateslot
Here is the caller graph for this function:

◆ getAdminNotes_processResponse

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

◆ openMessageDialog

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

◆ retranslateUi()

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

◆ showContextMenu() [1/3]

void UserContextMenu::showContextMenu ( const QPoint & pos,
const QString & userName,
UserLevelFlags userLevel,
bool online,
int playerId,
const QString & deckHash,
ChatView * chatView = nullptr )
Here is the call graph for this function:

◆ showContextMenu() [2/3]

void UserContextMenu::showContextMenu ( const QPoint & pos,
const QString & userName,
UserLevelFlags userLevel,
bool online = true,
int playerId = -1 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showContextMenu() [3/3]

void UserContextMenu::showContextMenu ( const QPoint & pos,
const QString & userName,
UserLevelFlags userLevel,
ChatView * chatView )
Here is the call graph for this function:

◆ updateAdminNotes_dialogFinished

void UserContextMenu::updateAdminNotes_dialogFinished ( )
privateslot
Here is the caller graph for this function:

◆ warnUser_dialogFinished

void UserContextMenu::warnUser_dialogFinished ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ warnUser_processGetWarningsListResponse

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

◆ warnUser_processUserInfoResponse

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

◆ warnUserHistory_processResponse

void UserContextMenu::warnUserHistory_processResponse ( const Response & resp)
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ aAddToBuddyList

QAction* UserContextMenu::aAddToBuddyList
private

◆ aAddToIgnoreList

QAction* UserContextMenu::aAddToIgnoreList
private

◆ aBan

QAction* UserContextMenu::aBan
private

◆ aBanHistory

QAction * UserContextMenu::aBanHistory
private

◆ aChat

QAction* UserContextMenu::aChat
private

◆ aDemoteFromJudge

QAction * UserContextMenu::aDemoteFromJudge
private

◆ aDemoteFromMod

QAction * UserContextMenu::aDemoteFromMod
private

◆ aDetails

QAction* UserContextMenu::aDetails
private

◆ aGetAdminNotes

QAction* UserContextMenu::aGetAdminNotes
private

◆ aKick

QAction* UserContextMenu::aKick
private

◆ aPromoteToJudge

QAction* UserContextMenu::aPromoteToJudge
private

◆ aPromoteToMod

QAction* UserContextMenu::aPromoteToMod
private

◆ aRemoveFromBuddyList

QAction * UserContextMenu::aRemoveFromBuddyList
private

◆ aRemoveFromIgnoreList

QAction * UserContextMenu::aRemoveFromIgnoreList
private

◆ aShowGames

QAction* UserContextMenu::aShowGames
private

◆ aUserName

QAction* UserContextMenu::aUserName
private

◆ aWarnHistory

QAction * UserContextMenu::aWarnHistory
private

◆ aWarnUser

QAction* UserContextMenu::aWarnUser
private

◆ client

AbstractClient* UserContextMenu::client
private

◆ game

AbstractGame* UserContextMenu::game
private

◆ tabSupervisor

TabSupervisor* UserContextMenu::tabSupervisor
private

◆ userListProxy

const UserListProxy* UserContextMenu::userListProxy
private

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