8#ifndef TAB_SUPERVISOR_H
9#define TAB_SUPERVISOR_H
12#include "../interface/widgets/server/game_link.h"
13#include "../interface/widgets/server/user/user_list_proxy.h"
22#include <QAbstractButton>
23#include <QLoggingCategory>
63 QRect
subElementRect(SubElement,
const QStyleOption *,
const QWidget *)
const override;
71 [[nodiscard]] QSize
sizeHint()
const override;
122 int myAddTab(
Tab *tab, QAction *manager =
nullptr);
134 void startLocal(
const QList<AbstractClient *> &_clients);
176 void setMenu(
const QList<QMenu *> &newMenuList = QList<QMenu *>());
Defines the AbstractTabDeckEditor class, which provides a base for deck editor tabs in the applicatio...
QSharedPointer< CardInfo > CardInfoPtr
Definition card_info.cpp:19
Definition abstract_client.h:57
AbstractTabDeckEditor is the base class for all deck editor tabs.
Definition abstract_tab_deck_editor.h:94
Represents a complete deck, including metadata, zones, cards, and sideboard plans.
Definition deck_list.h:63
Definition tab_supervisor.h:60
QRect subElementRect(SubElement, const QStyleOption *, const QWidget *) const override
Definition tab_supervisor.cpp:52
Definition tab_account.h:28
Definition tab_admin.h:37
Tab for browsing, searching, and filtering Archidekt decks.
Definition tab_archidekt.h:38
Definition tab_card_art_rules.h:50
TabDeckEditorVisual provides a fully-featured deck editor tab with an enhanced visual interface....
Definition tab_deck_editor_visual.h:55
TabDeckEditor provides a fully-featured deck editor tab. It extends AbstractTabDeckEditor.
Definition tab_deck_editor.h:55
Definition tab_deck_storage_visual.h:26
Definition tab_deck_storage.h:29
Definition tab_edhrec_main.h:22
Definition tab_edhrec.h:17
Definition tab_message.h:25
Definition tab_moderation.h:22
Definition tab_replays.h:28
Definition tab_report.h:24
Definition tab_server.h:48
void actTabLog(bool checked)
Definition tab_supervisor.cpp:809
QAction * aTabCardArtRules
Definition tab_supervisor.h:120
QAction * aTabLog
Definition tab_supervisor.h:120
QList< TabGame * > replayTabs
Definition tab_supervisor.h:113
TabEdhRecMain * addEdhrecMainTab()
Definition tab_supervisor.cpp:1192
TabDeckStorageVisual * tabVisualDeckStorage
Definition tab_supervisor.h:101
int getGameCount() const
Definition tab_supervisor.h:140
void refreshShortcuts()
Definition tab_supervisor.cpp:294
void openTabAdmin()
Definition tab_supervisor.cpp:772
QAction * aTabAccount
Definition tab_supervisor.h:119
void openTabHome()
Definition tab_supervisor.cpp:625
ServerInfo_User * getUserInfo() const
Definition tab_supervisor.h:148
QAction * aTabVisualDeckEditor
Definition tab_supervisor.h:118
static QString sanitizeHtml(QString dirty)
Definition tab_supervisor.cpp:343
QMenu * tabsMenu
Definition tab_supervisor.h:99
void openTabDeckStorage()
Definition tab_supervisor.cpp:724
UserListManager * getUserListManager() const
Definition tab_supervisor.h:153
QMap< int, TabGame * > gameTabs
Definition tab_supervisor.h:112
void roomLeft(TabRoom *tab)
Definition tab_supervisor.cpp:979
void openTabVisualDeckStorage()
Definition tab_supervisor.cpp:649
TabAccount * getTabAccount() const
Definition tab_supervisor.h:144
void actTabVisualDeckStorage(bool checked)
Definition tab_supervisor.cpp:636
void joinReportGame(int gameId, int roomId)
Definition tab_supervisor.cpp:1018
void addCloseButtonToTab(Tab *tab, int tabIndex, QAction *manager)
Definition tab_supervisor.cpp:452
void actTabModeration(bool checked)
Definition tab_supervisor.cpp:855
void gameLeft(TabGame *tab)
Definition tab_supervisor.cpp:951
~TabSupervisor() override
Definition tab_supervisor.cpp:217
QMap< QString, TabMessage * > messageTabs
Definition tab_supervisor.h:114
const QMap< int, TabRoom * > & getRoomTabs() const
Definition tab_supervisor.h:161
void tabUserEvent(bool globalEvent)
Definition tab_supervisor.cpp:1240
QList< AbstractClient * > localClients
Definition tab_supervisor.h:98
QAction * aTabAdmin
Definition tab_supervisor.h:119
AbstractClient * getClient() const
Definition tab_supervisor.cpp:333
void processUserJoined(const ServerInfo_User &userInfo)
Definition tab_supervisor.cpp:1328
TabServer * tabServer
Definition tab_supervisor.h:102
QAction * aTabVisualDeckStorage
Definition tab_supervisor.h:118
void talkLeft(TabMessage *tab)
Definition tab_supervisor.cpp:1083
void actTabAccount(bool checked)
Definition tab_supervisor.cpp:688
QAction * aTabReport
Definition tab_supervisor.h:120
void processUserMessageEvent(const Event_UserMessage &event)
Definition tab_supervisor.cpp:1278
TabAdmin * tabAdmin
Definition tab_supervisor.h:106
TabSupervisor(AbstractClient *_client, QMenu *tabsMenu, QWidget *parent=nullptr)
Definition tab_supervisor.cpp:118
void openTabReplays()
Definition tab_supervisor.cpp:749
bool getIsLocalGame() const
Definition tab_supervisor.h:136
void gameJoined(const Event_GameJoined &event)
Definition tab_supervisor.cpp:913
TabReplays * tabReplays
Definition tab_supervisor.h:105
void processUserLeft(const QString &userName)
Definition tab_supervisor.cpp:1320
TabDeckEditorVisual * addVisualDeckEditorTab(const LoadedDeck &deckToOpen)
Definition tab_supervisor.cpp:1180
static QString sanitizeTabName(QString dirty)
Definition tab_supervisor.cpp:338
bool switchToGameTabIfAlreadyExists(const int gameId)
Definition tab_supervisor.cpp:1449
void closeEvent(QCloseEvent *event) override
Definition tab_supervisor.cpp:312
void actTabDeckStorage(bool checked)
Definition tab_supervisor.cpp:713
TabModeration * tabModeration
Definition tab_supervisor.h:110
TabHome * tabHome
Definition tab_supervisor.h:100
void addRoomTab(const ServerInfo_Room &info, bool setCurrent)
Definition tab_supervisor.cpp:965
void actTabReplays(bool checked)
Definition tab_supervisor.cpp:736
void startLocal(const QList< AbstractClient * > &_clients)
Definition tab_supervisor.cpp:534
void switchToFirstAvailableNetworkTab()
Definition tab_supervisor.cpp:989
void openTabServer()
Definition tab_supervisor.cpp:671
TabEdhRec * addEdhrecTab(const CardInfoPtr &cardToQuery, bool isCommander=false)
Definition tab_supervisor.cpp:1218
QMap< int, TabRoom * > roomTabs
Definition tab_supervisor.h:111
void actTabAdmin(bool checked)
Definition tab_supervisor.cpp:761
void openTabAccount()
Definition tab_supervisor.cpp:699
AbstractClient * client
Definition tab_supervisor.h:96
int myAddTab(Tab *tab, QAction *manager=nullptr)
Definition tab_supervisor.cpp:429
void processRoomEvent(const RoomEvent &event)
Definition tab_supervisor.cpp:1259
void cockatriceLinkActivated(const QString &url)
void openReplay(GameReplay *replay)
Definition tab_supervisor.cpp:1000
void actTabReport(bool checked)
Definition tab_supervisor.cpp:831
QAction * aTabReplays
Definition tab_supervisor.h:119
DeckEditorType
Definition tab_supervisor.h:89
@ VisualDeckEditor
Definition tab_supervisor.h:91
@ ClassicDeckEditor
Definition tab_supervisor.h:90
QList< GameInviteOption > getGameInviteLinksForRoom(int roomId) const
Definition tab_supervisor.cpp:1093
void resetTabsMenu()
Definition tab_supervisor.cpp:469
UserListManager * userListManager
Definition tab_supervisor.h:97
void openTabReport()
Definition tab_supervisor.cpp:842
void updatePingTime(int value, int max)
Definition tab_supervisor.cpp:884
bool isLocalGame
Definition tab_supervisor.h:116
QAction * aTabDeckEditor
Definition tab_supervisor.h:118
QList< AbstractTabDeckEditor * > deckEditorTabs
Definition tab_supervisor.h:115
void actTabServer(bool checked)
Definition tab_supervisor.cpp:660
QAction * aTabVisualDatabaseDisplay
Definition tab_supervisor.h:119
void stop()
Definition tab_supervisor.cpp:556
void adminLockChanged(bool lock)
void sendInviteToUser(const QString &userName, const QString &inviteText)
Definition tab_supervisor.cpp:1133
TabLog * tabLog
Definition tab_supervisor.h:108
void replayLeft(TabGame *tab)
Definition tab_supervisor.cpp:1009
void processGameEventContainer(const GameEventContainer &cont)
Definition tab_supervisor.cpp:1267
TabMessage * addMessageTab(const QString &userName, bool focus)
Definition tab_supervisor.cpp:1042
void maximizeMainWindow()
Definition tab_supervisor.cpp:1078
void openTabLog()
Definition tab_supervisor.cpp:820
QAction * aTabDeckStorage
Definition tab_supervisor.h:119
QList< AbstractTabDeckEditor * > getDeckEditorTabs() const
Definition tab_supervisor.h:165
void deckEditorClosed(AbstractTabDeckEditor *tab)
Definition tab_supervisor.cpp:1230
TabAccount * tabAccount
Definition tab_supervisor.h:103
TabDeckEditor * addDeckEditorTab(const LoadedDeck &deckToOpen)
Definition tab_supervisor.cpp:1168
QAction * aTabServer
Definition tab_supervisor.h:119
void actTabCardArtRules(bool checked)
Definition tab_supervisor.cpp:784
void openTabModeration(const QString &userName={})
Definition tab_supervisor.cpp:866
void showWindowIfHidden()
void setMenu(const QList< QMenu * > &newMenuList=QList< QMenu * >())
void openTabCardArtRules()
Definition tab_supervisor.cpp:795
QAction * aTabArchidekt
Definition tab_supervisor.h:118
void updateCurrent(int index)
Definition tab_supervisor.cpp:1354
void start(const ServerInfo_User &userInfo)
Definition tab_supervisor.cpp:484
void localGameJoined(const Event_GameJoined &event)
Definition tab_supervisor.cpp:935
TabArchidekt * addArchidektTab()
Definition tab_supervisor.cpp:1201
void retranslateUi()
Definition tab_supervisor.cpp:231
ServerInfo_User * userInfo
Definition tab_supervisor.h:95
TabDeckStorage * tabDeckStorage
Definition tab_supervisor.h:104
void updateTabText(Tab *tab, const QString &newTabText)
Definition tab_supervisor.cpp:1252
void updateLatencyTooltip(const LatencyTracker::Stats &stats)
Definition tab_supervisor.cpp:896
void actTabHome(bool checked)
Definition tab_supervisor.cpp:615
QAction * aTabModeration
Definition tab_supervisor.h:120
TabCardArtRules * tabCardArtRules
Definition tab_supervisor.h:107
void processNotifyUserEvent(const Event_NotifyUser &event)
Definition tab_supervisor.cpp:1382
static void actShowPopup(const QString &message)
Definition tab_supervisor.cpp:1309
TabServer * getTabServer() const
Definition tab_supervisor.h:157
TabVisualDatabaseDisplay * addVisualDatabaseDisplayTab()
Definition tab_supervisor.cpp:1210
QAction * aTabEdhRec
Definition tab_supervisor.h:118
void initStartupTabs()
Definition tab_supervisor.cpp:369
void openDeckInNewTab(const LoadedDeck &deckToOpen)
Definition tab_supervisor.cpp:1146
TabReport * tabReport
Definition tab_supervisor.h:109
bool getAdminLocked() const
Definition tab_supervisor.cpp:1374
QAction * aTabHome
Definition tab_supervisor.h:118
Definition tab_visual_database_display.h:14
Definition user_list_manager.h:27
Definition event_game_joined.proto:5
Definition event_notify_user.proto:3
Definition event_user_message.proto:3
Definition game_event_container.proto:4
Definition game_replay.proto:4
Definition latency_tracker.h:27
Represents a deck that was loaded from somewhere. Contains the DeckList itself, as well as info about...
Definition loaded_deck.h:14
Definition room_event.proto:2
Definition serverinfo_room.proto:5
Definition serverinfo_user.proto:2
Q_LOGGING_CATEGORY(TabSupervisorLog, "tab_supervisor")