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

@ -214,7 +214,7 @@
<string>warYear</string>
</property>
</widget>
<widget class="QLabel" name="labelEntrants">
<widget class="QLabel" name="labelParticipants">
<property name="geometry">
<rect>
<x>10</x>
@ -224,10 +224,10 @@
</rect>
</property>
<property name="text">
<string>Entrants</string>
<string>Participants</string>
</property>
</widget>
<widget class="QPushButton" name="addEntrantBtn">
<widget class="QPushButton" name="addWarParticipantBtn">
<property name="geometry">
<rect>
<x>420</x>
@ -237,10 +237,10 @@
</rect>
</property>
<property name="text">
<string>Add entrant</string>
<string>Add participant</string>
</property>
</widget>
<widget class="QTableWidget" name="playersTable_2">
<widget class="QTableWidget" name="warParticipantsTable">
<property name="geometry">
<rect>
<x>10</x>
@ -275,7 +275,7 @@
</property>
</column>
</widget>
<widget class="QPushButton" name="addRoundBtn_8">
<widget class="QPushButton" name="endWarBtn">
<property name="enabled">
<bool>true</bool>
</property>
@ -291,15 +291,25 @@
<string>End war</string>
</property>
</widget>
<widget class="QListWidget" name="listObjectives">
<widget class="QTableWidget" name="objectivesTable">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>161</width>
<width>401</width>
<height>71</height>
</rect>
</property>
<column>
<property name="text">
<string>Name</string>
</property>
</column>
<column>
<property name="text">
<string>Description</string>
</property>
</column>
</widget>
<widget class="QLabel" name="labelObjectives">
<property name="geometry">
@ -314,13 +324,13 @@
<string>Objectives</string>
</property>
</widget>
<widget class="QPushButton" name="addCampaignBtn_3">
<widget class="QPushButton" name="addObjectiveBtn">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>180</x>
<x>420</x>
<y>80</y>
<width>91</width>
<height>23</height>
@ -355,7 +365,7 @@
<string>campaignName</string>
</property>
</widget>
<widget class="QLabel" name="labelRound">
<widget class="QLabel" name="labelSectors">
<property name="geometry">
<rect>
<x>10</x>
@ -368,7 +378,7 @@
<string>Sectors</string>
</property>
</widget>
<widget class="QPushButton" name="addEntrantBtn_2">
<widget class="QPushButton" name="addCampaignParticipantBtn">
<property name="geometry">
<rect>
<x>420</x>
@ -378,7 +388,7 @@
</rect>
</property>
<property name="text">
<string>Add entrant</string>
<string>Add participant</string>
</property>
</widget>
<widget class="QLabel" name="campaignMonth">
@ -399,7 +409,7 @@
<string>campaignMonth</string>
</property>
</widget>
<widget class="QLabel" name="labelEntrants_2">
<widget class="QLabel" name="labelParticipants_2">
<property name="geometry">
<rect>
<x>10</x>
@ -409,10 +419,10 @@
</rect>
</property>
<property name="text">
<string>Entrants</string>
<string>Participants</string>
</property>
</widget>
<widget class="QTableWidget" name="playersTable_3">
<widget class="QTableWidget" name="campaignParticipantsTable">
<property name="geometry">
<rect>
<x>10</x>
@ -442,7 +452,7 @@
</property>
</column>
</widget>
<widget class="QTableWidget" name="playersTable_4">
<widget class="QTableWidget" name="sectorsTable">
<property name="geometry">
<rect>
<x>10</x>
@ -567,7 +577,7 @@
<string>Round Nb</string>
</property>
</widget>
<widget class="QPushButton" name="resolveBtn">
<widget class="QPushButton" name="resolvePairingBtn">
<property name="enabled">
<bool>true</bool>
</property>
@ -583,7 +593,7 @@
<string>Resolve pairing</string>
</property>
</widget>
<widget class="QTableWidget" name="playersTable_6">
<widget class="QTableWidget" name="battlesTable">
<property name="geometry">
<rect>
<x>10</x>
@ -608,7 +618,7 @@
</property>
</column>
</widget>
<widget class="QPushButton" name="resultBtn">
<widget class="QPushButton" name="enterResultBtn">
<property name="enabled">
<bool>true</bool>
</property>
@ -640,7 +650,7 @@
<string>End round</string>
</property>
</widget>
<widget class="QLabel" name="labelChoices_2">
<widget class="QLabel" name="labelBattles">
<property name="geometry">
<rect>
<x>10</x>