Переглянути джерело

Perf pinceau ameliorees, ellipses supprimees

unknown 10 роки тому
батько
коміт
e20e584183
11 змінених файлів з 353 додано та 190 видалено
  1. 219 0
      DMonde.ppr
  2. 0 22
      DMonde.py
  3. 9 10
      lib/Cache.py
  4. 16 0
      lib/Modes.py
  5. 58 48
      lib/Pinceau.py
  6. BIN
      lib/biblio/terrain
  7. 17 0
      lib/dmF.py
  8. 6 3
      lib/test.py
  9. 28 107
      lib/ui/mainwindow.ui
  10. BIN
      parties/Partie1/svg/2.p
  11. BIN
      parties/Partie1/svg/infos_sauvegarde

+ 219 - 0
DMonde.ppr

@@ -0,0 +1,219 @@
+[Config]
+Compilator.SaveAll=0
+Compilator.Capture=0
+Compilator.HideOutput=0
+Compilator.ProgSaveAll=0
+Compilator.ProgRunSelection=0
+Compilator.LogType=0
+DefaultDir=F:\DMonde
+DefaultCPIndex=0
+LogtoEnd=1
+DontOpen=0
+AbsolutePath=0
+FileFormat=0
+ProjectFilesOnly=0
+Extensions=*.py
+[Project tree]
+DMonde
+	+DMonde
+		-.git
+			-hooks
+			-info
+			-logs
+				-refs
+					-heads
+					-remotes
+						-origin
+			-objects
+				-01
+				-02
+				-05
+				-06
+				-08
+				-0c
+				-14
+				-1c
+				-1e
+				-1f
+				-23
+				-24
+				-31
+				-33
+				-37
+				-39
+				-3c
+				-3f
+				-41
+				-48
+				-4b
+				-53
+				-57
+				-58
+				-59
+				-5b
+				-5d
+				-5e
+				-67
+				-68
+				-6f
+				-77
+				-79
+				-7a
+				-7e
+				-81
+				-83
+				-85
+				-87
+				-8b
+				-8d
+				-8f
+				-93
+				-a1
+				-a3
+				-a4
+				-a6
+				-aa
+				-b4
+				-bb
+				-bc
+				-c3
+				-c4
+				-c7
+				-c8
+				-cd
+				-d0
+				-d7
+				-d8
+				-d9
+				-e0
+				-e3
+				-e4
+				-e8
+				-ec
+				-ee
+				-ef
+				-f1
+				-f4
+				-f9
+				-fb
+				-fd
+				-ff
+				-info
+				-pack
+			-refs
+				-heads
+				-remotes
+					-origin
+				-tags
+		+lib
+			-biblio
+			-ui
+				-corbeille_ui
+					lib\ui\corbeille_ui\dmOngletsH.py
+					lib\ui\corbeille_ui\dmtableattaques - Copie.py
+					lib\ui\corbeille_ui\dmtableattaques_tableAttaques.py
+					lib\ui\corbeille_ui\ecran_panneauAttaques.py
+					lib\ui\corbeille_ui\EcranEditionAttaques.py
+					lib\ui\corbeille_ui\test_ui.py
+				-ressource
+				lib\ui\__init__.py
+				lib\ui\dm.py
+				lib\ui\dmOngletsH.py
+				lib\ui\ecran_affichageTexte.py
+				lib\ui\ecran_chargerPlateau.py
+				lib\ui\ecran_creationPlateau.py
+				lib\ui\ecran_creerPlateau.py
+				lib\ui\ecran_editionAttaques.py
+				lib\ui\ecran_editionCombattant.py
+				lib\ui\ecran_editionCreature.py
+				lib\ui\ecran_editionDecor.py
+				lib\ui\ecran_editionObjet.py
+				lib\ui\ecran_editionQuantiteObjet.py
+				lib\ui\ecran_editionTerrain.py
+				lib\ui\ecran_explorateur.py
+				lib\ui\ecran_gestionCombat.py
+				lib\ui\ecran_panneauAttaques.py
+				lib\ui\ecran_panneauPj.py
+				lib\ui\ecran_principal.py
+				lib\ui\ecran_selectionPj.py
+				lib\ui\panneauImage.py
+				lib\ui\ressource_rc.py
+			lib\__init__.py
+			lib\Actions.py
+			lib\AEtoile.py
+			lib\afficherSousMenu.py
+			lib\Boucle.py
+			lib\Cache - Copie.py
+			lib\Cache.py
+			lib\Case.py
+			lib\Combattant.py
+			lib\Creature.py
+			lib\Decor.py
+			lib\EcranAffichageTexte.py
+			lib\EcranChargerPlateau.py
+			lib\EcranCreerPlateau.py
+			lib\EcranEditionCombattant.py
+			lib\EcranEditionDecor.py
+			lib\EcranEditionObjet.py
+			lib\EcranEditionTerrain.py
+			lib\EcranFondPlateau.py
+			lib\EcranGestionCombat.py
+			lib\EcranSelectionPj.py
+			lib\EffetsCase.py
+			lib\EntreeSortie.py
+			lib\fonctionsCommunes.py
+			lib\Forme.py
+			lib\frameAttaque.py
+			lib\framePj.py
+			lib\Inventaire.py
+			lib\lancer.py
+			lib\Modes.py
+			lib\Objet.py
+			lib\ObjetAction.py
+			lib\outilsSvg.py
+			lib\Partie.py
+			lib\Pinceau.py
+			lib\Pion.py
+			lib\Plateau.py
+			lib\ProjectionDep.py
+			lib\regles.py
+			lib\rsc.py
+			lib\Terrain.py
+			lib\test.py
+			lib\VueEditionForme.py
+		-parties
+			-Partie1
+				-journal
+				-personnages
+				-ressources
+				-svg
+		-ressources
+			-commun
+			-dd35
+			-dm
+		__init__.py
+		DMonde.py
+[Open project files]
+0=DMonde.py
+1=lib\Plateau.py
+2=lib\Modes.py
+3=lib\Cache.py
+4=lib\Pinceau.py
+[Selected Project Files]
+Main=
+Selected=lib\Pinceau.py
+[DMonde.py]
+TopLine=23
+Caret=38,41
+[lib\Plateau.py]
+TopLine=1
+Caret=1,1
+[lib\Modes.py]
+TopLine=3
+Caret=37,17
+[lib\Cache.py]
+TopLine=11
+Caret=27,21
+[lib\Pinceau.py]
+TopLine=181
+Caret=36,193

+ 0 - 22
DMonde.py

@@ -30,28 +30,6 @@ from lib.Terrain import Terrain
 from lib.Cache import Cache
 from lib.EntreeSortie import EntreeSortie
 
-#fonction ci dessous: deboguage, suit les appels faits aux fonctions
-#settrace(trace_calls)
-def trace_calls(frame, event, arg):
-    if event != 'call':
-        return
-    co = frame.f_code
-    func_name = co.co_name
-    if func_name == 'write':
-        # Ignore write() calls from print statements
-        return
-    func_line_no = frame.f_lineno
-    func_filename = co.co_filename
-    caller = frame.f_back
-    caller_line_no = caller.f_lineno
-    caller_filename = caller.f_code.co_filename
-    #print 'Call to %s on line %s of %s from line %s of %s' % \
-    #    (func_name, func_line_no, func_filename,
-    #     caller_line_no, caller_filename)
-    print("{} ({})".format(func_name, func_filename))
-    return
-
-
 class DMonde(QMainWindow):
     """interface comprenant: chat ecrit, fenetre d'infos, lancer de des, echange de fichiers, lancement du chat vocal"""
     def __init__(self, parent=None):

+ 9 - 10
lib/Cache.py

@@ -14,15 +14,15 @@ class Cache(QGraphicsItem):
         self.plateau = plateau
         self.numero = numero
         self.nom = ""
+        self._actif = False
         self.listeCases = []
-        self._active = False
         self._etiquette = None
         self._listePolygones = []
 
     def __getstate__(self):
         """selectionne les attributs qui seront sauvegardes"""
-        self._active = False
-        state = {key:value for key, value in self.__dict__.items() if key in ["numero", "nom", "listeCases", "_active"]}
+        self._actif = False
+        state = {key:value for key, value in self.__dict__.items() if key in ["numero", "nom", "listeCases", "_actif"]}
         return (state)
 
     def __setstate__(self, state):
