mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
35 lines
723 B
C++
35 lines
723 B
C++
/**
|
|
* @file custom_zone_menu.h
|
|
* @ingroup GameMenusZones
|
|
*/
|
|
//! \todo Document this file.
|
|
|
|
#ifndef COCKATRICE_CUSTOM_ZONE_MENU_H
|
|
#define COCKATRICE_CUSTOM_ZONE_MENU_H
|
|
|
|
#include "abstract_player_component.h"
|
|
|
|
#include <QMenu>
|
|
|
|
class PlayerLogic;
|
|
class CustomZoneMenu : public QMenu, public AbstractPlayerComponent
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CustomZoneMenu(PlayerLogic *player);
|
|
void retranslateUi() override;
|
|
void setShortcutsActive() override
|
|
{
|
|
}
|
|
void setShortcutsInactive() override
|
|
{
|
|
}
|
|
|
|
private:
|
|
PlayerLogic *player;
|
|
private slots:
|
|
void clearCustomZonesMenu();
|
|
void addViewCustomZoneActionToCustomZoneMenu(QString zoneName);
|
|
};
|
|
|
|
#endif // COCKATRICE_CUSTOM_ZONE_MENU_H
|