Browse Source

Fenetre 'creer plateau' reconstruite et fonctionnelle

unknown 10 years ago
parent
commit
c60c379fbc

+ 3 - 3
DMonde.py

@@ -13,7 +13,7 @@ from PyQt4.QtGui import *
 
 from lib.ui.ecran_principal import Ui_principal
 
-from lib.EcranCreationPlateau import EcranCreationPlateau
+from lib.EcranCreerPlateau import EcranCreerPlateau
 from lib.EcranFondPlateau import EcranFondPlateau
 from lib.Plateau import Plateau
 from lib.EcranEditionCombattant import EcranEditionCombattant
@@ -91,14 +91,14 @@ class DMonde(QMainWindow):
         for pj in listePj:
             self.pjAjouterAListe(pj)
 
-    def afficherEcranCreationPlateau(self):
+    def afficherEcranCreerPlateau(self):
         """ouvre la fenetre de creation de plateau"""
         valide = True
         if self.plateau != None:
             if self.plateau.estCree() == True:
                 valide = False
         if valide:
-            self.creationPlateau = EcranCreationPlateau(self)
+            self.creationPlateau = EcranCreerPlateau(self)
             self.creationPlateau.setWindowModality(Qt.ApplicationModal)
             self.creationPlateau.show()
             self.creationPlateau.raise_()

+ 0 - 0
lib/EcranCreationPlateau.py → lib/EcranChargementPlateau.py


+ 90 - 0
lib/EcranCreerPlateau.py

@@ -0,0 +1,90 @@
+#from __future__ import unicode_literals
+# -*- coding: utf-8 -*-
+from __future__ import division
+from time import time, sleep, strftime, localtime
+
+from PyQt4.QtCore import *
+from PyQt4.QtGui import *
+
+from ui.ecran_creerPlateau import Ui_crp_fenetre
+
+from outilsSvg import *
+
+class EcranCreerPlateau(QDialog):
+    """interface de creation/chargement de plateau"""
+    def __init__(self, fenetrePrincipale, terrain=None, parent=None):
+        """initialisation de la fenetre"""
+        super (EcranCreerPlateau, self).__init__()
+        self.fenetre = fenetrePrincipale
+        self.couleur = QColor(0, 255, 0, 80)
+        self._majEnCours = False
+        self.createWidgets()
+        self.majAffichage()
+        
+    def createWidgets(self):
+        """construction de l'interface"""
+        #construction de l'interface
+        self.ui = Ui_crp_fenetre()
+        self.ui.setupUi(self)
+        self.ui.crp_couleur.setStyleSheet("QLabel {backGround:%s}" %(self.couleur))
+        self.connect(self.ui.crp_couleur, SIGNAL("clicked()"), self.selectionCouleur)
+        self.connect(self.ui.crp_listeDimensions, SIGNAL("activated(int)"), self.majDimensions)
+        self.connect(self.ui.crp_largeur, SIGNAL("valueChanged(int)"), self.majListeDimensions)
+        self.connect(self.ui.crp_hauteur, SIGNAL("valueChanged(int)"), self.majListeDimensions)
+        
+        self.connect(self.ui.crp_nom, SIGNAL("textEdited(QString)"), self.majAffichage)
+        
+        self.connect(self.ui.crp_ok, SIGNAL("clicked()"), self.creer)
+        self.ui.crp_ok.setShortcut("Enter") 
+
+    def creer(self):
+        nom = self.ui.crp_nom.texte()
+        largeur = self.ui.crp_largeur.value()
+        hauteur = self.ui.crp_hauteur.value()
+        chapitre = str(self.ui.crp_chapitre.value())
+        if self.ui.crp_formeHexa.isChecked():
+            formeCases = "H"
+        else:
+            formeCases = "C"
+        ok = True
+        if (largeur * hauteur) > 10000:
+            reponse = QMessageBox.question(self, 'Message',
+                                           "Attention ! \nLe nombre élevé de cases peut entrainer des ralentissements " \
+                                           "importants...\nVoulez vous continuer?", QMessageBox.Yes | 
+                                           QMessageBox.No, QMessageBox.No)
+            ok = (reponse != QMessageBox.No)
+        if ok == True:
+            self.fenetre.creerPlateau(nom, chapitre, formeCases, largeur, hauteur, self.couleur)
+            self.close()
+       
+    def majAffichage(self):
+        self.ui.crp_ok.setEnabled(len(self.ui.crp_nom.texte()) > 0)
+        
+    def selectionCouleur(self):
+        """selectionne la couleur dans la boite de dialogue dediee"""
+        couleur = QColorDialog(self).getColor(QColor("white"), self)
+        if couleur.isValid():
+            nomCouleur = couleur.name()
+            self.ui.crp_couleur.setStyleSheet("QLabel {backGround:%s}" %(nomCouleur))
+            self.couleur = couleur    
+
+    def majDimensions(self, index):
+        if not self._majEnCours:
+            dimensionsRapides = [(30,20), (50,30), (100,70), \
+                                 (20,30), (30,50), (70,100), \
+                                 (25, 25), (40, 40), (80, 80), \
+                                 (1,1) ]
+            largeur, hauteur = dimensionsRapides[index]
+            self._majEnCours = True
+            self.ui.crp_largeur.setValue(largeur)
+            self.ui.crp_hauteur.setValue(hauteur)
+            self._majEnCours = False
+
+    def majListeDimensions(self):
+        """l'utilisateur a modifie une dimension,
+            la liste affiche 'personnalise'"""
+        if not self._majEnCours:
+            self._majEnCours = True
+            self.ui.crp_listeDimensions.setCurrentIndex(9)
+            self._majEnCours = False
+

+ 1 - 1
lib/EcranFondPlateau.py

@@ -41,7 +41,7 @@ class EcranFondPlateau(QGraphicsScene):
     def clic(self, cmdId):
         """on a clique sur une des commandes"""
         if cmdId == "creer":
-            self.fenetre.afficherEcranCreationPlateau()
+            self.fenetre.afficherEcranCreerPlateau()
         elif cmdId == "charger":
             print "charger"
         elif cmdId == "enCours":

+ 323 - 0
lib/ui/chargerPlateau.ui

@@ -0,0 +1,323 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>chargerPlateau</class>
+ <widget class="QDialog" name="chargerPlateau">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>509</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Charger un plateau</string>
+  </property>
+  <widget class="QTableWidget" name="listPlateau">
+   <property name="geometry">
+    <rect>
+     <x>19</x>
+     <y>41</y>
+     <width>471</width>
+     <height>211</height>
+    </rect>
+   </property>
+   <property name="palette">
+    <palette>
+     <active>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>247</red>
+         <green>247</green>
+         <blue>247</blue>
+        </color>
+       </brush>
+      </colorrole>
+      <colorrole role="AlternateBase">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>229</red>
+         <green>229</green>
+         <blue>229</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </active>
+     <inactive>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>247</red>
+         <green>247</green>
+         <blue>247</blue>
+        </color>
+       </brush>
+      </colorrole>
+      <colorrole role="AlternateBase">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>229</red>
+         <green>229</green>
+         <blue>229</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </inactive>
+     <disabled>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>240</red>
+         <green>240</green>
+         <blue>240</blue>
+        </color>
+       </brush>
+      </colorrole>
+      <colorrole role="AlternateBase">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>229</red>
+         <green>229</green>
+         <blue>229</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </disabled>
+    </palette>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="frameShape">
+    <enum>QFrame::StyledPanel</enum>
+   </property>
+   <property name="editTriggers">
+    <set>QAbstractItemView::NoEditTriggers</set>
+   </property>
+   <property name="showDropIndicator" stdset="0">
+    <bool>false</bool>
+   </property>
+   <property name="dragDropOverwriteMode">
+    <bool>false</bool>
+   </property>
+   <property name="selectionMode">
+    <enum>QAbstractItemView::SingleSelection</enum>
+   </property>
+   <property name="selectionBehavior">
+    <enum>QAbstractItemView::SelectRows</enum>
+   </property>
+   <property name="showGrid">
+    <bool>true</bool>
+   </property>
+   <property name="gridStyle">
+    <enum>Qt::DotLine</enum>
+   </property>
+   <property name="cornerButtonEnabled">
+    <bool>true</bool>
+   </property>
+   <attribute name="horizontalHeaderVisible">
+    <bool>false</bool>
+   </attribute>
+   <attribute name="horizontalHeaderDefaultSectionSize">
+    <number>80</number>
+   </attribute>
+   <attribute name="verticalHeaderVisible">
+    <bool>false</bool>
+   </attribute>
+   <attribute name="verticalHeaderDefaultSectionSize">
+    <number>24</number>
+   </attribute>
+   <column>
+    <property name="text">
+     <string>index</string>
+    </property>
+   </column>
+   <column>
+    <property name="text">
+     <string>Chapitre</string>
+    </property>
+   </column>
+   <column>
+    <property name="text">
+     <string>Nom</string>
+    </property>
+   </column>
+   <column>
+    <property name="text">
+     <string>Creation</string>
+    </property>
+   </column>
+   <column>
+    <property name="text">
+     <string>Sauvegarde</string>
+    </property>
+   </column>
+   <column>
+    <property name="text">
+     <string>Public</string>
+    </property>
+   </column>
+   <column>
+    <property name="text">
+     <string>tri</string>
+    </property>
+   </column>
+  </widget>
+  <widget class="QCheckBox" name="toutAfficherPlateau">
+   <property name="geometry">
+    <rect>
+     <x>469</x>
+     <y>11</y>
+     <width>16</width>
+     <height>20</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string/>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="chargerPlateau_2">
+   <property name="enabled">
+    <bool>false</bool>
+   </property>
+   <property name="geometry">
+    <rect>
+     <x>389</x>
+     <y>258</y>
+     <width>100</width>
+     <height>30</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>Ok</string>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label_11">
+   <property name="geometry">
+    <rect>
+     <x>19</x>
+     <y>11</y>
+     <width>311</width>
+     <height>21</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>13</pointsize>
+     <weight>75</weight>
+     <bold>true</bold>
+    </font>
+   </property>
+   <property name="text">
+    <string>Reprendre un plateau du chapitre:</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="supprimerPlateau">
+   <property name="enabled">
+    <bool>false</bool>
+   </property>
+   <property name="geometry">
+    <rect>
+     <x>19</x>
+     <y>258</y>
+     <width>81</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+     <italic>true</italic>
+    </font>
+   </property>
+   <property name="text">
+    <string>Suppr</string>
+   </property>
+  </widget>
+  <widget class="QSpinBox" name="chapitreChargementPlateau">
+   <property name="geometry">
+    <rect>
+     <x>339</x>
+     <y>5</y>
+     <width>41</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="palette">
+    <palette>
+     <active>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </active>
+     <inactive>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </inactive>
+     <disabled>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>240</red>
+         <green>240</green>
+         <blue>240</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </disabled>
+    </palette>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="minimum">
+    <number>1</number>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label_12">
+   <property name="geometry">
+    <rect>
+     <x>400</x>
+     <y>10</y>
+     <width>71</width>
+     <height>21</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <italic>true</italic>
+    </font>
+   </property>
+   <property name="text">
+    <string>Tout afficher:</string>
+   </property>
+  </widget>
+ </widget>
+ <resources>
+  <include location="ressource.qrc"/>
+ </resources>
+ <connections/>
+</ui>

+ 180 - 0
lib/ui/chercherModelePlateau.ui

@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>chercherModelePlateau</class>
+ <widget class="QDialog" name="chercherModelePlateau">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>399</width>
+    <height>279</height>
+   </rect>
+  </property>
+  <property name="font">
+   <font>
+    <family>Verdana</family>
+   </font>
+  </property>
+  <property name="windowTitle">
+   <string>Chercher un modèle de plateau</string>
+  </property>
+  <widget class="QListWidget" name="selectionModele">
+   <property name="geometry">
+    <rect>
+     <x>10</x>
+     <y>10</y>
+     <width>141</width>
+     <height>251</height>
+    </rect>
+   </property>
+   <property name="palette">
+    <palette>
+     <active>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>247</red>
+         <green>247</green>
+         <blue>247</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </active>
+     <inactive>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>247</red>
+         <green>247</green>
+         <blue>247</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </inactive>
+     <disabled>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>240</red>
+         <green>240</green>
+         <blue>240</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </disabled>
+    </palette>
+   </property>
+   <property name="frameShape">
+    <enum>QFrame::Box</enum>
+   </property>
+   <item>
+    <property name="text">
+     <string>Prairie</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Caverne</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Plage</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Marais</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Cour du chateau</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Salle du trône</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Crypte</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Maison bourgeoise</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Forêt</string>
+    </property>
+   </item>
+  </widget>
+  <widget class="QLabel" name="modele_dimensions">
+   <property name="geometry">
+    <rect>
+     <x>270</x>
+     <y>10</y>
+     <width>91</width>
+     <height>21</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>dim</string>
+   </property>
+  </widget>
+  <widget class="QLabel" name="modele_apercu">
+   <property name="geometry">
+    <rect>
+     <x>170</x>
+     <y>40</y>
+     <width>201</width>
+     <height>161</height>
+    </rect>
+   </property>
+   <property name="frameShape">
+    <enum>QFrame::StyledPanel</enum>
+   </property>
+   <property name="text">
+    <string>(Aperçu non disponible)</string>
+   </property>
+   <property name="alignment">
+    <set>Qt::AlignCenter</set>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label_3">
+   <property name="geometry">
+    <rect>
+     <x>170</x>
+     <y>10</y>
+     <width>91</width>
+     <height>21</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>Dimensions :</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="chargerModele">
+   <property name="enabled">
+    <bool>false</bool>
+   </property>
+   <property name="geometry">
+    <rect>
+     <x>270</x>
+     <y>230</y>
+     <width>100</width>
+     <height>30</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>Ok</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 0 - 1
lib/ui/convertCreationPlateau.cmd

@@ -1 +0,0 @@
-pyuic4 -x creationPlateau.ui -o ecran_creationPlateau.py

+ 1 - 0
lib/ui/convertCreerPlateau.cmd

@@ -0,0 +1 @@
+pyuic4 -x creerPlateau.ui -o ecran_creerPlateau.py

+ 1 - 1
lib/ui/creationPlateau.ui

@@ -382,7 +382,7 @@
     </palette>
    </property>
    <property name="currentIndex">
-    <number>1</number>
+    <number>3</number>
    </property>
    <widget class="QWidget" name="page">
     <widget class="QLabel" name="label">

+ 546 - 0
lib/ui/creerPlateau.ui

@@ -0,0 +1,546 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>crp_fenetre</class>
+ <widget class="QDialog" name="crp_fenetre">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>485</width>
+    <height>203</height>
+   </rect>
+  </property>
+  <property name="font">
+   <font>
+    <family>Verdana</family>
+   </font>
+  </property>
+  <property name="windowTitle">
+   <string>Créer un plateau</string>
+  </property>
+  <widget class="QSpinBox" name="crp_hauteur">
+   <property name="geometry">
+    <rect>
+     <x>410</x>
+     <y>60</y>
+     <width>51</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="palette">
+    <palette>
+     <active>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </active>
+     <inactive>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </inactive>
+     <disabled>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>240</red>
+         <green>240</green>
+         <blue>240</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </disabled>
+    </palette>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="minimum">
+    <number>5</number>
+   </property>
+   <property name="maximum">
+    <number>300</number>
+   </property>
+   <property name="singleStep">
+    <number>1</number>
+   </property>
+   <property name="value">
+    <number>25</number>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="crp_ok">
+   <property name="enabled">
+    <bool>false</bool>
+   </property>
+   <property name="geometry">
+    <rect>
+     <x>350</x>
+     <y>150</y>
+     <width>111</width>
+     <height>30</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>Ok</string>
+   </property>
+   <property name="default">
+    <bool>true</bool>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label_7">
+   <property name="geometry">
+    <rect>
+     <x>180</x>
+     <y>60</y>
+     <width>151</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>Dimensions (L x H) : </string>
+   </property>
+  </widget>
+  <widget class="DmLineEdit" name="crp_nom">
+   <property name="geometry">
+    <rect>
+     <x>60</x>
+     <y>10</y>
+     <width>281</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="palette">
+    <palette>
+     <active>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </active>
+     <inactive>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </inactive>
+     <disabled>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>240</red>
+         <green>240</green>
+         <blue>240</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </disabled>
+    </palette>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label_10">
+   <property name="geometry">
+    <rect>
+     <x>10</x>
+     <y>10</y>
+     <width>51</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>Nom : </string>
+   </property>
+  </widget>
+  <widget class="QSpinBox" name="crp_largeur">
+   <property name="geometry">
+    <rect>
+     <x>320</x>
+     <y>60</y>
+     <width>51</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="palette">
+    <palette>
+     <active>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </active>
+     <inactive>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </inactive>
+     <disabled>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>240</red>
+         <green>240</green>
+         <blue>240</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </disabled>
+    </palette>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="minimum">
+    <number>1</number>
+   </property>
+   <property name="maximum">
+    <number>300</number>
+   </property>
+   <property name="singleStep">
+    <number>1</number>
+   </property>
+   <property name="value">
+    <number>50</number>
+   </property>
+  </widget>
+  <widget class="QSpinBox" name="crp_chapitre">
+   <property name="geometry">
+    <rect>
+     <x>410</x>
+     <y>10</y>
+     <width>51</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="palette">
+    <palette>
+     <active>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </active>
+     <inactive>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>248</red>
+         <green>248</green>
+         <blue>248</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </inactive>
+     <disabled>
+      <colorrole role="Base">
+       <brush brushstyle="SolidPattern">
+        <color alpha="255">
+         <red>240</red>
+         <green>240</green>
+         <blue>240</blue>
+        </color>
+       </brush>
+      </colorrole>
+     </disabled>
+    </palette>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="minimum">
+    <number>1</number>
+   </property>
+  </widget>
+  <widget class="QGroupBox" name="groupBox">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>100</y>
+     <width>311</width>
+     <height>41</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="title">
+    <string/>
+   </property>
+   <property name="flat">
+    <bool>true</bool>
+   </property>
+   <widget class="QRadioButton" name="crp_formeHexa">
+    <property name="geometry">
+     <rect>
+      <x>80</x>
+      <y>10</y>
+      <width>111</width>
+      <height>20</height>
+     </rect>
+    </property>
+    <property name="font">
+     <font>
+      <pointsize>9</pointsize>
+     </font>
+    </property>
+    <property name="text">
+     <string>Hexagonales</string>
+    </property>
+    <property name="checked">
+     <bool>true</bool>
+    </property>
+   </widget>
+   <widget class="QRadioButton" name="crp_formeCarree">
+    <property name="geometry">
+     <rect>
+      <x>220</x>
+      <y>10</y>
+      <width>81</width>
+      <height>21</height>
+     </rect>
+    </property>
+    <property name="font">
+     <font>
+      <pointsize>9</pointsize>
+     </font>
+    </property>
+    <property name="text">
+     <string>Carrées</string>
+    </property>
+   </widget>
+   <widget class="QLabel" name="label_2">
+    <property name="geometry">
+     <rect>
+      <x>0</x>
+      <y>10</y>
+      <width>61</width>
+      <height>21</height>
+     </rect>
+    </property>
+    <property name="text">
+     <string>Cases : </string>
+    </property>
+   </widget>
+  </widget>
+  <widget class="QLabel" name="label_6">
+   <property name="geometry">
+    <rect>
+     <x>360</x>
+     <y>10</y>
+     <width>51</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>9</pointsize>
+     <weight>50</weight>
+     <bold>false</bold>
+    </font>
+   </property>
+   <property name="text">
+    <string>Chap. :</string>
+   </property>
+  </widget>
+  <widget class="QLabel" name="label">
+   <property name="geometry">
+    <rect>
+     <x>385</x>
+     <y>62</y>
+     <width>21</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>9</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>x</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="crp_chercherModele">
+   <property name="enabled">
+    <bool>false</bool>
+   </property>
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>150</y>
+     <width>141</width>
+     <height>30</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <pointsize>10</pointsize>
+    </font>
+   </property>
+   <property name="text">
+    <string>Utiliser un modèle</string>
+   </property>
+   <property name="default">
+    <bool>true</bool>
+   </property>
+  </widget>
+  <widget class="QToolButton" name="crp_couleur">
+   <property name="geometry">
+    <rect>
+     <x>430</x>
+     <y>100</y>
+     <width>31</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>...</string>
+   </property>
+   <property name="icon">
+    <iconset resource="ressource.qrc">
+     <normaloff>:/interface/16/ressource/palette_16.png</normaloff>:/interface/16/ressource/palette_16.png</iconset>
+   </property>
+  </widget>
+  <widget class="QComboBox" name="crp_listeDimensions">
+   <property name="geometry">
+    <rect>
+     <x>30</x>
+     <y>60</y>
+     <width>131</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="currentIndex">
+    <number>0</number>
+   </property>
+   <property name="maxVisibleItems">
+    <number>9</number>
+   </property>
+   <item>
+    <property name="text">
+     <string>Paysage - Petit</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Paysage - Moyen</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Paysage - Grand</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Portrait - Petit</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Portrait - Moyen</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Portrait - Grand</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Carré - Petit</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Carré - Moyen</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Carré - Grand</string>
+    </property>
+   </item>
+   <item>
+    <property name="text">
+     <string>Personnalisé</string>
+    </property>
+   </item>
+  </widget>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>DmLineEdit</class>
+   <extends>QLineEdit</extends>
+   <header location="global">dm.h</header>
+  </customwidget>
+ </customwidgets>
+ <resources>
+  <include location="ressource.qrc"/>
+ </resources>
+ <connections/>
+</ui>

+ 235 - 0
lib/ui/ecran_creerPlateau.py

@@ -0,0 +1,235 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'creerPlateau.ui'
+#
+# Created: Fri Jun 26 15:41:28 2015
+#      by: PyQt4 UI code generator 4.10.4
+#
+# WARNING! All changes made in this file will be lost!
+
+from PyQt4 import QtCore, QtGui
+
+try:
+    _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+    def _fromUtf8(s):
+        return s
+
+try:
+    _encoding = QtGui.QApplication.UnicodeUTF8
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig)
+
+class Ui_crp_fenetre(object):
+    def setupUi(self, crp_fenetre):
+        crp_fenetre.setObjectName(_fromUtf8("crp_fenetre"))
+        crp_fenetre.resize(485, 203)
+        font = QtGui.QFont()
+        font.setFamily(_fromUtf8("Verdana"))
+        crp_fenetre.setFont(font)
+        self.crp_hauteur = QtGui.QSpinBox(crp_fenetre)
+        self.crp_hauteur.setGeometry(QtCore.QRect(410, 60, 51, 31))
+        palette = QtGui.QPalette()
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
+        self.crp_hauteur.setPalette(palette)
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.crp_hauteur.setFont(font)
+        self.crp_hauteur.setMinimum(5)
+        self.crp_hauteur.setMaximum(300)
+        self.crp_hauteur.setSingleStep(1)
+        self.crp_hauteur.setProperty("value", 25)
+        self.crp_hauteur.setObjectName(_fromUtf8("crp_hauteur"))
+        self.crp_ok = QtGui.QPushButton(crp_fenetre)
+        self.crp_ok.setEnabled(False)
+        self.crp_ok.setGeometry(QtCore.QRect(350, 150, 111, 30))
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.crp_ok.setFont(font)
+        self.crp_ok.setDefault(True)
+        self.crp_ok.setObjectName(_fromUtf8("crp_ok"))
+        self.label_7 = QtGui.QLabel(crp_fenetre)
+        self.label_7.setGeometry(QtCore.QRect(180, 60, 151, 31))
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.label_7.setFont(font)
+        self.label_7.setObjectName(_fromUtf8("label_7"))
+        self.crp_nom = DmLineEdit(crp_fenetre)
+        self.crp_nom.setGeometry(QtCore.QRect(60, 10, 281, 31))
+        palette = QtGui.QPalette()
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
+        self.crp_nom.setPalette(palette)
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.crp_nom.setFont(font)
+        self.crp_nom.setObjectName(_fromUtf8("crp_nom"))
+        self.label_10 = QtGui.QLabel(crp_fenetre)
+        self.label_10.setGeometry(QtCore.QRect(10, 10, 51, 31))
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.label_10.setFont(font)
+        self.label_10.setObjectName(_fromUtf8("label_10"))
+        self.crp_largeur = QtGui.QSpinBox(crp_fenetre)
+        self.crp_largeur.setGeometry(QtCore.QRect(320, 60, 51, 31))
+        palette = QtGui.QPalette()
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
+        self.crp_largeur.setPalette(palette)
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.crp_largeur.setFont(font)
+        self.crp_largeur.setMinimum(1)
+        self.crp_largeur.setMaximum(300)
+        self.crp_largeur.setSingleStep(1)
+        self.crp_largeur.setProperty("value", 50)
+        self.crp_largeur.setObjectName(_fromUtf8("crp_largeur"))
+        self.crp_chapitre = QtGui.QSpinBox(crp_fenetre)
+        self.crp_chapitre.setGeometry(QtCore.QRect(410, 10, 51, 31))
+        palette = QtGui.QPalette()
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(248, 248, 248))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
+        self.crp_chapitre.setPalette(palette)
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.crp_chapitre.setFont(font)
+        self.crp_chapitre.setMinimum(1)
+        self.crp_chapitre.setObjectName(_fromUtf8("crp_chapitre"))
+        self.groupBox = QtGui.QGroupBox(crp_fenetre)
+        self.groupBox.setGeometry(QtCore.QRect(30, 100, 311, 41))
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.groupBox.setFont(font)
+        self.groupBox.setTitle(_fromUtf8(""))
+        self.groupBox.setFlat(True)
+        self.groupBox.setObjectName(_fromUtf8("groupBox"))
+        self.crp_formeHexa = QtGui.QRadioButton(self.groupBox)
+        self.crp_formeHexa.setGeometry(QtCore.QRect(80, 10, 111, 20))
+        font = QtGui.QFont()
+        font.setPointSize(9)
+        self.crp_formeHexa.setFont(font)
+        self.crp_formeHexa.setChecked(True)
+        self.crp_formeHexa.setObjectName(_fromUtf8("crp_formeHexa"))
+        self.crp_formeCarree = QtGui.QRadioButton(self.groupBox)
+        self.crp_formeCarree.setGeometry(QtCore.QRect(220, 10, 81, 21))
+        font = QtGui.QFont()
+        font.setPointSize(9)
+        self.crp_formeCarree.setFont(font)
+        self.crp_formeCarree.setObjectName(_fromUtf8("crp_formeCarree"))
+        self.label_2 = QtGui.QLabel(self.groupBox)
+        self.label_2.setGeometry(QtCore.QRect(0, 10, 61, 21))
+        self.label_2.setObjectName(_fromUtf8("label_2"))
+        self.label_6 = QtGui.QLabel(crp_fenetre)
+        self.label_6.setGeometry(QtCore.QRect(360, 10, 51, 31))
+        font = QtGui.QFont()
+        font.setPointSize(9)
+        font.setBold(False)
+        font.setWeight(50)
+        self.label_6.setFont(font)
+        self.label_6.setObjectName(_fromUtf8("label_6"))
+        self.label = QtGui.QLabel(crp_fenetre)
+        self.label.setGeometry(QtCore.QRect(385, 62, 21, 31))
+        font = QtGui.QFont()
+        font.setPointSize(9)
+        self.label.setFont(font)
+        self.label.setObjectName(_fromUtf8("label"))
+        self.crp_chercherModele = QtGui.QPushButton(crp_fenetre)
+        self.crp_chercherModele.setEnabled(False)
+        self.crp_chercherModele.setGeometry(QtCore.QRect(30, 150, 141, 30))
+        font = QtGui.QFont()
+        font.setPointSize(10)
+        self.crp_chercherModele.setFont(font)
+        self.crp_chercherModele.setDefault(True)
+        self.crp_chercherModele.setObjectName(_fromUtf8("crp_chercherModele"))
+        self.crp_couleur = QtGui.QToolButton(crp_fenetre)
+        self.crp_couleur.setGeometry(QtCore.QRect(430, 100, 31, 31))
+        icon = QtGui.QIcon()
+        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/16/ressource/palette_16.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        self.crp_couleur.setIcon(icon)
+        self.crp_couleur.setObjectName(_fromUtf8("crp_couleur"))
+        self.crp_listeDimensions = QtGui.QComboBox(crp_fenetre)
+        self.crp_listeDimensions.setGeometry(QtCore.QRect(30, 60, 131, 31))
+        self.crp_listeDimensions.setMaxVisibleItems(9)
+        self.crp_listeDimensions.setObjectName(_fromUtf8("crp_listeDimensions"))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+        self.crp_listeDimensions.addItem(_fromUtf8(""))
+
+        self.retranslateUi(crp_fenetre)
+        self.crp_listeDimensions.setCurrentIndex(0)
+        QtCore.QMetaObject.connectSlotsByName(crp_fenetre)
+
+    def retranslateUi(self, crp_fenetre):
+        crp_fenetre.setWindowTitle(_translate("crp_fenetre", "Créer un plateau", None))
+        self.crp_ok.setText(_translate("crp_fenetre", "Ok", None))
+        self.label_7.setText(_translate("crp_fenetre", "Dimensions (L x H) : ", None))
+        self.label_10.setText(_translate("crp_fenetre", "Nom : ", None))
+        self.crp_formeHexa.setText(_translate("crp_fenetre", "Hexagonales", None))
+        self.crp_formeCarree.setText(_translate("crp_fenetre", "Carrées", None))
+        self.label_2.setText(_translate("crp_fenetre", "Cases : ", None))
+        self.label_6.setText(_translate("crp_fenetre", "Chap. :", None))
+        self.label.setText(_translate("crp_fenetre", "x", None))
+        self.crp_chercherModele.setText(_translate("crp_fenetre", "Utiliser un modèle", None))
+        self.crp_couleur.setText(_translate("crp_fenetre", "...", None))
+        self.crp_listeDimensions.setItemText(0, _translate("crp_fenetre", "Paysage - Petit", None))
+        self.crp_listeDimensions.setItemText(1, _translate("crp_fenetre", "Paysage - Moyen", None))
+        self.crp_listeDimensions.setItemText(2, _translate("crp_fenetre", "Paysage - Grand", None))
+        self.crp_listeDimensions.setItemText(3, _translate("crp_fenetre", "Portrait - Petit", None))
+        self.crp_listeDimensions.setItemText(4, _translate("crp_fenetre", "Portrait - Moyen", None))
+        self.crp_listeDimensions.setItemText(5, _translate("crp_fenetre", "Portrait - Grand", None))
+        self.crp_listeDimensions.setItemText(6, _translate("crp_fenetre", "Carré - Petit", None))
+        self.crp_listeDimensions.setItemText(7, _translate("crp_fenetre", "Carré - Moyen", None))
+        self.crp_listeDimensions.setItemText(8, _translate("crp_fenetre", "Carré - Grand", None))
+        self.crp_listeDimensions.setItemText(9, _translate("crp_fenetre", "Personnalisé", None))
+
+from dm import DmLineEdit
+import ressource_rc
+
+if __name__ == "__main__":
+    import sys
+    app = QtGui.QApplication(sys.argv)
+    crp_fenetre = QtGui.QDialog()
+    ui = Ui_crp_fenetre()
+    ui.setupUi(crp_fenetre)
+    crp_fenetre.show()
+    sys.exit(app.exec_())
+

+ 1 - 0
lib/ui/ressource.qrc

@@ -98,4 +98,5 @@
         <file>ressource/dossier_512.png</file>
         <file>ressource/plus_512.png</file>
     </qresource>
+    <qresource prefix="/curseur" lang="fr"/>
 </RCC>

+ 0 - 102
lib/ui/ressource.qrc.autosave

@@ -1,102 +0,0 @@
-<RCC>
-    <qresource prefix="/interface/16" lang="fr">
-        <file>ressource/ellipsePleine_16.png</file>
-        <file>ressource/ellipseVide_16.png</file>
-        <file>ressource/flecheHaut_16.png</file>
-        <file>ressource/gomme_16.png</file>
-        <file>ressource/ligne_16.png</file>
-        <file>ressource/ligneBrisee_16.png</file>
-        <file>ressource/ligneOrientee_16.png</file>
-        <file>ressource/plus_16.png</file>
-        <file>ressource/rectPlein_16.png</file>
-        <file>ressource/rectVide_16.png</file>
-        <file>ressource/retour_16.png</file>
-        <file>ressource/sac_16.png</file>
-        <file>ressource/soleil_16.png</file>
-        <file>ressource/agrandir_16.png</file>
-        <file>ressource/arc_16.png</file>
-        <file>ressource/armes_16.png</file>
-        <file>ressource/baguette_16.png</file>
-        <file>ressource/bombe_16.png</file>
-        <file>ressource/bouclier_16.png</file>
-        <file>ressource/cone_16.png</file>
-        <file>ressource/copie_16.png</file>
-        <file>ressource/creation_16.png</file>
-        <file>ressource/de_16.png</file>
-        <file>ressource/deplacer_16.png</file>
-        <file>ressource/eau_16.png</file>
-        <file>ressource/editer_16.png</file>
-        <file>ressource/endormi_16.png</file>
-        <file>ressource/enregistrer_16.png</file>
-        <file>ressource/entree_16.png</file>
-        <file>ressource/epee_16.png</file>
-        <file>ressource/etourdi_16.png</file>
-        <file>ressource/fermer_16.png</file>
-        <file>ressource/feu_16.png</file>
-        <file>ressource/flecheBas_16.png</file>
-        <file>ressource/flecheDroite_16.png</file>
-        <file>ressource/flecheDroite2_16.png</file>
-        <file>ressource/flecheGauche_16.png</file>
-        <file>ressource/marche_16.png</file>
-        <file>ressource/mort_16.png</file>
-        <file>ressource/palette_16.png</file>
-        <file>ressource/pinceau_16.png</file>
-        <file>ressource/poison_16.png</file>
-        <file>ressource/seringue_16.png</file>
-        <file>ressource/sortie_16.png</file>
-        <file>ressource/toile_16.png</file>
-        <file>ressource/vol_16.png</file>
-        <file>ressource/eclair_16.png</file>
-        <file>ressource/glace_16.png</file>
-    </qresource>
-    <qresource prefix="/interface/24" lang="fr">
-        <file>ressource/poids_24.png</file>
-        <file>ressource/nage_24.png</file>
-        <file>ressource/plume_24.png</file>
-        <file>ressource/escalade_24.png</file>
-    </qresource>
-    <qresource prefix="/interface/32" lang="fr">
-        <file>ressource/armes_32.png</file>
-        <file>ressource/etoile_32.png</file>
-        <file>ressource/boiteOutils_32.png</file>
-        <file>ressource/diamant_32.png</file>
-        <file>ressource/chimie_32.png</file>
-        <file>ressource/chimie2_32.png</file>
-        <file>ressource/pieces_32.png</file>
-        <file>ressource/pieces2_32.png</file>
-        <file>ressource/corbeille_32.png</file>
-        <file>ressource/oiseau_32.png</file>
-        <file>ressource/plume_32.png</file>
-        <file>ressource/escalade_32.png</file>
-        <file>ressource/aide_32.png</file>
-        <file>ressource/portrait_32.png</file>
-        <file>ressource/pied_32.png</file>
-        <file>ressource/interdit_32.png</file>
-        <file>ressource/nage_32.png</file>
-        <file>ressource/loupe_32.png</file>
-        <file>ressource/param_32.png</file>
-        <file>ressource/attaque_32.png</file>
-        <file>ressource/creature_32.png</file>
-        <file>ressource/decor_32.png</file>
-        <file>ressource/paysage_32.png</file>
-        <file>ressource/mainCache_32.png</file>
-        <file>ressource/oeil_32.png</file>
-        <file>ressource/oeilBarre_32.png</file>
-        <file>ressource/oeilBarre2_32.png</file>
-        <file>ressource/carte_32.png</file>
-        <file>ressource/montagne_32.png</file>
-        <file>ressource/note_32.png</file>
-        <file>ressource/profil_32.png</file>
-        <file>ressource/deplacement_32.png</file>
-        <file>ressource/agrandir2_32.png</file>
-        <file>ressource/deplacement2_32.png</file>
-        <file>ressource/tableau_32.png</file>
-        <file>ressource/nouveauJoueur_32.png</file>
-    </qresource>
-    <qresource prefix="/interface/512" lang="fr">
-        <file>ressource/armes_512.png</file>
-        <file>ressource/dossier_512.png</file>
-        <file>ressource/plus_512.png</file>
-    </qresource>
-    <qresource prefix="/curseur" lang="fr"/>
-</RCC>