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

#include <tab.h>

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

Signals

void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)

Public Member Functions

 Tab (TabSupervisor *_tabSupervisor)
const QList< QMenu * > & getTabMenus () const
TabSupervisorgetTabSupervisor () const
bool getContentsChanged () const
void setContentsChanged (bool _contentsChanged)
virtual QString getTabText () const =0
virtual void retranslateUi ()=0
virtual bool closeRequest ()
virtual void tabActivated ()

Protected Slots

void showCardInfoPopup (const QPoint &pos, const CardRef &cardRef)
void deleteCardInfoPopup (const QString &cardName)

Protected Member Functions

void addTabMenu (QMenu *menu)

Protected Attributes

TabSupervisortabSupervisor

Private Attributes

CardRef currentCard
bool contentsChanged
CardInfoDisplayWidgetinfoPopup
QList< QMenu * > tabMenus

Constructor & Destructor Documentation

◆ Tab()

Tab::Tab ( TabSupervisor * _tabSupervisor)
explicit
Here is the caller graph for this function:

Member Function Documentation

◆ addTabMenu()

void Tab::addTabMenu ( QMenu * menu)
inlineprotected
Here is the caller graph for this function:

◆ closeRequest()

bool Tab::closeRequest ( )
virtual

Nicely asks to close the tab. Override this method to do checks or ask for confirmation before closing the tab. If you need to force close the tab, just call close() instead.

Returns
True if the tab is successfully closed.

Reimplemented in TabGame.

Here is the caller graph for this function:

◆ deleteCardInfoPopup

void Tab::deleteCardInfoPopup ( const QString & cardName)
protectedslot
Here is the caller graph for this function:

◆ getContentsChanged()

bool Tab::getContentsChanged ( ) const
inlinenodiscard

◆ getTabMenus()

const QList< QMenu * > & Tab::getTabMenus ( ) const
inlinenodiscard

◆ getTabSupervisor()

TabSupervisor * Tab::getTabSupervisor ( ) const
inlinenodiscard

◆ getTabText()

virtual QString Tab::getTabText ( ) const
nodiscardpure virtual

Implemented in AbstractTabDeckEditor, TabAccount, TabAdmin, TabArchidekt, TabDeckEditor, TabDeckEditorVisual, TabDeckStorage, TabDeckStorageVisual, TabEdhRec, TabEdhRecMain, TabGame, TabHome, TabLog, TabMessage, TabReplays, TabRoom, TabServer, and TabVisualDatabaseDisplay.

Here is the caller graph for this function:

◆ retranslateUi()

◆ setContentsChanged()

void Tab::setContentsChanged ( bool _contentsChanged)
inline

◆ showCardInfoPopup

void Tab::showCardInfoPopup ( const QPoint & pos,
const CardRef & cardRef )
protectedslot
Here is the caller graph for this function:

◆ tabActivated()

virtual void Tab::tabActivated ( )
inlinevirtual

Reimplemented in TabMessage, and TabRoom.

◆ tabTextChanged

void Tab::tabTextChanged ( Tab * tab,
const QString & newTabText )
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ userEvent

void Tab::userEvent ( bool globalEvent = true)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ contentsChanged

bool Tab::contentsChanged
private

◆ currentCard

CardRef Tab::currentCard
private

◆ infoPopup

CardInfoDisplayWidget* Tab::infoPopup
private

◆ tabMenus

QList<QMenu *> Tab::tabMenus
private

◆ tabSupervisor

TabSupervisor* Tab::tabSupervisor
protected

The documentation for this class was generated from the following files:
  • cockatrice/src/interface/widgets/tabs/tab.h
  • cockatrice/src/interface/widgets/tabs/tab.cpp