Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
tally_menu.h
Go to the documentation of this file.
1#ifndef COCKATRICE_TALLY_MENU_H
2#define COCKATRICE_TALLY_MENU_H
3
6
7#include <qtmetamacros.h>
8
9class QAction;
10class QActionGroup;
11enum class TallyType;
12
14{
15 Q_OBJECT
16
17public:
18 TallyMenu();
19
20 void setShortcutsActive() override;
21 void setShortcutsInactive() override;
22 void retranslateUi() override;
23
24private:
25 QActionGroup *actionGroup = nullptr;
26
27 QAction *aTallyNone = nullptr;
28 QAction *aTallySubtypes = nullptr;
29 QAction *aTallyTotalPower = nullptr;
30 QAction *aTallyTotalToughness = nullptr;
31
32 QAction *createTallyAction(TallyType tallyType);
33};
34
35#endif // COCKATRICE_TALLY_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
QAction * aTallySubtypes
Definition tally_menu.h:28
QAction * createTallyAction(TallyType tallyType)
Definition tally_menu.cpp:29
QAction * aTallyTotalPower
Definition tally_menu.h:29
TallyMenu()
Definition tally_menu.cpp:10
void setShortcutsActive() override
Bind keyboard shortcuts. Called when this player gains focus.
Definition tally_menu.cpp:45
void retranslateUi() override
Retranslate all user-visible strings. Called on language change.
Definition tally_menu.cpp:55
QAction * aTallyTotalToughness
Definition tally_menu.h:30
QAction * aTallyNone
Definition tally_menu.h:27
void setShortcutsInactive() override
Unbind keyboard shortcuts. Called when this player loses focus.
Definition tally_menu.cpp:50
QActionGroup * actionGroup
Definition tally_menu.h:25
TearOffMenu(const QString &title, QWidget *parent=nullptr)
Definition tearoff_menu.h:17
TallyType
Definition tally.h:21