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

#include <tab_message.h>

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

Signals

void talkClosing (TabMessage *tab)
void maximizeClient ()
Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)

Public Member Functions

 TabMessage (TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User &_ownUserInfo, const ServerInfo_User &_otherUserInfo)
 ~TabMessage () override
void retranslateUi () override
void tabActivated () override
QString getUserName () const
QString getTabText () const override
void processUserMessageEvent (const Event_UserMessage &event)
void processUserLeft ()
void processUserJoined (const ServerInfo_User &_userInfo)
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 messageSent (const Response &response)
void addMentionTag (QString mentionTag)
void messageClicked ()

Private Member Functions

bool shouldShowSystemPopup (const Event_UserMessage &event)
void showSystemPopup (const Event_UserMessage &event)

Private Attributes

AbstractClientclient
QMenu * messageMenu
ServerInfo_User * ownUserInfo
ServerInfo_User * otherUserInfo
bool userOnline
ChatViewchatView
LineEditUnfocusablesayEdit
QAction * aLeave

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ TabMessage()

TabMessage::TabMessage ( TabSupervisor * _tabSupervisor,
AbstractClient * _client,
const ServerInfo_User & _ownUserInfo,
const ServerInfo_User & _otherUserInfo )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~TabMessage()

TabMessage::~TabMessage ( )
override

Member Function Documentation

◆ addMentionTag

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

◆ closeEvent

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

◆ getTabText()

QString TabMessage::getTabText ( ) const
nodiscardoverridevirtual

Implements Tab.

◆ getUserName()

QString TabMessage::getUserName ( ) const
nodiscard
Here is the caller graph for this function:

◆ maximizeClient

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

◆ messageClicked

void TabMessage::messageClicked ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ messageSent

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

◆ processUserJoined()

void TabMessage::processUserJoined ( const ServerInfo_User & _userInfo)
Here is the caller graph for this function:

◆ processUserLeft()

void TabMessage::processUserLeft ( )
Here is the caller graph for this function:

◆ processUserMessageEvent()

void TabMessage::processUserMessageEvent ( const Event_UserMessage & event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void TabMessage::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ sendMessage

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

◆ shouldShowSystemPopup()

bool TabMessage::shouldShowSystemPopup ( const Event_UserMessage & event)
private
Here is the caller graph for this function:

◆ showSystemPopup()

void TabMessage::showSystemPopup ( const Event_UserMessage & event)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tabActivated()

void TabMessage::tabActivated ( )
overridevirtual

Reimplemented from Tab.

◆ talkClosing

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

Member Data Documentation

◆ aLeave

QAction* TabMessage::aLeave
private

◆ chatView

ChatView* TabMessage::chatView
private

◆ client

AbstractClient* TabMessage::client
private

◆ messageMenu

QMenu* TabMessage::messageMenu
private

◆ otherUserInfo

ServerInfo_User* TabMessage::otherUserInfo
private

◆ ownUserInfo

ServerInfo_User* TabMessage::ownUserInfo
private

◆ sayEdit

LineEditUnfocusable* TabMessage::sayEdit
private

◆ userOnline

bool TabMessage::userOnline
private

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