warchron_app/src/warchron/constants.py

31 lines
670 B
Python
Raw Normal View History

2026-01-27 11:49:37 +01:00
from enum import StrEnum
from enum import Enum, auto
2026-01-27 11:49:37 +01:00
from PyQt6.QtCore import Qt
ROLE_TYPE = Qt.ItemDataRole.UserRole
ROLE_ID = Qt.ItemDataRole.UserRole + 1
2026-02-02 10:41:16 +01:00
2026-01-27 11:49:37 +01:00
class ItemType(StrEnum):
PLAYER = "player"
WAR = "war"
CAMPAIGN = "campaign"
ROUND = "round"
OBJECTIVE = "objective"
WAR_PARTICIPANT = "war_participant"
SECTOR = "sector"
CAMPAIGN_PARTICIPANT = "campaign_participant"
2026-01-30 10:52:19 +01:00
CHOICE = "choice"
BATTLE = "battle"
2026-02-02 10:41:16 +01:00
class RefreshScope(Enum):
NONE = auto()
PLAYERS_LIST = auto()
WARS_TREE = auto()
WAR_DETAILS = auto()
CAMPAIGN_DETAILS = auto()
ROUND_DETAILS = auto()
CURRENT_SELECTION_DETAILS = auto()