Cockatrice 2026-04-21-Development-2.11.0-beta.61
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
RfgMenu Class Reference

#include <rfg_menu.h>

Inheritance diagram for RfgMenu:
[legend]
Collaboration diagram for RfgMenu:
[legend]

Public Member Functions

 RfgMenu (Player *player, QWidget *parent=nullptr)
void createMoveActions ()
void createViewActions ()
void retranslateUi () override
 Retranslate all user-visible strings. Called on language change.
void setShortcutsActive () override
 Bind keyboard shortcuts. Called when this player gains focus.
void setShortcutsInactive () override
 Unbind keyboard shortcuts. Called when this player loses focus.
Public Member Functions inherited from TearOffMenu
 TearOffMenu (const QString &title, QWidget *parent=nullptr)
 TearOffMenu (QWidget *parent=nullptr)
TearOffMenuaddTearOffMenu (const QString &title)
Public Member Functions inherited from AbstractPlayerComponent
virtual ~AbstractPlayerComponent ()=default

Public Attributes

QMenu * moveRfgMenu = nullptr
QAction * aViewRfg = nullptr
QAction * aMoveRfgToTopLibrary = nullptr
QAction * aMoveRfgToBottomLibrary = nullptr
QAction * aMoveRfgToHand = nullptr
QAction * aMoveRfgToGrave = nullptr

Private Attributes

Playerplayer

Constructor & Destructor Documentation

◆ RfgMenu()

RfgMenu::RfgMenu ( Player * player,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ createMoveActions()

void RfgMenu::createMoveActions ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createViewActions()

void RfgMenu::createViewActions ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void RfgMenu::retranslateUi ( )
overridevirtual

Retranslate all user-visible strings. Called on language change.

Implements AbstractPlayerComponent.

Here is the caller graph for this function:

◆ setShortcutsActive()

void RfgMenu::setShortcutsActive ( )
inlineoverridevirtual

Bind keyboard shortcuts. Called when this player gains focus.

Implements AbstractPlayerComponent.

◆ setShortcutsInactive()

void RfgMenu::setShortcutsInactive ( )
inlineoverridevirtual

Unbind keyboard shortcuts. Called when this player loses focus.

Implements AbstractPlayerComponent.

Member Data Documentation

◆ aMoveRfgToBottomLibrary

QAction* RfgMenu::aMoveRfgToBottomLibrary = nullptr

◆ aMoveRfgToGrave

QAction* RfgMenu::aMoveRfgToGrave = nullptr

◆ aMoveRfgToHand

QAction* RfgMenu::aMoveRfgToHand = nullptr

◆ aMoveRfgToTopLibrary

QAction* RfgMenu::aMoveRfgToTopLibrary = nullptr

◆ aViewRfg

QAction* RfgMenu::aViewRfg = nullptr

◆ moveRfgMenu

QMenu* RfgMenu::moveRfgMenu = nullptr

◆ player

Player* RfgMenu::player
private

The documentation for this class was generated from the following files: