Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform 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 ()
void setShortcutsActive ()
void setShortcutsInactive ()
Public Member Functions inherited from TearOffMenu
 TearOffMenu (const QString &title, QWidget *parent=nullptr)
 TearOffMenu (QWidget *parent=nullptr)
TearOffMenuaddTearOffMenu (const QString &title)

Private Slots

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

Private Attributes

Playerplayer
QAction * aViewHand = nullptr
QAction * aMulligan = 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 ( )
Here is the caller graph for this function:

◆ revealHandMenu()

QMenu * HandMenu::revealHandMenu ( ) const
inline

◆ revealRandomHandCardMenu()

QMenu * HandMenu::revealRandomHandCardMenu ( ) const
inline

◆ setShortcutsActive()

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

◆ setShortcutsInactive()

void HandMenu::setShortcutsInactive ( )

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

◆ 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: