![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <hand_menu.h>
Public Member Functions | |
| HandMenu (PlayerGraphicsItem *player, 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) | |
| TearOffMenu * | addTearOffMenu (const QString &title) |
| Public Member Functions inherited from AbstractPlayerComponent | |
| virtual | ~AbstractPlayerComponent ()=default |
Private Slots | |
| void | populateRevealHandMenuWithActivePlayers () |
| void | populateRevealRandomHandCardMenuWithActivePlayers () |
| void | onRevealHandTriggered () |
| void | onRevealRandomHandCardTriggered () |
Private Attributes | |
| PlayerGraphicsItem * | player |
| 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 |
| HandMenu::HandMenu | ( | PlayerGraphicsItem * | player, |
| QWidget * | parent = nullptr ) |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
overridevirtual |
Retranslate all user-visible strings. Called on language change.
Implements AbstractPlayerComponent.
|
inline |
|
inline |
|
overridevirtual |
Bind keyboard shortcuts. Called when this player gains focus.
Implements AbstractPlayerComponent.
|
overridevirtual |
Unbind keyboard shortcuts. Called when this player loses focus.
Implements AbstractPlayerComponent.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |