mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
revert adding the param to myAddTab
This commit is contained in:
parent
8ab0852ae2
commit
8cc74b4df5
2 changed files with 60 additions and 49 deletions
|
|
@ -286,13 +286,13 @@ void TabSupervisor::initStartupTabs()
|
||||||
addDeckEditorTab(nullptr);
|
addDeckEditorTab(nullptr);
|
||||||
|
|
||||||
if (SettingsCache::instance().getTabVisualDeckStorageOpen()) {
|
if (SettingsCache::instance().getTabVisualDeckStorageOpen()) {
|
||||||
openTabVisualDeckStorage(false);
|
openTabVisualDeckStorage();
|
||||||
}
|
}
|
||||||
if (SettingsCache::instance().getTabDeckStorageOpen()) {
|
if (SettingsCache::instance().getTabDeckStorageOpen()) {
|
||||||
openTabDeckStorage(false);
|
openTabDeckStorage();
|
||||||
}
|
}
|
||||||
if (SettingsCache::instance().getTabReplaysOpen()) {
|
if (SettingsCache::instance().getTabReplaysOpen()) {
|
||||||
openTabReplays(false);
|
openTabReplays();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -300,12 +300,11 @@ void TabSupervisor::initStartupTabs()
|
||||||
* Adds the tab to the TabSupervisor's tab bar.
|
* Adds the tab to the TabSupervisor's tab bar.
|
||||||
*
|
*
|
||||||
* @param tab The Tab to add
|
* @param tab The Tab to add
|
||||||
* @param setCurrent Whether to set the current tab to that tab afterward.
|
|
||||||
* @param manager The menu action that corresponds to this tab, if this is a single-instance managed tab. Pass in
|
* @param 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.
|
* nullptr if this is not a managed tab.
|
||||||
* @return The index of the added tab in the tab widget's tab menu
|
* @return The index of the added tab in the tab widget's tab menu
|
||||||
*/
|
*/
|
||||||
int TabSupervisor::myAddTab(Tab *tab, bool setCurrent, QAction *manager)
|
int TabSupervisor::myAddTab(Tab *tab, QAction *manager)
|
||||||
{
|
{
|
||||||
connect(tab, &TabGame::userEvent, this, &TabSupervisor::tabUserEvent);
|
connect(tab, &TabGame::userEvent, this, &TabSupervisor::tabUserEvent);
|
||||||
connect(tab, &TabGame::tabTextChanged, this, &TabSupervisor::updateTabText);
|
connect(tab, &TabGame::tabTextChanged, this, &TabSupervisor::updateTabText);
|
||||||
|
|
@ -316,10 +315,6 @@ int TabSupervisor::myAddTab(Tab *tab, bool setCurrent, QAction *manager)
|
||||||
|
|
||||||
addCloseButtonToTab(tab, idx, manager);
|
addCloseButtonToTab(tab, idx, manager);
|
||||||
|
|
||||||
if (setCurrent) {
|
|
||||||
setCurrentWidget(tab);
|
|
||||||
}
|
|
||||||
|
|
||||||
return idx;
|
return idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -372,10 +367,10 @@ void TabSupervisor::start(const ServerInfo_User &_userInfo)
|
||||||
tabsMenu->addAction(aTabAccount);
|
tabsMenu->addAction(aTabAccount);
|
||||||
|
|
||||||
if (SettingsCache::instance().getTabServerOpen()) {
|
if (SettingsCache::instance().getTabServerOpen()) {
|
||||||
openTabServer(false);
|
openTabServer();
|
||||||
}
|
}
|
||||||
if (SettingsCache::instance().getTabAccountOpen()) {
|
if (SettingsCache::instance().getTabAccountOpen()) {
|
||||||
openTabAccount(false);
|
openTabAccount();
|
||||||
}
|
}
|
||||||
|
|
||||||
updatePingTime(0, -1);
|
updatePingTime(0, -1);
|
||||||
|
|
@ -386,10 +381,10 @@ void TabSupervisor::start(const ServerInfo_User &_userInfo)
|
||||||
tabsMenu->addAction(aTabLog);
|
tabsMenu->addAction(aTabLog);
|
||||||
|
|
||||||
if (SettingsCache::instance().getTabAdminOpen()) {
|
if (SettingsCache::instance().getTabAdminOpen()) {
|
||||||
openTabAdmin(false);
|
openTabAdmin();
|
||||||
}
|
}
|
||||||
if (SettingsCache::instance().getTabLogOpen()) {
|
if (SettingsCache::instance().getTabLogOpen()) {
|
||||||
openTabLog(false);
|
openTabLog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -472,16 +467,17 @@ void TabSupervisor::actTabVisualDeckStorage(bool checked)
|
||||||
{
|
{
|
||||||
SettingsCache::instance().setTabVisualDeckStorageOpen(checked);
|
SettingsCache::instance().setTabVisualDeckStorageOpen(checked);
|
||||||
if (checked && !tabVisualDeckStorage) {
|
if (checked && !tabVisualDeckStorage) {
|
||||||
openTabVisualDeckStorage(true);
|
openTabVisualDeckStorage();
|
||||||
|
setCurrentWidget(tabVisualDeckStorage);
|
||||||
} else if (!checked && tabVisualDeckStorage) {
|
} else if (!checked && tabVisualDeckStorage) {
|
||||||
tabVisualDeckStorage->closeRequest();
|
tabVisualDeckStorage->closeRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::openTabVisualDeckStorage(bool setCurrent)
|
void TabSupervisor::openTabVisualDeckStorage()
|
||||||
{
|
{
|
||||||
tabVisualDeckStorage = new TabDeckStorageVisual(this);
|
tabVisualDeckStorage = new TabDeckStorageVisual(this);
|
||||||
myAddTab(tabVisualDeckStorage, setCurrent, aTabVisualDeckStorage);
|
myAddTab(tabVisualDeckStorage, aTabVisualDeckStorage);
|
||||||
connect(tabVisualDeckStorage, &Tab::closed, this, [this] {
|
connect(tabVisualDeckStorage, &Tab::closed, this, [this] {
|
||||||
tabVisualDeckStorage = nullptr;
|
tabVisualDeckStorage = nullptr;
|
||||||
aTabVisualDeckStorage->setChecked(false);
|
aTabVisualDeckStorage->setChecked(false);
|
||||||
|
|
@ -493,17 +489,18 @@ void TabSupervisor::actTabServer(bool checked)
|
||||||
{
|
{
|
||||||
SettingsCache::instance().setTabServerOpen(checked);
|
SettingsCache::instance().setTabServerOpen(checked);
|
||||||
if (checked && !tabServer) {
|
if (checked && !tabServer) {
|
||||||
openTabServer(true);
|
openTabServer();
|
||||||
|
setCurrentWidget(tabServer);
|
||||||
} else if (!checked && tabServer) {
|
} else if (!checked && tabServer) {
|
||||||
tabServer->closeRequest();
|
tabServer->closeRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::openTabServer(bool setCurrent)
|
void TabSupervisor::openTabServer()
|
||||||
{
|
{
|
||||||
tabServer = new TabServer(this, client);
|
tabServer = new TabServer(this, client);
|
||||||
connect(tabServer, &TabServer::roomJoined, this, &TabSupervisor::addRoomTab);
|
connect(tabServer, &TabServer::roomJoined, this, &TabSupervisor::addRoomTab);
|
||||||
myAddTab(tabServer, setCurrent, aTabServer);
|
myAddTab(tabServer, aTabServer);
|
||||||
connect(tabServer, &Tab::closed, this, [this] {
|
connect(tabServer, &Tab::closed, this, [this] {
|
||||||
tabServer = nullptr;
|
tabServer = nullptr;
|
||||||
aTabServer->setChecked(false);
|
aTabServer->setChecked(false);
|
||||||
|
|
@ -515,19 +512,20 @@ void TabSupervisor::actTabAccount(bool checked)
|
||||||
{
|
{
|
||||||
SettingsCache::instance().setTabAccountOpen(checked);
|
SettingsCache::instance().setTabAccountOpen(checked);
|
||||||
if (checked && !tabAccount) {
|
if (checked && !tabAccount) {
|
||||||
openTabAccount(true);
|
openTabAccount();
|
||||||
|
setCurrentWidget(tabAccount);
|
||||||
} else if (!checked && tabAccount) {
|
} else if (!checked && tabAccount) {
|
||||||
tabAccount->closeRequest();
|
tabAccount->closeRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::openTabAccount(bool setCurrent)
|
void TabSupervisor::openTabAccount()
|
||||||
{
|
{
|
||||||
tabAccount = new TabAccount(this, client, *userInfo);
|
tabAccount = new TabAccount(this, client, *userInfo);
|
||||||
connect(tabAccount, &TabAccount::openMessageDialog, this, &TabSupervisor::addMessageTab);
|
connect(tabAccount, &TabAccount::openMessageDialog, this, &TabSupervisor::addMessageTab);
|
||||||
connect(tabAccount, &TabAccount::userJoined, this, &TabSupervisor::processUserJoined);
|
connect(tabAccount, &TabAccount::userJoined, this, &TabSupervisor::processUserJoined);
|
||||||
connect(tabAccount, &TabAccount::userLeft, this, &TabSupervisor::processUserLeft);
|
connect(tabAccount, &TabAccount::userLeft, this, &TabSupervisor::processUserLeft);
|
||||||
myAddTab(tabAccount, setCurrent, aTabAccount);
|
myAddTab(tabAccount, aTabAccount);
|
||||||
connect(tabAccount, &Tab::closed, this, [this] {
|
connect(tabAccount, &Tab::closed, this, [this] {
|
||||||
tabAccount = nullptr;
|
tabAccount = nullptr;
|
||||||
aTabAccount->setChecked(false);
|
aTabAccount->setChecked(false);
|
||||||
|
|
@ -539,17 +537,18 @@ void TabSupervisor::actTabDeckStorage(bool checked)
|
||||||
{
|
{
|
||||||
SettingsCache::instance().setTabDeckStorageOpen(checked);
|
SettingsCache::instance().setTabDeckStorageOpen(checked);
|
||||||
if (checked && !tabDeckStorage) {
|
if (checked && !tabDeckStorage) {
|
||||||
openTabDeckStorage(true);
|
openTabDeckStorage();
|
||||||
|
setCurrentWidget(tabDeckStorage);
|
||||||
} else if (!checked && tabDeckStorage) {
|
} else if (!checked && tabDeckStorage) {
|
||||||
tabDeckStorage->closeRequest();
|
tabDeckStorage->closeRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::openTabDeckStorage(bool setCurrent)
|
void TabSupervisor::openTabDeckStorage()
|
||||||
{
|
{
|
||||||
tabDeckStorage = new TabDeckStorage(this, client, userInfo);
|
tabDeckStorage = new TabDeckStorage(this, client, userInfo);
|
||||||
connect(tabDeckStorage, &TabDeckStorage::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
connect(tabDeckStorage, &TabDeckStorage::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
||||||
myAddTab(tabDeckStorage, setCurrent, aTabDeckStorage);
|
myAddTab(tabDeckStorage, aTabDeckStorage);
|
||||||
connect(tabDeckStorage, &Tab::closed, this, [this] {
|
connect(tabDeckStorage, &Tab::closed, this, [this] {
|
||||||
tabDeckStorage = nullptr;
|
tabDeckStorage = nullptr;
|
||||||
aTabDeckStorage->setChecked(false);
|
aTabDeckStorage->setChecked(false);
|
||||||
|
|
@ -561,17 +560,18 @@ void TabSupervisor::actTabReplays(bool checked)
|
||||||
{
|
{
|
||||||
SettingsCache::instance().setTabReplaysOpen(checked);
|
SettingsCache::instance().setTabReplaysOpen(checked);
|
||||||
if (checked && !tabReplays) {
|
if (checked && !tabReplays) {
|
||||||
openTabReplays(true);
|
openTabReplays();
|
||||||
|
setCurrentWidget(tabReplays);
|
||||||
} else if (!checked && tabReplays) {
|
} else if (!checked && tabReplays) {
|
||||||
tabReplays->closeRequest();
|
tabReplays->closeRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::openTabReplays(bool setCurrent)
|
void TabSupervisor::openTabReplays()
|
||||||
{
|
{
|
||||||
tabReplays = new TabReplays(this, client, userInfo);
|
tabReplays = new TabReplays(this, client, userInfo);
|
||||||
connect(tabReplays, &TabReplays::openReplay, this, &TabSupervisor::openReplay);
|
connect(tabReplays, &TabReplays::openReplay, this, &TabSupervisor::openReplay);
|
||||||
myAddTab(tabReplays, setCurrent, aTabReplays);
|
myAddTab(tabReplays, aTabReplays);
|
||||||
connect(tabReplays, &Tab::closed, this, [this] {
|
connect(tabReplays, &Tab::closed, this, [this] {
|
||||||
tabReplays = nullptr;
|
tabReplays = nullptr;
|
||||||
aTabReplays->setChecked(false);
|
aTabReplays->setChecked(false);
|
||||||
|
|
@ -583,17 +583,18 @@ void TabSupervisor::actTabAdmin(bool checked)
|
||||||
{
|
{
|
||||||
SettingsCache::instance().setTabAdminOpen(checked);
|
SettingsCache::instance().setTabAdminOpen(checked);
|
||||||
if (checked && !tabAdmin) {
|
if (checked && !tabAdmin) {
|
||||||
openTabAdmin(true);
|
openTabAdmin();
|
||||||
|
setCurrentWidget(tabAdmin);
|
||||||
} else if (!checked && tabAdmin) {
|
} else if (!checked && tabAdmin) {
|
||||||
tabAdmin->closeRequest();
|
tabAdmin->closeRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::openTabAdmin(bool setCurrent)
|
void TabSupervisor::openTabAdmin()
|
||||||
{
|
{
|
||||||
tabAdmin = new TabAdmin(this, client, (userInfo->user_level() & ServerInfo_User::IsAdmin));
|
tabAdmin = new TabAdmin(this, client, (userInfo->user_level() & ServerInfo_User::IsAdmin));
|
||||||
connect(tabAdmin, &TabAdmin::adminLockChanged, this, &TabSupervisor::adminLockChanged);
|
connect(tabAdmin, &TabAdmin::adminLockChanged, this, &TabSupervisor::adminLockChanged);
|
||||||
myAddTab(tabAdmin, setCurrent, aTabAdmin);
|
myAddTab(tabAdmin, aTabAdmin);
|
||||||
connect(tabAdmin, &Tab::closed, this, [this] {
|
connect(tabAdmin, &Tab::closed, this, [this] {
|
||||||
tabAdmin = nullptr;
|
tabAdmin = nullptr;
|
||||||
aTabAdmin->setChecked(false);
|
aTabAdmin->setChecked(false);
|
||||||
|
|
@ -605,16 +606,17 @@ void TabSupervisor::actTabLog(bool checked)
|
||||||
{
|
{
|
||||||
SettingsCache::instance().setTabLogOpen(checked);
|
SettingsCache::instance().setTabLogOpen(checked);
|
||||||
if (checked && !tabLog) {
|
if (checked && !tabLog) {
|
||||||
openTabLog(true);
|
openTabLog();
|
||||||
|
setCurrentWidget(tabLog);
|
||||||
} else if (!checked && tabLog) {
|
} else if (!checked && tabLog) {
|
||||||
tabLog->closeRequest();
|
tabLog->closeRequest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::openTabLog(bool setCurrent)
|
void TabSupervisor::openTabLog()
|
||||||
{
|
{
|
||||||
tabLog = new TabLog(this, client);
|
tabLog = new TabLog(this, client);
|
||||||
myAddTab(tabLog, setCurrent, aTabLog);
|
myAddTab(tabLog, aTabLog);
|
||||||
connect(tabLog, &Tab::closed, this, [this] {
|
connect(tabLog, &Tab::closed, this, [this] {
|
||||||
tabLog = nullptr;
|
tabLog = nullptr;
|
||||||
aTabAdmin->setChecked(false);
|
aTabAdmin->setChecked(false);
|
||||||
|
|
@ -647,8 +649,9 @@ void TabSupervisor::gameJoined(const Event_GameJoined &event)
|
||||||
connect(tab, &TabGame::gameClosing, this, &TabSupervisor::gameLeft);
|
connect(tab, &TabGame::gameClosing, this, &TabSupervisor::gameLeft);
|
||||||
connect(tab, &TabGame::openMessageDialog, this, &TabSupervisor::addMessageTab);
|
connect(tab, &TabGame::openMessageDialog, this, &TabSupervisor::addMessageTab);
|
||||||
connect(tab, &TabGame::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
connect(tab, &TabGame::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
||||||
myAddTab(tab, true);
|
myAddTab(tab);
|
||||||
gameTabs.insert(event.game_info().game_id(), tab);
|
gameTabs.insert(event.game_info().game_id(), tab);
|
||||||
|
setCurrentWidget(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::localGameJoined(const Event_GameJoined &event)
|
void TabSupervisor::localGameJoined(const Event_GameJoined &event)
|
||||||
|
|
@ -656,8 +659,9 @@ void TabSupervisor::localGameJoined(const Event_GameJoined &event)
|
||||||
auto *tab = new TabGame(this, localClients, event, QMap<int, QString>());
|
auto *tab = new TabGame(this, localClients, event, QMap<int, QString>());
|
||||||
connect(tab, &TabGame::gameClosing, this, &TabSupervisor::gameLeft);
|
connect(tab, &TabGame::gameClosing, this, &TabSupervisor::gameLeft);
|
||||||
connect(tab, &TabGame::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
connect(tab, &TabGame::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
||||||
myAddTab(tab, true);
|
myAddTab(tab);
|
||||||
gameTabs.insert(event.game_info().game_id(), tab);
|
gameTabs.insert(event.game_info().game_id(), tab);
|
||||||
|
setCurrentWidget(tab);
|
||||||
|
|
||||||
for (int i = 1; i < localClients.size(); ++i) {
|
for (int i = 1; i < localClients.size(); ++i) {
|
||||||
Command_JoinGame cmd;
|
Command_JoinGame cmd;
|
||||||
|
|
@ -684,8 +688,10 @@ void TabSupervisor::addRoomTab(const ServerInfo_Room &info, bool setCurrent)
|
||||||
connect(tab, &TabRoom::maximizeClient, this, &TabSupervisor::maximizeMainWindow);
|
connect(tab, &TabRoom::maximizeClient, this, &TabSupervisor::maximizeMainWindow);
|
||||||
connect(tab, &TabRoom::roomClosing, this, &TabSupervisor::roomLeft);
|
connect(tab, &TabRoom::roomClosing, this, &TabSupervisor::roomLeft);
|
||||||
connect(tab, &TabRoom::openMessageDialog, this, &TabSupervisor::addMessageTab);
|
connect(tab, &TabRoom::openMessageDialog, this, &TabSupervisor::addMessageTab);
|
||||||
myAddTab(tab, setCurrent);
|
myAddTab(tab);
|
||||||
roomTabs.insert(info.room_id(), tab);
|
roomTabs.insert(info.room_id(), tab);
|
||||||
|
if (setCurrent)
|
||||||
|
setCurrentWidget(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::roomLeft(TabRoom *tab)
|
void TabSupervisor::roomLeft(TabRoom *tab)
|
||||||
|
|
@ -701,8 +707,9 @@ void TabSupervisor::openReplay(GameReplay *replay)
|
||||||
{
|
{
|
||||||
auto *replayTab = new TabGame(this, replay);
|
auto *replayTab = new TabGame(this, replay);
|
||||||
connect(replayTab, &TabGame::gameClosing, this, &TabSupervisor::replayLeft);
|
connect(replayTab, &TabGame::gameClosing, this, &TabSupervisor::replayLeft);
|
||||||
myAddTab(replayTab, true);
|
myAddTab(replayTab);
|
||||||
replayTabs.append(replayTab);
|
replayTabs.append(replayTab);
|
||||||
|
setCurrentWidget(replayTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabSupervisor::replayLeft(TabGame *tab)
|
void TabSupervisor::replayLeft(TabGame *tab)
|
||||||
|
|
@ -736,8 +743,10 @@ TabMessage *TabSupervisor::addMessageTab(const QString &receiverName, bool focus
|
||||||
tab = new TabMessage(this, client, *userInfo, otherUser);
|
tab = new TabMessage(this, client, *userInfo, otherUser);
|
||||||
connect(tab, &TabMessage::talkClosing, this, &TabSupervisor::talkLeft);
|
connect(tab, &TabMessage::talkClosing, this, &TabSupervisor::talkLeft);
|
||||||
connect(tab, &TabMessage::maximizeClient, this, &TabSupervisor::maximizeMainWindow);
|
connect(tab, &TabMessage::maximizeClient, this, &TabSupervisor::maximizeMainWindow);
|
||||||
myAddTab(tab, focus);
|
myAddTab(tab);
|
||||||
messageTabs.insert(receiverName, tab);
|
messageTabs.insert(receiverName, tab);
|
||||||
|
if (focus)
|
||||||
|
setCurrentWidget(tab);
|
||||||
return tab;
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -762,8 +771,9 @@ TabDeckEditor *TabSupervisor::addDeckEditorTab(const DeckLoader *deckToOpen)
|
||||||
tab->setDeck(new DeckLoader(*deckToOpen));
|
tab->setDeck(new DeckLoader(*deckToOpen));
|
||||||
connect(tab, &TabDeckEditor::deckEditorClosing, this, &TabSupervisor::deckEditorClosed);
|
connect(tab, &TabDeckEditor::deckEditorClosing, this, &TabSupervisor::deckEditorClosed);
|
||||||
connect(tab, &TabDeckEditor::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
connect(tab, &TabDeckEditor::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
|
||||||
myAddTab(tab, true);
|
myAddTab(tab);
|
||||||
deckEditorTabs.append(tab);
|
deckEditorTabs.append(tab);
|
||||||
|
setCurrentWidget(tab);
|
||||||
return tab;
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -774,7 +784,8 @@ TabEdhRec *TabSupervisor::addEdhrecTab(const CardInfoPtr &cardToQuery, bool isCo
|
||||||
tab->setCard(cardToQuery, isCommander);
|
tab->setCard(cardToQuery, isCommander);
|
||||||
}
|
}
|
||||||
|
|
||||||
myAddTab(tab, true);
|
myAddTab(tab);
|
||||||
|
setCurrentWidget(tab);
|
||||||
return tab;
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ private:
|
||||||
QAction *aTabDeckEditor, *aTabVisualDeckStorage, *aTabServer, *aTabAccount, *aTabDeckStorage, *aTabReplays,
|
QAction *aTabDeckEditor, *aTabVisualDeckStorage, *aTabServer, *aTabAccount, *aTabDeckStorage, *aTabReplays,
|
||||||
*aTabAdmin, *aTabLog;
|
*aTabAdmin, *aTabLog;
|
||||||
|
|
||||||
int myAddTab(Tab *tab, bool setCurrent, QAction *manager = nullptr);
|
int myAddTab(Tab *tab, QAction *manager = nullptr);
|
||||||
void addCloseButtonToTab(Tab *tab, int tabIndex, QAction *manager);
|
void addCloseButtonToTab(Tab *tab, int tabIndex, QAction *manager);
|
||||||
static QString sanitizeTabName(QString dirty);
|
static QString sanitizeTabName(QString dirty);
|
||||||
static QString sanitizeHtml(QString dirty);
|
static QString sanitizeHtml(QString dirty);
|
||||||
|
|
@ -162,13 +162,13 @@ private slots:
|
||||||
void actTabAdmin(bool checked);
|
void actTabAdmin(bool checked);
|
||||||
void actTabLog(bool checked);
|
void actTabLog(bool checked);
|
||||||
|
|
||||||
void openTabVisualDeckStorage(bool setCurrent);
|
void openTabVisualDeckStorage();
|
||||||
void openTabServer(bool setCurrent);
|
void openTabServer();
|
||||||
void openTabAccount(bool setCurrent);
|
void openTabAccount();
|
||||||
void openTabDeckStorage(bool setCurrent);
|
void openTabDeckStorage();
|
||||||
void openTabReplays(bool setCurrent);
|
void openTabReplays();
|
||||||
void openTabAdmin(bool setCurrent);
|
void openTabAdmin();
|
||||||
void openTabLog(bool setCurrent);
|
void openTabLog();
|
||||||
|
|
||||||
void updateCurrent(int index);
|
void updateCurrent(int index);
|
||||||
void updatePingTime(int value, int max);
|
void updatePingTime(int value, int max);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue