add/edit/delet objectives and participants in war

This commit is contained in:
Maxime Réaux 2026-01-28 16:25:40 +01:00
parent e33dec40be
commit 495a5adb98
14 changed files with 1088 additions and 322 deletions

View file

@ -1,14 +1,24 @@
from enum import StrEnum
from enum import Enum, auto
from PyQt6.QtCore import Qt
# --- Tree / Table roles ---
ROLE_TYPE = Qt.ItemDataRole.UserRole
ROLE_ID = Qt.ItemDataRole.UserRole + 1
# --- Domain object types ---
class ItemType(StrEnum):
PLAYER = "player"
WAR = "war"
CAMPAIGN = "campaign"
ROUND = "round"
OBJECTIVE = "objective"
WAR_PARTICIPANT = "war_participant"
class RefreshScope(Enum):
NONE = auto()
PLAYERS_LIST = auto()
WARS_TREE = auto()
WAR_DETAILS = auto()
CAMPAIGN_DETAILS = auto()
ROUND_DETAILS = auto()