![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <grave_menu.h>
Signals | |
| void | newPlayerActionCreated (QAction *action) |
Public Member Functions | |
| GraveyardMenu (PlayerGraphicsItem *player, QWidget *parent=nullptr) | |
| void | createMoveActions () |
| void | createViewActions () |
| void | populateRevealRandomMenuWithActivePlayers () |
| void | onRevealRandomTriggered () |
| 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 |
Public Attributes | |
| QMenu * | mRevealRandomGraveyardCard = nullptr |
| QMenu * | moveGraveMenu = nullptr |
| QAction * | aViewGraveyard = nullptr |
| QAction * | aMoveGraveToTopLibrary = nullptr |
| QAction * | aMoveGraveToBottomLibrary = nullptr |
| QAction * | aMoveGraveToHand = nullptr |
| QAction * | aMoveGraveToRfg = nullptr |
Private Attributes | |
| PlayerGraphicsItem * | player |
|
explicit |
| void GraveyardMenu::createMoveActions | ( | ) |
| void GraveyardMenu::createViewActions | ( | ) |
|
signal |
| void GraveyardMenu::onRevealRandomTriggered | ( | ) |
| void GraveyardMenu::populateRevealRandomMenuWithActivePlayers | ( | ) |
|
overridevirtual |
Retranslate all user-visible strings. Called on language change.
Implements AbstractPlayerComponent.
|
overridevirtual |
Bind keyboard shortcuts. Called when this player gains focus.
Implements AbstractPlayerComponent.
|
overridevirtual |
Unbind keyboard shortcuts. Called when this player loses focus.
Implements AbstractPlayerComponent.
| QAction* GraveyardMenu::aMoveGraveToBottomLibrary = nullptr |
| QAction* GraveyardMenu::aMoveGraveToHand = nullptr |
| QAction* GraveyardMenu::aMoveGraveToRfg = nullptr |
| QAction* GraveyardMenu::aMoveGraveToTopLibrary = nullptr |
| QAction* GraveyardMenu::aViewGraveyard = nullptr |
| QMenu* GraveyardMenu::moveGraveMenu = nullptr |
| QMenu* GraveyardMenu::mRevealRandomGraveyardCard = nullptr |
|
private |