split dialogs and war/campaign/round classes to files
This commit is contained in:
parent
55abdccc64
commit
019e62565f
22 changed files with 562 additions and 502 deletions
|
|
@ -19,17 +19,15 @@ from warchron.controller.dtos import (
|
|||
ChoiceDTO,
|
||||
BattleDTO,
|
||||
)
|
||||
from warchron.view.view import (
|
||||
PlayerDialog,
|
||||
WarDialog,
|
||||
CampaignDialog,
|
||||
ObjectiveDialog,
|
||||
WarParticipantDialog,
|
||||
CampaignParticipantDialog,
|
||||
SectorDialog,
|
||||
ChoicesDialog,
|
||||
BattlesDialog,
|
||||
)
|
||||
from warchron.view.player_dialog import PlayerDialog
|
||||
from warchron.view.war_dialog import WarDialog
|
||||
from warchron.view.campaign_dialog import CampaignDialog
|
||||
from warchron.view.objective_dialog import ObjectiveDialog
|
||||
from warchron.view.war_participant_dialog import WarParticipantDialog
|
||||
from warchron.view.campaign_participant_dialog import CampaignParticipantDialog
|
||||
from warchron.view.sector_dialog import SectorDialog
|
||||
from warchron.view.choices_dialog import ChoicesDialog
|
||||
from warchron.view.battles_dialog import BattlesDialog
|
||||
|
||||
|
||||
class Controller:
|
||||
|
|
@ -363,6 +361,7 @@ class Controller:
|
|||
self.refresh(scope)
|
||||
self.view.select_tree_item(item_type=item_type, item_id=item_id)
|
||||
|
||||
# TODO separate routing and dedicated edit methods
|
||||
def edit_item(self, item_type: str, item_id: str) -> None:
|
||||
if item_type == ItemType.PLAYER:
|
||||
play = self.model.get_player(item_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue