mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 14:53:53 -07:00
Took 13 minutes Took 6 seconds Took 2 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
35 lines
724 B
C++
35 lines
724 B
C++
/**
|
|
* @file custom_zone_menu.h
|
|
* @ingroup GameMenusZones
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#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
|