Cockatrice 2026-04-21-Development-2.11.0-beta.61
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
HandMenu Class Reference

#include <hand_menu.h>

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

Public Member Functions

 HandMenu (Player *player, PlayerActions *actions, QWidget *parent=nullptr)
QMenu * revealHandMenu () const
QMenu * revealRandomHandCardMenu () const
void retranslateUi () override
 Retranslate all user-visible strings. Called on language change.
void setShortcutsActive () override
 Bind keyboard shortcuts. Called when this player gains focus.
void setShortcutsInactive () override
 Unbind keyboard shortcuts. Called when this player loses focus.
Public Member Functions inherited from TearOffMenu
 TearOffMenu (const QString &title, QWidget *parent=nullptr)
 TearOffMenu (QWidget *parent=nullptr)
TearOffMenuaddTearOffMenu (const QString &title)
Public Member Functions inherited from AbstractPlayerComponent
virtual ~AbstractPlayerComponent ()=default

Private Slots

void populateRevealHandMenuWithActivePlayers ()
void populateRevealRandomHandCardMenuWithActivePlayers ()
void onRevealHandTriggered ()
void onRevealRandomHandCardTriggered ()

Private Attributes

Playerplayer
QAction * aViewHand = nullptr
QAction * aMulligan = nullptr
QAction * aMulliganSame = nullptr
QAction * aMulliganMinusOne = nullptr
QMenu * mSortHand = nullptr
QAction * aSortHandByName = nullptr
QAction * aSortHandByType = nullptr
QAction * aSortHandByManaValue = nullptr
QMenu * mRevealHand = nullptr
QAction * aRevealHandToAll = nullptr
QMenu * mRevealRandomHandCard = nullptr
QAction * aRevealRandomHandCardToAll = nullptr
QMenu * mMoveHandMenu = nullptr
QAction * aMoveHandToTopLibrary = nullptr
QAction * aMoveHandToBottomLibrary = nullptr
QAction * aMoveHandToGrave = nullptr
QAction * aMoveHandToRfg = nullptr

Constructor & Destructor Documentation

◆ HandMenu()

HandMenu::HandMenu ( Player * player,
PlayerActions * actions,
QWidget * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ onRevealHandTriggered

void HandMenu::onRevealHandTriggered ( )
privateslot
Here is the caller graph for this function:

◆ onRevealRandomHandCardTriggered

void HandMenu::onRevealRandomHandCardTriggered ( )
privateslot
Here is the caller graph for this function:

◆ populateRevealHandMenuWithActivePlayers

void HandMenu::populateRevealHandMenuWithActivePlayers ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ populateRevealRandomHandCardMenuWithActivePlayers

void HandMenu::populateRevealRandomHandCardMenuWithActivePlayers ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void HandMenu::retranslateUi ( )
overridevirtual

Retranslate all user-visible strings. Called on language change.

Implements AbstractPlayerComponent.

Here is the caller graph for this function:

◆ revealHandMenu()

QMenu * HandMenu::revealHandMenu ( ) const
inline

◆ revealRandomHandCardMenu()

QMenu * HandMenu::revealRandomHandCardMenu ( ) const
inline

◆ setShortcutsActive()

void HandMenu::setShortcutsActive ( )
overridevirtual

Bind keyboard shortcuts. Called when this player gains focus.

Implements AbstractPlayerComponent.

Here is the call graph for this function:

◆ setShortcutsInactive()

void HandMenu::setShortcutsInactive ( )
overridevirtual

Unbind keyboard shortcuts. Called when this player loses focus.

Implements AbstractPlayerComponent.

Member Data Documentation

◆ aMoveHandToBottomLibrary

QAction* HandMenu::aMoveHandToBottomLibrary = nullptr
private

◆ aMoveHandToGrave

QAction* HandMenu::aMoveHandToGrave = nullptr
private

◆ aMoveHandToRfg

QAction* HandMenu::aMoveHandToRfg = nullptr
private

◆ aMoveHandToTopLibrary

QAction* HandMenu::aMoveHandToTopLibrary = nullptr
private

◆ aMulligan

QAction* HandMenu::aMulligan = nullptr
private

◆ aMulliganMinusOne

QAction* HandMenu::aMulliganMinusOne = nullptr
private

◆ aMulliganSame

QAction* HandMenu::aMulliganSame = nullptr
private

◆ aRevealHandToAll

QAction* HandMenu::aRevealHandToAll = nullptr
private

◆ aRevealRandomHandCardToAll

QAction* HandMenu::aRevealRandomHandCardToAll = nullptr
private

◆ aSortHandByManaValue

QAction* HandMenu::aSortHandByManaValue = nullptr
private

◆ aSortHandByName

QAction* HandMenu::aSortHandByName = nullptr
private

◆ aSortHandByType

QAction* HandMenu::aSortHandByType = nullptr
private

◆ aViewHand

QAction* HandMenu::aViewHand = nullptr
private

◆ mMoveHandMenu

QMenu* HandMenu::mMoveHandMenu = nullptr
private

◆ mRevealHand

QMenu* HandMenu::mRevealHand = nullptr
private

◆ mRevealRandomHandCard

QMenu* HandMenu::mRevealRandomHandCard = nullptr
private

◆ mSortHand

QMenu* HandMenu::mSortHand = nullptr
private

◆ player

Player* HandMenu::player
private

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