![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <tab_room.h>
Signals | |
| void | roomClosing (TabRoom *tab) |
| void | openMessageDialog (const QString &userName, bool focus) |
| void | maximizeClient () |
| void | notIdle () |
| void | gameListUpdated () |
| Signals inherited from Tab | |
| void | userEvent (bool globalEvent=true) |
| void | tabTextChanged (Tab *tab, const QString &newTabText) |
| void | cockatriceLinkActivated (const QString &url) |
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 |
| QString | getRoomName () const |
| const QMap< int, QString > & | getGameTypes () const |
| QString | getChannelName () const |
| QString | getTabText () const override |
| const ServerInfo_User * | getUserInfo () const |
| GameSelector * | getGameSelector () const |
| PendingCommand * | prepareRoomCommand (const ::google::protobuf::Message &cmd) |
| void | sendRoomCommand (PendingCommand *pend) |
| Public Member Functions inherited from Tab | |
| Tab (TabSupervisor *_tabSupervisor) | |
| const QList< QMenu * > & | getTabMenus () const |
| TabSupervisor * | getTabSupervisor () 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 | onChannelChanged (int index) |
| void | onChannelTabClicked (int index) |
| void | setChatCollapsed (bool collapsed) |
| 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 | processRoomChannelSayEvent (const Event_RoomChannelSay &event) |
| void | processRemoveMessagesEvent (const Event_RemoveMessages &event) |
| void | refreshShortcuts () |
| ChatView * | makeChatView () |
| void | updateChannelTab (const QString &channelId) |
| void | updateSayEnabled () |
| void | markChannelMessage (const QString &channelId, const QString &message, const ServerInfo_User &senderInfo) |
| bool | messageContainsMention (const QString &message, const ServerInfo_User &senderInfo) const |
| bool | isRoomMessageIgnored (const QString &senderName, ServerInfo_User &userInfoOut) const |
| static QColor | parseColorHex (const QString &hex, const QColor &fallback) |
Private Member Functions | |
| QString | sanitizeHtml (QString dirty) const |
Private Attributes | |
| AbstractClient * | client |
| int | roomId |
| QString | roomName |
| ServerInfo_User * | ownUser |
| QMap< int, QString > | gameTypes |
| GameSelector * | gameSelector |
| UserListPanelWidget * | userListPanel |
| UserListWidget * | userList |
| const UserListProxy * | userListProxy |
| ChatView * | chatView |
| QStackedWidget * | chatViewStack |
| QTabBar * | channelTabBar |
| QWidget * | sayWidget |
| QMap< QString, ChatView * > | channelViews |
| QMap< QString, QString > | channelDisplayNames |
| QMap< QString, int > | channelUnreadCounts |
| QMap< QString, bool > | channelMentioned |
| QMap< QString, bool > | channelWritable |
| QStringList | channelIds |
| QString | activeChannelId |
| bool | chatCollapsed |
| QLabel * | sayLabel |
| LineEditCompleter * | sayEdit |
| QStringListModel * | mentionModel |
| QGroupBox * | chatGroupBox |
| QSplitter * | chatSplitter |
| QList< int > | savedSplitterSizes |
| QMenu * | roomMenu |
| QAction * | aLeaveRoom |
| QAction * | aOpenChatSettings |
| QAction * | aClearChat |
| QStringList | autocompleteUserList |
| QCompleter * | mentionCompleter |
Additional Inherited Members | |
| Protected Member Functions inherited from Tab | |
| void | addTabMenu (QMenu *menu) |
| Protected Attributes inherited from Tab | |
| TabSupervisor * | tabSupervisor |
| TabRoom::TabRoom | ( | TabSupervisor * | _tabSupervisor, |
| AbstractClient * | _client, | ||
| ServerInfo_User * | _ownUser, | ||
| const ServerInfo_Room & | info ) |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
overrideprotectedslot |
|
privateslot |
|
signal |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscardoverridevirtual |
Implements Tab.
|
inlinenodiscard |
|
nodiscardprivateslot |
|
privateslot |
|
privateslot |
|
signal |
|
nodiscardprivateslot |
|
signal |
|
privateslot |
|
privateslot |
|
signal |
|
staticprivateslot |
| PendingCommand * TabRoom::prepareRoomCommand | ( | const ::google::protobuf::Message & | cmd | ) |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
| void TabRoom::processRoomEvent | ( | const RoomEvent & | event | ) |
|
privateslot |
|
privateslot |
|
overridevirtual |
Implements Tab.
|
signal |
|
nodiscardprivate |
|
privateslot |
| void TabRoom::sendRoomCommand | ( | PendingCommand * | pend | ) |
|
privateslot |
|
overridevirtual |
Reimplemented from Tab.
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |