Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
10
#include "
abstract_player_component.h
"
11
12
#include <QMenu>
13
#include <QString>
14
#include <qtmetamacros.h>
15
16
class
PlayerGraphicsItem
;
17
18
class
CustomZoneMenu
:
public
QMenu,
public
AbstractPlayerComponent
19
{
20
Q_OBJECT
21
public
:
22
explicit
CustomZoneMenu
(
PlayerGraphicsItem
*
player
);
23
void
retranslateUi
()
override
;
24
void
setShortcutsActive
()
override
25
{
26
}
27
void
setShortcutsInactive
()
override
28
{
29
}
30
31
private
:
32
PlayerGraphicsItem
*
player
;
33
private
slots:
34
void
clearCustomZonesMenu
();
35
void
addViewCustomZoneActionToCustomZoneMenu
(QString zoneName);
36
};
37
38
#endif
// COCKATRICE_CUSTOM_ZONE_MENU_H
abstract_player_component.h
Polymorphic interface for player-bound UI components managed by PlayerMenu.
AbstractPlayerComponent
Interface for player-bound UI components that need shortcut and translation lifecycle management.
Definition
abstract_player_component.h:18
CustomZoneMenu::player
PlayerGraphicsItem * player
Definition
custom_zone_menu.h:32
CustomZoneMenu::clearCustomZonesMenu
void clearCustomZonesMenu()
Definition
custom_zone_menu.cpp:35
CustomZoneMenu::setShortcutsInactive
void setShortcutsInactive() override
Unbind keyboard shortcuts. Called when this player loses focus.
Definition
custom_zone_menu.h:27
CustomZoneMenu::CustomZoneMenu
CustomZoneMenu(PlayerGraphicsItem *player)
Definition
custom_zone_menu.cpp:12
CustomZoneMenu::retranslateUi
void retranslateUi() override
Retranslate all user-visible strings. Called on language change.
Definition
custom_zone_menu.cpp:23
CustomZoneMenu::setShortcutsActive
void setShortcutsActive() override
Bind keyboard shortcuts. Called when this player gains focus.
Definition
custom_zone_menu.h:24
CustomZoneMenu::addViewCustomZoneActionToCustomZoneMenu
void addViewCustomZoneActionToCustomZoneMenu(QString zoneName)
Definition
custom_zone_menu.cpp:41
PlayerGraphicsItem
Definition
player_graphics_item.h:39
cockatrice
src
game_graphics
player
menu
custom_zone_menu.h
Generated by
1.18.0