#include <tab_supervisor.h>
◆ DeckEditorType
| Enumerator |
|---|
| ClassicDeckEditor | |
| VisualDeckEditor | |
◆ TabSupervisor()
| TabSupervisor::TabSupervisor |
( |
AbstractClient * | _client, |
|
|
QMenu * | tabsMenu, |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
◆ ~TabSupervisor()
| TabSupervisor::~TabSupervisor |
( |
| ) |
|
|
override |
◆ actShowPopup()
| void TabSupervisor::actShowPopup |
( |
const QString & | message | ) |
|
|
static |
◆ actTabAccount
| void TabSupervisor::actTabAccount |
( |
bool | checked | ) |
|
|
privateslot |
◆ actTabAdmin
| void TabSupervisor::actTabAdmin |
( |
bool | checked | ) |
|
|
privateslot |
◆ actTabDeckStorage
| void TabSupervisor::actTabDeckStorage |
( |
bool | checked | ) |
|
|
privateslot |
◆ actTabHome
| void TabSupervisor::actTabHome |
( |
bool | checked | ) |
|
|
privateslot |
◆ actTabLog
| void TabSupervisor::actTabLog |
( |
bool | checked | ) |
|
|
privateslot |
◆ actTabReplays
| void TabSupervisor::actTabReplays |
( |
bool | checked | ) |
|
|
slot |
◆ actTabServer
| void TabSupervisor::actTabServer |
( |
bool | checked | ) |
|
|
privateslot |
◆ actTabVisualDeckStorage
| void TabSupervisor::actTabVisualDeckStorage |
( |
bool | checked | ) |
|
|
slot |
◆ addArchidektTab
◆ addCloseButtonToTab()
| void TabSupervisor::addCloseButtonToTab |
( |
Tab * | tab, |
|
|
int | tabIndex, |
|
|
QAction * | manager ) |
|
private |
Adds a usable close button to the tab.
- Parameters
-
| tab | The Tab |
| tabIndex | The tab bar index of the tab |
| manager | The menu action that corresponds to this tab, if this is a single-instance managed tab. Pass in nullptr if this is not a managed tab. |
◆ addDeckEditorTab
| TabDeckEditor * TabSupervisor::addDeckEditorTab |
( |
DeckLoader * | deckToOpen | ) |
|
|
slot |
Creates a new deck editor tab
- Parameters
-
| deckToOpen | The deck to open in the tab. Creates a copy of the DeckLoader instance. |
◆ addEdhrecMainTab
◆ addEdhrecTab
| TabEdhRec * TabSupervisor::addEdhrecTab |
( |
const CardInfoPtr & | cardToQuery, |
|
|
bool | isCommander = false ) |
|
slot |
◆ addMessageTab
| TabMessage * TabSupervisor::addMessageTab |
( |
const QString & | userName, |
|
|
bool | focus ) |
|
privateslot |
◆ addRoomTab
| void TabSupervisor::addRoomTab |
( |
const ServerInfo_Room & | info, |
|
|
bool | setCurrent ) |
|
privateslot |
◆ addVisualDatabaseDisplayTab
◆ addVisualDeckEditorTab
◆ adminLockChanged
| void TabSupervisor::adminLockChanged |
( |
bool | lock | ) |
|
|
signal |
◆ closeEvent()
| void TabSupervisor::closeEvent |
( |
QCloseEvent * | event | ) |
|
|
override |
◆ deckEditorClosed
◆ gameJoined
| void TabSupervisor::gameJoined |
( |
const Event_GameJoined & | event | ) |
|
|
privateslot |
◆ gameLeft
| void TabSupervisor::gameLeft |
( |
TabGame * | tab | ) |
|
|
privateslot |
◆ getAdminLocked()
| bool TabSupervisor::getAdminLocked |
( |
| ) |
const |
|
nodiscard |
Determine if a user is a moderator/administrator By seeing if they have the admin tab open & unlocked
- Returns
- if the admin tab is open & unlocked
◆ getClient()
◆ getDeckEditorTabs()
◆ getGameCount()
| int TabSupervisor::getGameCount |
( |
| ) |
const |
|
inlinenodiscard |
◆ getIsLocalGame()
| bool TabSupervisor::getIsLocalGame |
( |
| ) |
const |
|
inlinenodiscard |
◆ getRoomTabs()
| const QMap< int, TabRoom * > & TabSupervisor::getRoomTabs |
( |
| ) |
const |
|
inlinenodiscard |
◆ getTabAccount()
| TabAccount * TabSupervisor::getTabAccount |
( |
| ) |
const |
|
inlinenodiscard |
◆ getUserInfo()
| ServerInfo_User * TabSupervisor::getUserInfo |
( |
| ) |
const |
|
inlinenodiscard |
◆ getUserListManager()
◆ initStartupTabs()
| void TabSupervisor::initStartupTabs |
( |
| ) |
|
Opens the always-available tabs, depending on settings.
◆ localGameEnded
| void TabSupervisor::localGameEnded |
( |
| ) |
|
|
signal |
◆ localGameJoined
| void TabSupervisor::localGameJoined |
( |
const Event_GameJoined & | event | ) |
|
|
privateslot |
◆ maximizeMainWindow
| void TabSupervisor::maximizeMainWindow |
( |
| ) |
|
|
slot |
◆ myAddTab()
| int TabSupervisor::myAddTab |
( |
Tab * | tab, |
|
|
QAction * | manager = nullptr ) |
|
private |
Adds the tab to the TabSupervisor's tab bar.
- Parameters
-
| tab | The Tab to add |
| manager | The menu action that corresponds to this tab, if this is a single-instance managed tab. Pass in nullptr if this is not a managed tab. |
- Returns
- The index of the added tab in the tab widget's tab menu
◆ openDeckInNewTab
| void TabSupervisor::openDeckInNewTab |
( |
DeckLoader * | deckToOpen | ) |
|
|
slot |
Creates a new deck editor tab and loads the deck into it. Creates either a classic or visual deck editor tab depending on settings
- Parameters
-
| deckToOpen | The deck to open in the tab. Creates a copy of the DeckLoader instance. |
◆ openReplay
| void TabSupervisor::openReplay |
( |
GameReplay * | replay | ) |
|
|
slot |
◆ openTabAccount
| void TabSupervisor::openTabAccount |
( |
| ) |
|
|
privateslot |
◆ openTabAdmin
| void TabSupervisor::openTabAdmin |
( |
| ) |
|
|
privateslot |
◆ openTabDeckStorage
| void TabSupervisor::openTabDeckStorage |
( |
| ) |
|
|
privateslot |
◆ openTabHome
| void TabSupervisor::openTabHome |
( |
| ) |
|
|
privateslot |
◆ openTabLog
| void TabSupervisor::openTabLog |
( |
| ) |
|
|
privateslot |
◆ openTabReplays
| void TabSupervisor::openTabReplays |
( |
| ) |
|
|
privateslot |
◆ openTabServer
| void TabSupervisor::openTabServer |
( |
| ) |
|
|
privateslot |
◆ openTabVisualDeckStorage
| void TabSupervisor::openTabVisualDeckStorage |
( |
| ) |
|
|
privateslot |
◆ processGameEventContainer
| void TabSupervisor::processGameEventContainer |
( |
const GameEventContainer & | cont | ) |
|
|
privateslot |
◆ processNotifyUserEvent
| void TabSupervisor::processNotifyUserEvent |
( |
const Event_NotifyUser & | event | ) |
|
|
privateslot |
◆ processRoomEvent
| void TabSupervisor::processRoomEvent |
( |
const RoomEvent & | event | ) |
|
|
privateslot |
◆ processUserJoined
| void TabSupervisor::processUserJoined |
( |
const ServerInfo_User & | userInfo | ) |
|
|
privateslot |
◆ processUserLeft
| void TabSupervisor::processUserLeft |
( |
const QString & | userName | ) |
|
|
privateslot |
◆ processUserMessageEvent
| void TabSupervisor::processUserMessageEvent |
( |
const Event_UserMessage & | event | ) |
|
|
privateslot |
◆ refreshShortcuts
| void TabSupervisor::refreshShortcuts |
( |
| ) |
|
|
privateslot |
◆ replayLeft
| void TabSupervisor::replayLeft |
( |
TabGame * | tab | ) |
|
|
privateslot |
◆ resetTabsMenu()
| void TabSupervisor::resetTabsMenu |
( |
| ) |
|
|
private |
Resets the tabs menu to the tabs that are always available
◆ retranslateUi()
| void TabSupervisor::retranslateUi |
( |
| ) |
|
◆ roomLeft
| void TabSupervisor::roomLeft |
( |
TabRoom * | tab | ) |
|
|
privateslot |
◆ sanitizeHtml()
| QString TabSupervisor::sanitizeHtml |
( |
QString | dirty | ) |
|
|
staticprivate |
◆ sanitizeTabName()
| QString TabSupervisor::sanitizeTabName |
( |
QString | dirty | ) |
|
|
staticprivate |
◆ setMenu
| void TabSupervisor::setMenu |
( |
const QList< QMenu * > & | newMenuList = QList< QMenu * >() | ) |
|
|
signal |
◆ showWindowIfHidden
| void TabSupervisor::showWindowIfHidden |
( |
| ) |
|
|
signal |
◆ start()
| void TabSupervisor::start |
( |
const ServerInfo_User & | userInfo | ) |
|
◆ startLocal()
| void TabSupervisor::startLocal |
( |
const QList< AbstractClient * > & | _clients | ) |
|
◆ stop()
| void TabSupervisor::stop |
( |
| ) |
|
Call this when Cockatrice disconnects from the server in order to clean up.
◆ switchToFirstAvailableNetworkTab
| void TabSupervisor::switchToFirstAvailableNetworkTab |
( |
| ) |
|
|
slot |
◆ switchToGameTabIfAlreadyExists()
| bool TabSupervisor::switchToGameTabIfAlreadyExists |
( |
const int | gameId | ) |
|
◆ tabUserEvent
| void TabSupervisor::tabUserEvent |
( |
bool | globalEvent | ) |
|
|
privateslot |
◆ talkLeft
◆ updateCurrent
| void TabSupervisor::updateCurrent |
( |
int | index | ) |
|
|
privateslot |
◆ updatePingTime
| void TabSupervisor::updatePingTime |
( |
int | value, |
|
|
int | max ) |
|
privateslot |
◆ updateTabText
| void TabSupervisor::updateTabText |
( |
Tab * | tab, |
|
|
const QString & | newTabText ) |
|
privateslot |
◆ aTabAccount
| QAction * TabSupervisor::aTabAccount |
|
private |
◆ aTabAdmin
| QAction * TabSupervisor::aTabAdmin |
|
private |
◆ aTabArchidekt
| QAction * TabSupervisor::aTabArchidekt |
|
private |
◆ aTabDeckEditor
| QAction * TabSupervisor::aTabDeckEditor |
|
private |
◆ aTabDeckStorage
| QAction * TabSupervisor::aTabDeckStorage |
|
private |
◆ aTabEdhRec
| QAction * TabSupervisor::aTabEdhRec |
|
private |
◆ aTabHome
| QAction* TabSupervisor::aTabHome |
|
private |
◆ aTabLog
| QAction * TabSupervisor::aTabLog |
|
private |
◆ aTabReplays
| QAction * TabSupervisor::aTabReplays |
|
private |
◆ aTabServer
| QAction * TabSupervisor::aTabServer |
|
private |
◆ aTabVisualDatabaseDisplay
| QAction * TabSupervisor::aTabVisualDatabaseDisplay |
|
private |
◆ aTabVisualDeckEditor
| QAction * TabSupervisor::aTabVisualDeckEditor |
|
private |
◆ aTabVisualDeckStorage
| QAction * TabSupervisor::aTabVisualDeckStorage |
|
private |
◆ client
◆ deckEditorTabs
◆ gameTabs
| QMap<int, TabGame *> TabSupervisor::gameTabs |
|
private |
◆ isLocalGame
| bool TabSupervisor::isLocalGame |
|
private |
◆ localClients
◆ messageTabs
| QMap<QString, TabMessage *> TabSupervisor::messageTabs |
|
private |
◆ replayTabs
| QList<TabGame *> TabSupervisor::replayTabs |
|
private |
◆ roomTabs
| QMap<int, TabRoom *> TabSupervisor::roomTabs |
|
private |
◆ tabAccount
◆ tabAdmin
◆ tabDeckStorage
◆ tabHome
◆ tabLog
◆ tabReplays
◆ tabServer
◆ tabsMenu
| QMenu* TabSupervisor::tabsMenu |
|
private |
◆ tabVisualDeckStorage
◆ userInfo
| ServerInfo_User* TabSupervisor::userInfo |
|
private |
◆ userListManager
The documentation for this class was generated from the following files: