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

#include <utility_menu.h>

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

Public Slots

void populatePredefinedTokensMenu ()
void retranslateUi ()
void setShortcutsActive ()
void setShortcutsInactive ()

Public Member Functions

 UtilityMenu (Player *player, QMenu *playerMenu)
bool createAnotherTokenActionExists () const
void setAndEnableCreateAnotherTokenAction (QString text)
QStringList getPredefinedTokens () const

Private Attributes

Playerplayer
QStringList predefinedTokens
QMenu * createPredefinedTokenMenu
QAction * aIncrementAllCardCounters
QAction * aUntapAll
QAction * aRollDie
QAction * aCreateToken
QAction * aCreateAnotherToken

Constructor & Destructor Documentation

◆ UtilityMenu()

UtilityMenu::UtilityMenu ( Player * player,
QMenu * playerMenu )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ createAnotherTokenActionExists()

bool UtilityMenu::createAnotherTokenActionExists ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getPredefinedTokens()

QStringList UtilityMenu::getPredefinedTokens ( ) const
inline

◆ populatePredefinedTokensMenu

void UtilityMenu::populatePredefinedTokensMenu ( )
slot
Here is the call graph for this function:

◆ retranslateUi

void UtilityMenu::retranslateUi ( )
slot
Here is the caller graph for this function:

◆ setAndEnableCreateAnotherTokenAction()

void UtilityMenu::setAndEnableCreateAnotherTokenAction ( QString text)
inline
Here is the caller graph for this function:

◆ setShortcutsActive

void UtilityMenu::setShortcutsActive ( )
slot
Here is the call graph for this function:

◆ setShortcutsInactive

void UtilityMenu::setShortcutsInactive ( )
slot

Member Data Documentation

◆ aCreateAnotherToken

QAction * UtilityMenu::aCreateAnotherToken
private

◆ aCreateToken

QAction* UtilityMenu::aCreateToken
private

◆ aIncrementAllCardCounters

QAction* UtilityMenu::aIncrementAllCardCounters
private

◆ aRollDie

QAction * UtilityMenu::aRollDie
private

◆ aUntapAll

QAction* UtilityMenu::aUntapAll
private

◆ createPredefinedTokenMenu

QMenu* UtilityMenu::createPredefinedTokenMenu
private

◆ player

Player* UtilityMenu::player
private

◆ predefinedTokens

QStringList UtilityMenu::predefinedTokens
private

The documentation for this class was generated from the following files: