mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
37 lines
879 B
C++
37 lines
879 B
C++
#ifndef COCKATRICE_GRAVE_MENU_H
|
|
#define COCKATRICE_GRAVE_MENU_H
|
|
|
|
#include "../../../interface/tearoff_menu.h"
|
|
|
|
#include <QAction>
|
|
#include <QMenu>
|
|
|
|
class Player;
|
|
class GraveyardMenu : public TearOffMenu
|
|
{
|
|
Q_OBJECT
|
|
signals:
|
|
void newPlayerActionCreated(QAction *action);
|
|
|
|
public:
|
|
explicit GraveyardMenu(Player *player, QWidget *parent = nullptr);
|
|
void createMoveActions();
|
|
void createViewActions();
|
|
void retranslateUi();
|
|
void setShortcutsActive();
|
|
void setShortcutsInactive();
|
|
|
|
QMenu *mRevealRandomGraveyardCard = nullptr;
|
|
QMenu *moveGraveMenu = nullptr;
|
|
|
|
QAction *aViewGraveyard = nullptr;
|
|
QAction *aMoveGraveToTopLibrary = nullptr;
|
|
QAction *aMoveGraveToBottomLibrary = nullptr;
|
|
QAction *aMoveGraveToHand = nullptr;
|
|
QAction *aMoveGraveToRfg = nullptr;
|
|
|
|
private:
|
|
Player *player;
|
|
};
|
|
|
|
#endif // COCKATRICE_GRAVE_MENU_H
|