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

#include <tab_room.h>

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

Signals

void roomClosing (TabRoom *tab)
void openMessageDialog (const QString &userName, bool focus)
void maximizeClient ()
void notIdle ()
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)

Public Member Functions

 TabRoom (TabSupervisor *_tabSupervisor, AbstractClient *_client, ServerInfo_User *_ownUser, const ServerInfo_Room &info)
void retranslateUi () override
void tabActivated () override
void processRoomEvent (const RoomEvent &event)
int getRoomId () const
const QMap< int, QString > & getGameTypes () const
QString getChannelName () const
QString getTabText () const override
const ServerInfo_User * getUserInfo () const
PendingCommandprepareRoomCommand (const ::google::protobuf::Message &cmd)
void sendRoomCommand (PendingCommand *pend)
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 ()

Protected Slots

void closeEvent (QCloseEvent *event) override
Protected Slots inherited from Tab
void showCardInfoPopup (const QPoint &pos, const CardRef &cardRef)
void deleteCardInfoPopup (const QString &cardName)

Private Slots

void sendMessage ()
void sayFinished (const Response &response)
void actClearChat ()
void actOpenChatSettings ()
void addMentionTag (QString mentionTag)
void focusTab ()
void actShowMentionPopup (const QString &sender)
void actShowPopup (const QString &message)
void actCompleterChanged ()
void processListGamesEvent (const Event_ListGames &event)
void processJoinRoomEvent (const Event_JoinRoom &event)
void processLeaveRoomEvent (const Event_LeaveRoom &event)
void processRoomSayEvent (const Event_RoomSay &event)
void processRemoveMessagesEvent (const Event_RemoveMessages &event)
void refreshShortcuts ()

Private Member Functions

QString sanitizeHtml (QString dirty) const

Private Attributes

AbstractClientclient
int roomId
QString roomName
ServerInfo_User * ownUser
QMap< int, QString > gameTypes
GameSelectorgameSelector
UserListWidgetuserList
const UserListProxyuserListProxy
ChatViewchatView
QLabel * sayLabel
LineEditCompletersayEdit
QGroupBox * chatGroupBox
QMenu * roomMenu
QAction * aLeaveRoom
QAction * aOpenChatSettings
QAction * aClearChat
QStringList autocompleteUserList
QCompleter * completer

Additional Inherited Members

Protected Member Functions inherited from Tab
void addTabMenu (QMenu *menu)
Protected Attributes inherited from Tab
TabSupervisortabSupervisor

Constructor & Destructor Documentation

◆ TabRoom()

TabRoom::TabRoom ( TabSupervisor * _tabSupervisor,
AbstractClient * _client,
ServerInfo_User * _ownUser,
const ServerInfo_Room & info )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ actClearChat

void TabRoom::actClearChat ( )
privateslot
Here is the caller graph for this function:

◆ actCompleterChanged

void TabRoom::actCompleterChanged ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actOpenChatSettings

void TabRoom::actOpenChatSettings ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actShowMentionPopup

void TabRoom::actShowMentionPopup ( const QString & sender)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actShowPopup

void TabRoom::actShowPopup ( const QString & message)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addMentionTag

void TabRoom::addMentionTag ( QString mentionTag)
privateslot
Here is the caller graph for this function:

◆ closeEvent

void TabRoom::closeEvent ( QCloseEvent * event)
overrideprotectedslot
Here is the call graph for this function:

◆ focusTab

void TabRoom::focusTab ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChannelName()

QString TabRoom::getChannelName ( ) const
inlinenodiscard

◆ getGameTypes()

const QMap< int, QString > & TabRoom::getGameTypes ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getRoomId()

int TabRoom::getRoomId ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getTabText()

QString TabRoom::getTabText ( ) const
inlinenodiscardoverridevirtual

Implements Tab.

◆ getUserInfo()

const ServerInfo_User * TabRoom::getUserInfo ( ) const
inlinenodiscard

◆ maximizeClient

void TabRoom::maximizeClient ( )
signal
Here is the caller graph for this function:

◆ notIdle

void TabRoom::notIdle ( )
signal

◆ openMessageDialog

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

◆ prepareRoomCommand()

PendingCommand * TabRoom::prepareRoomCommand ( const ::google::protobuf::Message & cmd)
Here is the caller graph for this function:

◆ processJoinRoomEvent

void TabRoom::processJoinRoomEvent ( const Event_JoinRoom & event)
privateslot
Here is the caller graph for this function:

◆ processLeaveRoomEvent

void TabRoom::processLeaveRoomEvent ( const Event_LeaveRoom & event)
privateslot
Here is the caller graph for this function:

◆ processListGamesEvent

void TabRoom::processListGamesEvent ( const Event_ListGames & event)
privateslot
Here is the caller graph for this function:

◆ processRemoveMessagesEvent

void TabRoom::processRemoveMessagesEvent ( const Event_RemoveMessages & event)
privateslot
Here is the caller graph for this function:

◆ processRoomEvent()

void TabRoom::processRoomEvent ( const RoomEvent & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processRoomSayEvent

void TabRoom::processRoomSayEvent ( const Event_RoomSay & event)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshShortcuts

void TabRoom::refreshShortcuts ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void TabRoom::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ roomClosing

void TabRoom::roomClosing ( TabRoom * tab)
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sanitizeHtml()

QString TabRoom::sanitizeHtml ( QString dirty) const
nodiscardprivate

◆ sayFinished

void TabRoom::sayFinished ( const Response & response)
privateslot
Here is the caller graph for this function:

◆ sendMessage

void TabRoom::sendMessage ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendRoomCommand()

void TabRoom::sendRoomCommand ( PendingCommand * pend)
Here is the caller graph for this function:

◆ tabActivated()

void TabRoom::tabActivated ( )
overridevirtual

Reimplemented from Tab.

Member Data Documentation

◆ aClearChat

QAction* TabRoom::aClearChat
private

◆ aLeaveRoom

QAction* TabRoom::aLeaveRoom
private

◆ aOpenChatSettings

QAction* TabRoom::aOpenChatSettings
private

◆ autocompleteUserList

QStringList TabRoom::autocompleteUserList
private

◆ chatGroupBox

QGroupBox* TabRoom::chatGroupBox
private

◆ chatView

ChatView* TabRoom::chatView
private

◆ client

AbstractClient* TabRoom::client
private

◆ completer

QCompleter* TabRoom::completer
private

◆ gameSelector

GameSelector* TabRoom::gameSelector
private

◆ gameTypes

QMap<int, QString> TabRoom::gameTypes
private

◆ ownUser

ServerInfo_User* TabRoom::ownUser
private

◆ roomId

int TabRoom::roomId
private

◆ roomMenu

QMenu* TabRoom::roomMenu
private

◆ roomName

QString TabRoom::roomName
private

◆ sayEdit

LineEditCompleter* TabRoom::sayEdit
private

◆ sayLabel

QLabel* TabRoom::sayLabel
private

◆ userList

UserListWidget* TabRoom::userList
private

◆ userListProxy

const UserListProxy* TabRoom::userListProxy
private

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