@@ -54,7 +54,7 @@ class Cache(QGraphicsItem):
         self.setFlag(QGraphicsItem.ItemHasNoContents)
         self.setHandlesChildEvents(True)
         self.plateau.addItem(self)
-        self._active = True
+        self._actif = True
 
     def ajouterPolygone(self, polygone):
         polygoneGraphique = PolygoneCache(self)
@@ -75,7 +75,7 @@ class Cache(QGraphicsItem):
         self._etiquette.setPlainText(QString().fromUtf8(self.nom))
 
     def modeChange(self, mode):
-        if self._active:
+        if self._actif:
             if issubclass(mode, Modes.ModeBaseCp):
                 transparence = 100
             else:
@@ -84,14 +84,14 @@ class Cache(QGraphicsItem):
                 polygone.majTransparence(transparence)
 
     def activer(self, actif):
-        self._active = actif
+        self._actif = actif
         self.majAffichage()
 
     def actif(self):
-        return self._active
+        return self._actif
 
     def majAffichage(self):
-        self.setVisible(self._active)
+        self.setVisible(self._actif)
 
     def coordCentre(self):
         """renvoie les coordonnees de la case la plus centrale de la liste"""
@@ -134,12 +134,11 @@ class PolygoneCache(QGraphicsPolygonItem):
     def creer(self, polygone):
         self.setPolygon(polygone)
         self.majTransparence(255)
-        self.setParentItem(self)
 
     def majTransparence(self, transparence):
         self.setBrush(QColor(0,0,0,transparence))
         pinceau = QPen()
         pinceau.setBrush(QColor(0,0,0,transparence))
-        pinceau.setWidth(1)
+        pinceau.setWidth(10)
         self.setPen(pinceau)        
 

+ 16 - 0
lib/Modes.py

@@ -135,6 +135,14 @@ class ModeBaseCp(ModeBase):
         super(ModeBaseCp, self).__init__(plateau)
         self.type = "cp"
 
+    def activer(self, param = None):
+        self.plateau.fenetre.ui.cbt_modeCreation.setChecked(True)
+        super(ModeBaseCp, self).activer(param)
+        
+    def desactiver(self):
+        self.plateau.fenetre.ui.cbt_modeCreation.setChecked(False)
+        super(ModeBaseCp, self).desactiver()
+        
     def clicDroit(self, event):
         self.plateau.activerMode(StandardCp)
 
@@ -144,6 +152,14 @@ class ModeBasePi(ModeBase):
         super(ModeBasePi, self).__init__(plateau)
         self.type = "pi"
 
+    def activer(self, param = None):
+        self.plateau.fenetre.ui.cbt_modeCombat.setChecked(True)
+        super(ModeBasePi, self).activer(param)
+        
+    def desactiver(self):
+        self.plateau.fenetre.ui.cbt_modeCombat.setChecked(False)
+        super(ModeBasePi, self).desactiver()
+
     def clicDroit(self, event):
         self.plateau.activerMode(StandardPi)
 

+ 58 - 48
lib/Pinceau.py

@@ -2,6 +2,7 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 from Terrain import Terrain
+from dmF import *
 
 class Pinceau():
     def __init__(self, plateau):
@@ -11,6 +12,7 @@ class Pinceau():
         self._epaisseur = 1
         self._formeVerrouillee = False
         
+        self._coordOrigine = None
         self._origine = None
         self._point2 = None
         self._selection = []
@@ -23,8 +25,8 @@ class Pinceau():
         return self._actif
 
     def majForme(self, forme):
-        if forme in ["simple", "ligne", "frontiere", "pot", \
-                     "rectV", "rectP", "ellipseV", "ellipseP"] and not self._formeVerrouillee:
+        if forme in ["simple", "ligne", "frontiere", "pot", "rectV", "rectP"] and \
+            not self._formeVerrouillee:
             self._forme = forme
 
     def verrouillerForme(self, actif = True):
@@ -36,6 +38,7 @@ class Pinceau():
 
     def defOrigine(self, coord):
         if self.plateau.coordonneesValides(coord):
+            self._coordOrigine = coord
             self._origine = self.plateau.cases[coord].centreGraphique
 
     def defPoint2(self, coord):
@@ -49,6 +52,7 @@ class Pinceau():
         """commence a peindre a partir de la case choisie comme origine"""
         self._formeVerrouillee = False
         if self.plateau.coordonneesValides(coord):
+            self._coordOrigine = coord
             self._origine = self.plateau.cases[coord].centreGraphique
             self._point2 = self.plateau.cases[coord].centreGraphique
             self._actif = True
@@ -95,54 +99,45 @@ class Pinceau():
                         select.remove(coord)
                 enPlus = select   #toutes les coord qui restent dans select sont a ajouter
 
-            else:    
-                if self._forme == "ligne":
-                    #segment simple
-                    if self._objetGraphique == None:
-                        pinceau = QPen()
-                        pinceau.setColor(QColor("black"))                    
-                        self._objetGraphique = QGraphicsLineItem()
-                        self._objetGraphique.setPen(pinceau)
-                        self._objetGraphique.prepareGeometryChange()
-                        self.plateau.addItem(self._objetGraphique)
-                    self._point2 = self.plateau.cases[coord].centreGraphique        
-                    ligne = QLineF(self._origine, self._point2)
-                    self._objetGraphique.setLine(ligne)                                   
-                
-                elif self._forme == "rectV" or self._forme == "rectP":
-                    #rectangle
-                    if self._objetGraphique == None:
-                        pinceau = QPen()
-                        pinceau.setColor(QColor("black"))
-                        self._objetGraphique = QGraphicsRectItem()
-                        self._objetGraphique.prepareGeometryChange()
-                        self._objetGraphique.setPen(pinceau)
-                        self.plateau.addItem(self._objetGraphique)
-                    self._point2 = self.plateau.cases[coord].centreGraphique  
-                    rect = QRectF(QPointF(min(self._origine.x(), self._point2.x()), min(self._origine.y(), self._point2.y())), \
-                                  QPointF(max(self._origine.x(), self._point2.x()), max(self._origine.y(), self._point2.y()))  )
-                    self._objetGraphique.setRect(rect)
-                
-                elif self._forme == "ellipseV" or self._forme == "ellipseP":
-                    #ellipse
-                    if self._objetGraphique == None:
-                        pinceau = QPen()
-                        pinceau.setColor(QColor("black"))
-                        self._objetGraphique = QGraphicsEllipseItem()
-                        self._objetGraphique.prepareGeometryChange()
-                        self._objetGraphique.setPen(pinceau)
-                        self.plateau.addItem(self._objetGraphique)
-                    self._point2 = self.plateau.cases[coord].centreGraphique  
-                    rect = QRectF(QPointF(min(self._origine.x(), self._point2.x()), min(self._origine.y(), self._point2.y())), \
-                                  QPointF(max(self._origine.x(), self._point2.x()), max(self._origine.y(), self._point2.y()))  )
-                    self._objetGraphique.setRect(rect)
-
+            elif self._forme == "rectV" or self._forme == "rectP":
+                #rectangle
+                if self._objetGraphique == None:
+                    pinceau = QPen()
+                    pinceau.setColor(QColor("black"))
+                    self._objetGraphique = QGraphicsRectItem()
+                    self._objetGraphique.prepareGeometryChange()
+                    self._objetGraphique.setPen(pinceau)
+                    self.plateau.addItem(self._objetGraphique)
+                self._point2 = self.plateau.cases[coord].centreGraphique  
+                rect = QRectF(QPointF(min(self._origine.x(), self._point2.x()), min(self._origine.y(), self._point2.y())), \
+                              QPointF(max(self._origine.x(), self._point2.x()), max(self._origine.y(), self._point2.y()))  )
+                self._objetGraphique.setRect(rect)
+                select = self.selectionRectangle(self._coordOrigine, coord, (self._forme == "rectP"))
+                #on met compare avec l'ancienne selection pour minimiser le nombre de cases a maj
+                for coord in self._selection:
+                    if not coord in select:
+                        enMoins.append(coord)
+                    else:    
+                        select.remove(coord)
+                enPlus = select   #toutes les coord qui restent dans select sont a ajouter
+ 
+            elif self._forme == "ligne":
+                #segment simple
+                if self._objetGraphique == None:
+                    pinceau = QPen()
+                    pinceau.setColor(QColor("black"))                    
+                    self._objetGraphique = QGraphicsLineItem()
+                    self._objetGraphique.setPen(pinceau)
+                    self._objetGraphique.prepareGeometryChange()
+                    self.plateau.addItem(self._objetGraphique)
+                self._point2 = self.plateau.cases[coord].centreGraphique        
+                ligne = QLineF(self._origine, self._point2)
+                self._objetGraphique.setLine(ligne)                                   
                 #on liste les cases intersectant la forme
                 if self._objetGraphique:
                     select = self.plateau.casesSousForme(self._objetGraphique, (self._forme[-1:] == "P"), self._epaisseur - 1)
                 else:
                     select = [coord]
-                
                 for coord in self._selection:
                     if not coord in select:
                         enMoins.append(coord)
@@ -172,6 +167,24 @@ class Pinceau():
     def afficherCase(self, coord, actif):
         self.plateau.cases[coord].majEstCibleCurseur(actif)
 
+    def selectionRectangle(self, coord0, coord1, plein = True):
+        """retourne les cases selectionnees lors de l'utilisation de la forme 'rectP' ou 'rectV'"""
+        retour = []
+        #a: point en haut a gauche
+        xa = mini(coord0[0], coord1[0]); ya = mini(coord0[1], coord1[1])
+        #b: point en bas a droite
+        xb = maxi(coord0[0], coord1[0]); yb = maxi(coord0[1], coord1[1])
+        
+        for coord in self.plateau.cases:
+            x, y = coord
+            if xa <= x <= xb and ya <= y <= yb:
+                if plein:
+                    retour.append((x,y))
+                else:
+                    if x == xa or x == xb or y == ya or y == yb:
+                        retour.append((x,y))             
+        return retour
+
     def selectionFrontiere(self):
         """retourne les cases selectionnees lors de l'utilisation de la forme 'frontiere'"""
         listeCases = []
@@ -238,9 +251,6 @@ class Pinceau():
 
 
 
-
-
-
         
 
     

BIN
lib/biblio/terrain


+ 17 - 0
lib/dmF.py

@@ -0,0 +1,17 @@
+"""fonctions generiques DMonde"""
+
+def mini(e1, e2):
+    """renvoie le plus petit entier"""
+    if e1 <= e2:
+        retour = e1
+    else:
+        retour = e2
+    return retour
+
+def maxi(e1, e2):
+    """renvoie le plus petit entier"""
+    if e1 >= e2:
+        retour = e1
+    else:
+        retour = e2
+    return retour

+ 6 - 3
lib/test.py

@@ -1,5 +1,8 @@
-from Actions import *
+import time
 
-a = Cac()
+t0 = time.time()
 
-print isinstance(a, Attaque)
+for i in range(0,100000):
+    test = 0 < 1 < 10
+
+print time.time() - t0

+ 28 - 107
lib/ui/mainwindow.ui

@@ -1654,65 +1654,24 @@
                      <property name="frameShadow">
                       <enum>QFrame::Raised</enum>
                      </property>
-                     <widget class="QToolButton" name="cp_formeEllipseVide">
-                      <property name="geometry">
-                       <rect>
-                        <x>0</x>
-                        <y>25</y>
-                        <width>37</width>
-                        <height>25</height>
-                       </rect>
-                      </property>
-                      <property name="minimumSize">
-                       <size>
-                        <width>37</width>
-                        <height>25</height>
-                       </size>
-                      </property>
-                      <property name="maximumSize">
-                       <size>
-                        <width>37</width>
-                        <height>25</height>
-                       </size>
-                      </property>
-                      <property name="toolTip">
-                       <string>Ellipse (vide)</string>
-                      </property>
-                      <property name="statusTip">
-                       <string/>
-                      </property>
-                      <property name="text">
-                       <string>...</string>
-                      </property>
-                      <property name="icon">
-                       <iconset resource="ressource.qrc">
-                        <normaloff>:/interface/16/ressource/ellipseVide_16.png</normaloff>:/interface/16/ressource/ellipseVide_16.png</iconset>
-                      </property>
-                      <property name="iconSize">
-                       <size>
-                        <width>18</width>
-                        <height>18</height>
-                       </size>
-                      </property>
-                     </widget>
                      <widget class="QToolButton" name="cp_formeRectPlein">
                       <property name="geometry">
                        <rect>
-                        <x>111</x>
+                        <x>100</x>
                         <y>25</y>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </rect>
                       </property>
                       <property name="minimumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
                       <property name="maximumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
@@ -1739,21 +1698,21 @@
                      <widget class="QToolButton" name="cp_formeRectVide">
                       <property name="geometry">
                        <rect>
-                        <x>74</x>
+                        <x>50</x>
                         <y>25</y>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </rect>
                       </property>
                       <property name="minimumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
                       <property name="maximumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
@@ -1815,21 +1774,21 @@
                      <widget class="QToolButton" name="cp_formeLigneOrientee">
                       <property name="geometry">
                        <rect>
-                        <x>74</x>
+                        <x>100</x>
                         <y>0</y>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </rect>
                       </property>
                       <property name="minimumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
                       <property name="maximumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
@@ -1856,21 +1815,21 @@
                      <widget class="QToolButton" name="cp_formeLigne">
                       <property name="geometry">
                        <rect>
-                        <x>37</x>
+                        <x>50</x>
                         <y>0</y>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </rect>
                       </property>
                       <property name="minimumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
                       <property name="maximumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
@@ -1896,19 +1855,19 @@
                        <rect>
                         <x>0</x>
                         <y>0</y>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </rect>
                       </property>
                       <property name="minimumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
                       <property name="maximumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
@@ -1929,47 +1888,6 @@
                        </size>
                       </property>
                      </widget>
-                     <widget class="QToolButton" name="cp_formeEllipsePlein">
-                      <property name="geometry">
-                       <rect>
-                        <x>37</x>
-                        <y>25</y>
-                        <width>37</width>
-                        <height>25</height>
-                       </rect>
-                      </property>
-                      <property name="minimumSize">
-                       <size>
-                        <width>37</width>
-                        <height>25</height>
-                       </size>
-                      </property>
-                      <property name="maximumSize">
-                       <size>
-                        <width>37</width>
-                        <height>25</height>
-                       </size>
-                      </property>
-                      <property name="toolTip">
-                       <string>Ellipse (pleine)</string>
-                      </property>
-                      <property name="statusTip">
-                       <string/>
-                      </property>
-                      <property name="text">
-                       <string>...</string>
-                      </property>
-                      <property name="icon">
-                       <iconset resource="ressource.qrc">
-                        <normaloff>:/interface/16/ressource/ellipsePleine_16.png</normaloff>:/interface/16/ressource/ellipsePleine_16.png</iconset>
-                      </property>
-                      <property name="iconSize">
-                       <size>
-                        <width>24</width>
-                        <height>24</height>
-                       </size>
-                      </property>
-                     </widget>
                      <widget class="QSlider" name="cp_epaisseurPinceau">
                       <property name="geometry">
                        <rect>
@@ -2007,21 +1925,21 @@
                      <widget class="QToolButton" name="cp_formePot">
                       <property name="geometry">
                        <rect>
-                        <x>111</x>
-                        <y>0</y>
-                        <width>37</width>
+                        <x>0</x>
+                        <y>25</y>
+                        <width>50</width>
                         <height>25</height>
                        </rect>
                       </property>
                       <property name="minimumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
                       <property name="maximumSize">
                        <size>
-                        <width>37</width>
+                        <width>50</width>
                         <height>25</height>
                        </size>
                       </property>
@@ -2504,6 +2422,9 @@
                          <attribute name="horizontalHeaderDefaultSectionSize">
                           <number>105</number>
                          </attribute>
+                         <attribute name="horizontalHeaderStretchLastSection">
+                          <bool>true</bool>
+                         </attribute>
                          <attribute name="verticalHeaderVisible">
                           <bool>false</bool>
                          </attribute>
@@ -2670,7 +2591,7 @@
                          <string>Modifier l'altitude des cases</string>
                         </property>
                         <property name="text">
-                         <string>...</string>
+                         <string/>
                         </property>
                         <property name="icon">
                          <iconset resource="ressource.qrc">

BIN
parties/Partie1/svg/2.p


BIN
parties/Partie1/svg/infos_sauvegarde