mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 00:53:55 -07:00
Took 13 minutes Took 6 seconds Took 2 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
44 lines
974 B
C++
44 lines
974 B
C++
/**
|
|
* @file rfg_menu.h
|
|
* @ingroup GameMenusZones
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef COCKATRICE_RFG_MENU_H
|
|
#define COCKATRICE_RFG_MENU_H
|
|
|
|
#include "../../../interface/widgets/menus/tearoff_menu.h"
|
|
#include "abstract_player_component.h"
|
|
|
|
#include <QAction>
|
|
#include <QMenu>
|
|
|
|
class PlayerLogic;
|
|
class RfgMenu : public TearOffMenu, public AbstractPlayerComponent
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit RfgMenu(PlayerLogic *player, QWidget *parent = nullptr);
|
|
void createMoveActions();
|
|
void createViewActions();
|
|
void retranslateUi() override;
|
|
void setShortcutsActive() override
|
|
{
|
|
}
|
|
void setShortcutsInactive() override
|
|
{
|
|
}
|
|
|
|
QMenu *moveRfgMenu = nullptr;
|
|
|
|
QAction *aViewRfg = nullptr;
|
|
QAction *aMoveRfgToTopLibrary = nullptr;
|
|
QAction *aMoveRfgToBottomLibrary = nullptr;
|
|
QAction *aMoveRfgToHand = nullptr;
|
|
QAction *aMoveRfgToGrave = nullptr;
|
|
|
|
private:
|
|
PlayerLogic *player;
|
|
};
|
|
|
|
#endif // COCKATRICE_RFG_MENU_H
|