Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
custom_zone_menu.h
Go to the documentation of this file.
1
6
7#ifndef COCKATRICE_CUSTOM_ZONE_MENU_H
8#define COCKATRICE_CUSTOM_ZONE_MENU_H
9
11
12#include <QMenu>
13#include <QString>
14#include <qtmetamacros.h>
15
17
18class CustomZoneMenu : public QMenu, public AbstractPlayerComponent
19{
20 Q_OBJECT
21public:
23 void retranslateUi() override;
24 void setShortcutsActive() override
25 {
26 }
27 void setShortcutsInactive() override
28 {
29 }
30
31private:
33private slots:
35 void addViewCustomZoneActionToCustomZoneMenu(QString zoneName);
36};
37
38#endif // COCKATRICE_CUSTOM_ZONE_MENU_H
Polymorphic interface for player-bound UI components managed by PlayerMenu.
Interface for player-bound UI components that need shortcut and translation lifecycle management.
Definition abstract_player_component.h:18
PlayerGraphicsItem * player
Definition custom_zone_menu.h:32
void clearCustomZonesMenu()
Definition custom_zone_menu.cpp:35
void setShortcutsInactive() override
Unbind keyboard shortcuts. Called when this player loses focus.
Definition custom_zone_menu.h:27
CustomZoneMenu(PlayerGraphicsItem *player)
Definition custom_zone_menu.cpp:12
void retranslateUi() override
Retranslate all user-visible strings. Called on language change.
Definition custom_zone_menu.cpp:23
void setShortcutsActive() override
Bind keyboard shortcuts. Called when this player gains focus.
Definition custom_zone_menu.h:24
void addViewCustomZoneActionToCustomZoneMenu(QString zoneName)
Definition custom_zone_menu.cpp:41
Definition player_graphics_item.h:39