![]() |
Cockatrice 2026-04-21-Development-2.11.0-beta.61
A virtual tabletop for multiplayer card games
|
Interface for player-bound UI components that need shortcut and translation lifecycle management. More...
#include <abstract_player_component.h>
Public Member Functions | |
| virtual | ~AbstractPlayerComponent ()=default |
| virtual void | setShortcutsActive ()=0 |
| Bind keyboard shortcuts. Called when this player gains focus. | |
| virtual void | setShortcutsInactive ()=0 |
| Unbind keyboard shortcuts. Called when this player loses focus. | |
| virtual void | retranslateUi ()=0 |
| Retranslate all user-visible strings. Called on language change. | |
Interface for player-bound UI components that need shortcut and translation lifecycle management.
Not a QObject — avoids diamond inheritance with Qt's MOC. Each concrete component inherits QObject through its Qt base class (QMenu, TearOffMenu, QGraphicsItem, etc.) and this interface through regular multiple inheritance.
|
virtualdefault |
|
pure virtual |
Retranslate all user-visible strings. Called on language change.
Implemented in AbstractCounter, CustomZoneMenu, GraveyardMenu, HandMenu, LibraryMenu, RfgMenu, SayMenu, and SideboardMenu.
|
pure virtual |
Bind keyboard shortcuts. Called when this player gains focus.
Implemented in AbstractCounter, CustomZoneMenu, GraveyardMenu, HandMenu, LibraryMenu, RfgMenu, SayMenu, and SideboardMenu.
|
pure virtual |
Unbind keyboard shortcuts. Called when this player loses focus.
Implemented in AbstractCounter, CustomZoneMenu, GraveyardMenu, HandMenu, LibraryMenu, RfgMenu, SayMenu, and SideboardMenu.