![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <player_menu.h>
Public Slots | |
| void | setMenusForGraphicItems () |
| QMenu * | updateCardMenu (const CardItem *card) |
Signals | |
| void | cardMenuUpdated (CardMenu *cardMenu) |
| void | cardInfoRequested (const CardRef &cardRef) |
| void | shortcutsActivated () |
| void | shortcutsDeactivated () |
| void | retranslateRequested () |
Public Member Functions | |
| PlayerMenu (PlayerGraphicsItem *player) | |
| void | retranslateUi () |
| Retranslate all user-visible strings. Called on language change. | |
| QMenu * | getPlayerMenu () const |
| QMenu * | getCountersMenu () |
| LibraryMenu * | getLibraryMenu () const |
| UtilityMenu * | getUtilityMenu () const |
| bool | getShortcutsActive () const |
| void | setShortcutsActive () |
| Bind keyboard shortcuts. Called when this player gains focus. | |
| void | setShortcutsInactive () |
| Unbind keyboard shortcuts. Called when this player loses focus. | |
Private Slots | |
| void | refreshShortcuts () |
Private Member Functions | |
| template<typename MenuT, typename... Args> | |
| MenuT * | addManagedMenu (Args &&...args) |
| Creates component, adds it as a submenu of playerMenu, and registers in managedComponents. | |
| template<typename ComponentT, typename... Args> | |
| ComponentT * | createManagedComponent (Args &&...args) |
| Creates component and registers in managedComponents, but does NOT add it as a submenu. | |
Private Attributes | |
| PlayerGraphicsItem * | player |
| TearOffMenu * | playerMenu |
| QMenu * | countersMenu |
| HandMenu * | handMenu |
| LibraryMenu * | libraryMenu |
| SideboardMenu * | sideboardMenu |
| GraveyardMenu * | graveMenu |
| RfgMenu * | rfgMenu |
| UtilityMenu * | utilityMenu |
| TallyMenu * | tallyMenu |
| SayMenu * | sayMenu |
| CustomZoneMenu * | customZonesMenu |
| QList< AbstractPlayerComponent * > | managedComponents |
| Drives AbstractPlayerComponent lifecycle delegation. Counters are iterated separately via player->getCounters(). | |
| bool | shortcutsActive = false |
|
explicit |
|
inlineprivate |
Creates component, adds it as a submenu of playerMenu, and registers in managedComponents.
|
signal |
|
signal |
|
inlineprivate |
Creates component and registers in managedComponents, but does NOT add it as a submenu.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
privateslot |
|
signal |
| void PlayerMenu::retranslateUi | ( | ) |
Retranslate all user-visible strings. Called on language change.
|
slot |
| void PlayerMenu::setShortcutsActive | ( | ) |
Bind keyboard shortcuts. Called when this player gains focus.
| void PlayerMenu::setShortcutsInactive | ( | ) |
Unbind keyboard shortcuts. Called when this player loses focus.
|
signal |
|
signal |
|
slot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Drives AbstractPlayerComponent lifecycle delegation. Counters are iterated separately via player->getCounters().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |