Quellcode durchsuchen

Poursuite de la création de la page "groupe"

unknown vor 10 Jahren
Ursprung
Commit
7b952c2692
8 geänderte Dateien mit 711 neuen und 120 gelöschten Zeilen
  1. 44 3
      DMonde.py
  2. 81 0
      lib/framePj.py
  3. 1 0
      lib/ui/convertPanneauPj.cmd
  4. 145 0
      lib/ui/ecran_panneauPj.py
  5. 33 31
      lib/ui/ecran_principal.py
  6. 104 86
      lib/ui/mainwindow.ui
  7. 303 0
      lib/ui/panneauPj.ui
  8. BIN
      parties/Partie1/groupe

+ 44 - 3
DMonde.py

@@ -16,7 +16,8 @@ from lib.ui.ecran_principal import Ui_principal
 from lib.EcranCreationPlateau import EcranCreationPlateau
 from lib.EcranFondPlateau import EcranFondPlateau
 from lib.Plateau import Plateau
-
+from lib.EcranEditionCombattant import EcranEditionCombattant
+from lib.framePj import FramePj
 from lib.outilsSvg import *
 
 from lib.Case import Case
@@ -59,6 +60,7 @@ class DMonde(QMainWindow):
         self.partie = "partie1"
         self.idPlateauEnCours = ""
         self.plateauConnecte = False
+        self._compteurPj = 0
         self.createWidgets()
         
     def createWidgets(self):
@@ -74,12 +76,22 @@ class DMonde(QMainWindow):
 
         self.majFichierInfosSvg()
         self.creerEcranFondPlateau()
+        self.chargerListePj()
+        self.connect(self.ui.grp_nouveauPj, SIGNAL("clicked()"), self.nouveauPj)
+##        self.ui.grp_deroulement_contenu.setStyleSheet("background-color: rgb(255,255,255)")
         
     def creerEcranFondPlateau(self):
         ecranFondPlateau = EcranFondPlateau(self)
         self.ui.cbt_vue.resetTransform()
         self.ui.cbt_vue.setScene(ecranFondPlateau)
-        
+
+    def chargerListePj(self):
+        listePj = chargerUnique("parties\\{}\\groupe".format(self.partie))
+        if not listePj: listePj = []
+        self.ui.grp_deroulement_layout.setAlignment(Qt.AlignTop)
+        for pj in listePj:
+            self.pjAjouterAListe(pj)
+
     def afficherEcranCreationPlateau(self):
         """ouvre la fenetre de creation de plateau"""
         valide = True
@@ -207,8 +219,37 @@ class DMonde(QMainWindow):
             for item in panneau.findChildren(QDoubleSpinBox):
                 item.setValue(0)                
 
+    def pjAjouterAListe(self, pj = None):
+        self._compteurPj += 1
+        panneau = FramePj(self._compteurPj)
+        if pj:
+            panneau.chargerPj(pj)
+        panneau.setObjectName(QString("pj_panneau_{}".format(self._compteurPj)))
+        self.connect(panneau, SIGNAL("pjModifie(int)"), self.pjEnregistrer)
+        self.ui.grp_deroulement_layout.addWidget(panneau)    
+
+    def pjSupprimer(self, index):
+        panneau = self.findChild(QFrame, "pj_panneau_{}".format(index))
+        self.ui.grp_deroulement_layout.removeWidget(panneau)
+
+    def nouveauPj(self):
+        self.editionPj = EcranEditionCombattant()
+        self.editionPj.setAttribute(Qt.WA_DeleteOnClose)
+        r = self.editionPj.exec_()
+        pj = self.editionPj.combattant
+        self.pjAjouterAListe(pj)
+        self.pjEnregistrer(self._compteurPj)
+
+    def pjEnregistrer(self, idPj):
+        listePj = chargerUnique("parties\\{}\\groupe".format(self.partie))
+        if not listePj: listePj = []
+        panneau = self.findChild(QFrame, "pj_panneau_{}".format(idPj))
+        pj = panneau.pj()
+        listePj.append(pj)
+        enregistrerUnique(listePj, "parties\\{}\\groupe".format(self.partie))
+
     def resizeEvent(self, event):
-        val = (self.ui.dm_panneauCentre.width() - 20)/3
+        val = (self.ui.dm_panneauCentre.width() - 20) / 3
         self.ui.dm_panneauCentre.setStyleSheet("QTabBar::tab { width: "+str(val)+"px; }")
         
         

+ 81 - 0
lib/framePj.py

@@ -0,0 +1,81 @@
+#from __future__ import unicode_literals
+# -*- coding: utf-8 -*-
+"""Panneau d'affichage des PJ dans l'onglet groupe
+"""
+import sys
+from PyQt4.QtCore import *
+from PyQt4.QtGui import *
+from ui.ecran_panneauPj import Ui_pj_panneau
+import regles
+from ui.dm import *
+from EcranEditionCombattant import EcranEditionCombattant
+
+
+class FramePj(QFrame):
+    """Panneau d'affichage du Pj
+        a inserer dans le layout de l'onglet groupe
+        de l'ecran principal"""
+    def __init__(self, idPj, parent=None):
+        super (FramePj, self).__init__(parent)
+        self.idPj = idPj
+        self._pj = None
+        self.enCreation = False
+        self.createWidgets()
+
+    def createWidgets(self):
+        """construction de l'interface"""
+        self.ui = Ui_pj_panneau()
+        self.ui.setupUi(self)
+##        self.ui.att_voile.setAttribute(Qt.WA_TransparentForMouseEvents)
+        for i in range(0, 6):
+            bouton = self.findChild(QPushButton, "pj_afficher_{}".format(i))
+            self.connect(bouton, SIGNAL("clicked()"), self.afficherFiche)
+
+    def signalerModif(self):
+        """on signale a la fenetre principale que le personnage a ete modifie"""
+        self.emit(SIGNAL("pjModifie()"), self.idPj)
+
+    def pj(self):
+        """retourne le pj represente"""
+        return self._pj
+
+    def chargerPj(self, pj = None):
+        """met a jour le contenu avec les donnees du pj en param"""
+        if pj:
+            self.ui.pj_image.chargerImage(pj.logo)
+            self.ui.pj_nom.majTexte(pj.nom)
+            for i in range(0, 6):
+                bouton = self.findChild(QPushButton, "pj_afficher_{}".format(i))
+                bouton.setEnabled(True)
+            self._pj = pj
+
+    def reinitialiser(self):
+        self.ui.pj_image.majImage("")
+        self.ui.pj_nom.majTexte("(Nouveau personnage...)")
+        for i in range(0, 6):
+            bouton = self.findChild(QPushButton, "pj_afficher_{}".format(i))
+            bouton.setEnabled(False)
+
+    def afficherFiche(self):
+        """affiche la fiche de perso a la page demandee"""
+        emetteur = self.sender().objectName()
+        page = int(str(emetteur)[-1:])
+        self.editionPj = EcranEditionCombattant(self._pj, page)
+        self.editionPj.setAttribute(Qt.WA_DeleteOnClose)
+        r = self.editionPj.exec_()
+        self._pj = self.editionPj.combattant
+        self.signalerModif()
+
+
+
+if __name__ == "__main__":
+   app = QApplication(sys.argv)
+   ecran = FramePj(0)
+   ecran.show()
+   r = app.exec_()
+   exit(r)  
+
+
+
+
+

+ 1 - 0
lib/ui/convertPanneauPj.cmd

@@ -0,0 +1 @@
+pyuic4 -x panneauPj.ui -o ecran_panneauPj.py

+ 145 - 0
lib/ui/ecran_panneauPj.py

@@ -0,0 +1,145 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'panneauPj.ui'
+#
+# Created: Thu Jun 25 16:48:37 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_pj_panneau(object):
+    def setupUi(self, pj_panneau):
+        pj_panneau.setObjectName(_fromUtf8("pj_panneau"))
+        pj_panneau.resize(695, 70)
+        font = QtGui.QFont()
+        font.setFamily(_fromUtf8("Verdana"))
+        pj_panneau.setFont(font)
+        pj_panneau.setFrameShape(QtGui.QFrame.StyledPanel)
+        pj_panneau.setFrameShadow(QtGui.QFrame.Raised)
+        self.horizontalLayout_2 = QtGui.QHBoxLayout(pj_panneau)
+        self.horizontalLayout_2.setMargin(2)
+        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
+        self.horizontalLayout = QtGui.QHBoxLayout()
+        self.horizontalLayout.setSpacing(12)
+        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
+        self.pj_image = DmLabel(pj_panneau)
+        self.pj_image.setMaximumSize(QtCore.QSize(60, 16777215))
+        self.pj_image.setFrameShape(QtGui.QFrame.StyledPanel)
+        self.pj_image.setFrameShadow(QtGui.QFrame.Raised)
+        self.pj_image.setText(_fromUtf8(""))
+        self.pj_image.setObjectName(_fromUtf8("pj_image"))
+        self.horizontalLayout.addWidget(self.pj_image)
+        self.pj_nom = DmLabel(pj_panneau)
+        font = QtGui.QFont()
+        font.setPointSize(9)
+        font.setBold(True)
+        font.setItalic(False)
+        font.setWeight(75)
+        self.pj_nom.setFont(font)
+        self.pj_nom.setMargin(3)
+        self.pj_nom.setObjectName(_fromUtf8("pj_nom"))
+        self.horizontalLayout.addWidget(self.pj_nom)
+        self.pj_afficher_0 = QtGui.QPushButton(pj_panneau)
+        self.pj_afficher_0.setEnabled(False)
+        self.pj_afficher_0.setMinimumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_0.setMaximumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_0.setText(_fromUtf8(""))
+        icon = QtGui.QIcon()
+        icon.addPixmap(QtGui.QPixmap(_fromUtf8("img/oeil.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        self.pj_afficher_0.setIcon(icon)
+        self.pj_afficher_0.setIconSize(QtCore.QSize(20, 20))
+        self.pj_afficher_0.setObjectName(_fromUtf8("pj_afficher_0"))
+        self.horizontalLayout.addWidget(self.pj_afficher_0)
+        self.pj_afficher_1 = QtGui.QPushButton(pj_panneau)
+        self.pj_afficher_1.setEnabled(False)
+        self.pj_afficher_1.setMinimumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_1.setMaximumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_1.setText(_fromUtf8(""))
+        icon1 = QtGui.QIcon()
+        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("img/btnZonePlacement.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        self.pj_afficher_1.setIcon(icon1)
+        self.pj_afficher_1.setIconSize(QtCore.QSize(20, 20))
+        self.pj_afficher_1.setObjectName(_fromUtf8("pj_afficher_1"))
+        self.horizontalLayout.addWidget(self.pj_afficher_1)
+        self.pj_afficher_2 = QtGui.QPushButton(pj_panneau)
+        self.pj_afficher_2.setEnabled(False)
+        self.pj_afficher_2.setMinimumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_2.setMaximumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_2.setText(_fromUtf8(""))
+        icon2 = QtGui.QIcon()
+        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("img/profil.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        self.pj_afficher_2.setIcon(icon2)
+        self.pj_afficher_2.setIconSize(QtCore.QSize(20, 20))
+        self.pj_afficher_2.setObjectName(_fromUtf8("pj_afficher_2"))
+        self.horizontalLayout.addWidget(self.pj_afficher_2)
+        self.pj_afficher_3 = QtGui.QPushButton(pj_panneau)
+        self.pj_afficher_3.setEnabled(False)
+        self.pj_afficher_3.setMinimumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_3.setMaximumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_3.setText(_fromUtf8(""))
+        icon3 = QtGui.QIcon()
+        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("img/attaque.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        self.pj_afficher_3.setIcon(icon3)
+        self.pj_afficher_3.setIconSize(QtCore.QSize(20, 20))
+        self.pj_afficher_3.setObjectName(_fromUtf8("pj_afficher_3"))
+        self.horizontalLayout.addWidget(self.pj_afficher_3)
+        self.pj_afficher_4 = QtGui.QPushButton(pj_panneau)
+        self.pj_afficher_4.setEnabled(False)
+        self.pj_afficher_4.setMinimumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_4.setMaximumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_4.setText(_fromUtf8(""))
+        icon4 = QtGui.QIcon()
+        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("img/sac.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        self.pj_afficher_4.setIcon(icon4)
+        self.pj_afficher_4.setIconSize(QtCore.QSize(20, 20))
+        self.pj_afficher_4.setObjectName(_fromUtf8("pj_afficher_4"))
+        self.horizontalLayout.addWidget(self.pj_afficher_4)
+        self.pj_afficher_5 = QtGui.QPushButton(pj_panneau)
+        self.pj_afficher_5.setEnabled(False)
+        self.pj_afficher_5.setMinimumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_5.setMaximumSize(QtCore.QSize(60, 60))
+        self.pj_afficher_5.setText(_fromUtf8(""))
+        icon5 = QtGui.QIcon()
+        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("img/note.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        self.pj_afficher_5.setIcon(icon5)
+        self.pj_afficher_5.setIconSize(QtCore.QSize(20, 20))
+        self.pj_afficher_5.setObjectName(_fromUtf8("pj_afficher_5"))
+        self.horizontalLayout.addWidget(self.pj_afficher_5)
+        spacerItem = QtGui.QSpacerItem(80, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
+        self.horizontalLayout.addItem(spacerItem)
+        self.horizontalLayout_2.addLayout(self.horizontalLayout)
+
+        self.retranslateUi(pj_panneau)
+        QtCore.QMetaObject.connectSlotsByName(pj_panneau)
+
+    def retranslateUi(self, pj_panneau):
+        pj_panneau.setWindowTitle(_translate("pj_panneau", "Frame", None))
+        self.pj_nom.setText(_translate("pj_panneau", "Nom PJ", None))
+
+from dm import DmLabel
+
+if __name__ == "__main__":
+    import sys
+    app = QtGui.QApplication(sys.argv)
+    pj_panneau = QtGui.QFrame()
+    ui = Ui_pj_panneau()
+    ui.setupUi(pj_panneau)
+    pj_panneau.show()
+    sys.exit(app.exec_())
+

+ 33 - 31
lib/ui/ecran_principal.py

@@ -2,7 +2,7 @@
 
 # Form implementation generated from reading ui file 'mainwindow.ui'
 #
-# Created: Tue Jun 23 17:39:56 2015
+# Created: Thu Jun 25 16:54:21 2015
 #      by: PyQt4 UI code generator 4.10.4
 #
 # WARNING! All changes made in this file will be lost!
@@ -1086,32 +1086,40 @@ class Ui_principal(object):
         self.dm_panneauCentre.addTab(self.Monde_tab, _fromUtf8(""))
         self.Groupe_tab = QtGui.QWidget()
         self.Groupe_tab.setObjectName(_fromUtf8("Groupe_tab"))
-        self.listePerso = QtGui.QListWidget(self.Groupe_tab)
-        self.listePerso.setGeometry(QtCore.QRect(10, 10, 961, 91))
+        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.Groupe_tab)
+        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
+        self.grp_deroulement = QtGui.QScrollArea(self.Groupe_tab)
+        self.grp_deroulement.setFrameShape(QtGui.QFrame.NoFrame)
+        self.grp_deroulement.setWidgetResizable(True)
+        self.grp_deroulement.setObjectName(_fromUtf8("grp_deroulement"))
+        self.grp_deroulement_contenu = QtGui.QWidget()
+        self.grp_deroulement_contenu.setGeometry(QtCore.QRect(0, 0, 879, 687))
         palette = QtGui.QPalette()
-        brush = QtGui.QBrush(QtGui.QColor(241, 241, 241))
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 0))
         brush.setStyle(QtCore.Qt.SolidPattern)
-        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
-        brush = QtGui.QBrush(QtGui.QColor(241, 241, 241))
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 0))
         brush.setStyle(QtCore.Qt.SolidPattern)
-        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
-        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240, 0))
         brush.setStyle(QtCore.Qt.SolidPattern)
-        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
-        self.listePerso.setPalette(palette)
-        self.listePerso.setLineWidth(1)
-        self.listePerso.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
-        self.listePerso.setEditTriggers(QtGui.QAbstractItemView.DoubleClicked)
-        self.listePerso.setFlow(QtGui.QListView.LeftToRight)
-        self.listePerso.setGridSize(QtCore.QSize(0, 0))
-        self.listePerso.setViewMode(QtGui.QListView.ListMode)
-        self.listePerso.setModelColumn(0)
-        self.listePerso.setUniformItemSizes(True)
-        self.listePerso.setObjectName(_fromUtf8("listePerso"))
-        item = QtGui.QListWidgetItem()
-        self.listePerso.addItem(item)
-        item = QtGui.QListWidgetItem()
-        self.listePerso.addItem(item)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
+        self.grp_deroulement_contenu.setPalette(palette)
+        self.grp_deroulement_contenu.setObjectName(_fromUtf8("grp_deroulement_contenu"))
+        self.grp_deroulement_layout = QtGui.QHBoxLayout(self.grp_deroulement_contenu)
+        self.grp_deroulement_layout.setMargin(2)
+        self.grp_deroulement_layout.setObjectName(_fromUtf8("grp_deroulement_layout"))
+        self.grp_deroulement.setWidget(self.grp_deroulement_contenu)
+        self.horizontalLayout_2.addWidget(self.grp_deroulement)
+        self.frame_2 = QtGui.QFrame(self.Groupe_tab)
+        self.frame_2.setMinimumSize(QtCore.QSize(50, 50))
+        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
+        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
+        self.frame_2.setObjectName(_fromUtf8("frame_2"))
+        self.grp_nouveauPj = QtGui.QPushButton(self.frame_2)
+        self.grp_nouveauPj.setGeometry(QtCore.QRect(10, 10, 31, 31))
+        self.grp_nouveauPj.setObjectName(_fromUtf8("grp_nouveauPj"))
+        self.horizontalLayout_2.addWidget(self.frame_2)
         self.dm_panneauCentre.addTab(self.Groupe_tab, _fromUtf8(""))
         self.horizontalLayout.addWidget(self.dm_panneauCentre)
         self.dm_panneauDroite = QtGui.QFrame(self.baseWidget)
@@ -1347,7 +1355,7 @@ class Ui_principal(object):
         self.menubar.addAction(self.menuAide.menuAction())
 
         self.retranslateUi(principal)
-        self.dm_panneauCentre.setCurrentIndex(0)
+        self.dm_panneauCentre.setCurrentIndex(2)
         self.cp_ongletsListes.setCurrentIndex(1)
         self.pi_ongletsListes.setCurrentIndex(3)
         self.tabStatutAppli.setCurrentIndex(2)
@@ -1512,13 +1520,7 @@ class Ui_principal(object):
         self.dessin.setText(_translate("principal", "Dessin", None))
         self.supp.setText(_translate("principal", "Supprimer", None))
         self.dm_panneauCentre.setTabText(self.dm_panneauCentre.indexOf(self.Monde_tab), _translate("principal", "Monde", None))
-        __sortingEnabled = self.listePerso.isSortingEnabled()
-        self.listePerso.setSortingEnabled(False)
-        item = self.listePerso.item(0)
-        item.setText(_translate("principal", "1", None))
-        item = self.listePerso.item(1)
-        item.setText(_translate("principal", "2", None))
-        self.listePerso.setSortingEnabled(__sortingEnabled)
+        self.grp_nouveauPj.setText(_translate("principal", "+", None))
         self.dm_panneauCentre.setTabText(self.dm_panneauCentre.indexOf(self.Groupe_tab), _translate("principal", "Groupe", None))
         self.label.setText(_translate("principal", "Evenements", None))
         self.d20.setText(_translate("principal", "D20", None))

+ 104 - 86
lib/ui/mainwindow.ui

@@ -39,7 +39,7 @@
        <bool>false</bool>
       </property>
       <property name="currentIndex">
-       <number>0</number>
+       <number>2</number>
       </property>
       <widget class="QWidget" name="Combats_tab">
        <attribute name="title">
@@ -3327,90 +3327,108 @@ selectionné</string>
        <attribute name="title">
         <string>Groupe</string>
        </attribute>
-       <widget class="QListWidget" name="listePerso">
-        <property name="geometry">
-         <rect>
-          <x>10</x>
-          <y>10</y>
-          <width>961</width>
-          <height>91</height>
-         </rect>
-        </property>
-        <property name="palette">
-         <palette>
-          <active>
-           <colorrole role="Base">
-            <brush brushstyle="SolidPattern">
-             <color alpha="255">
-              <red>241</red>
-              <green>241</green>
-              <blue>241</blue>
-             </color>
-            </brush>
-           </colorrole>
-          </active>
-          <inactive>
-           <colorrole role="Base">
-            <brush brushstyle="SolidPattern">
-             <color alpha="255">
-              <red>241</red>
-              <green>241</green>
-              <blue>241</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="lineWidth">
-         <number>1</number>
-        </property>
-        <property name="verticalScrollBarPolicy">
-         <enum>Qt::ScrollBarAlwaysOff</enum>
-        </property>
-        <property name="editTriggers">
-         <set>QAbstractItemView::DoubleClicked</set>
-        </property>
-        <property name="flow">
-         <enum>QListView::LeftToRight</enum>
-        </property>
-        <property name="gridSize">
-         <size>
-          <width>0</width>
-          <height>0</height>
-         </size>
-        </property>
-        <property name="viewMode">
-         <enum>QListView::ListMode</enum>
-        </property>
-        <property name="modelColumn">
-         <number>0</number>
-        </property>
-        <property name="uniformItemSizes">
-         <bool>true</bool>
-        </property>
+       <layout class="QHBoxLayout" name="horizontalLayout_2">
         <item>
-         <property name="text">
-          <string>1</string>
-         </property>
+         <widget class="QScrollArea" name="grp_deroulement">
+          <property name="frameShape">
+           <enum>QFrame::NoFrame</enum>
+          </property>
+          <property name="widgetResizable">
+           <bool>true</bool>
+          </property>
+          <widget class="QWidget" name="grp_deroulement_contenu">
+           <property name="geometry">
+            <rect>
+             <x>0</x>
+             <y>0</y>
+             <width>879</width>
+             <height>687</height>
+            </rect>
+           </property>
+           <property name="palette">
+            <palette>
+             <active>
+              <colorrole role="Button">
+               <brush brushstyle="SolidPattern">
+                <color alpha="0">
+                 <red>240</red>
+                 <green>240</green>
+                 <blue>240</blue>
+                </color>
+               </brush>
+              </colorrole>
+             </active>
+             <inactive>
+              <colorrole role="Button">
+               <brush brushstyle="SolidPattern">
+                <color alpha="0">
+                 <red>240</red>
+                 <green>240</green>
+                 <blue>240</blue>
+                </color>
+               </brush>
+              </colorrole>
+             </inactive>
+             <disabled>
+              <colorrole role="Button">
+               <brush brushstyle="SolidPattern">
+                <color alpha="0">
+                 <red>240</red>
+                 <green>240</green>
+                 <blue>240</blue>
+                </color>
+               </brush>
+              </colorrole>
+             </disabled>
+            </palette>
+           </property>
+           <layout class="QHBoxLayout" name="grp_deroulement_layout">
+            <property name="leftMargin">
+             <number>2</number>
+            </property>
+            <property name="topMargin">
+             <number>2</number>
+            </property>
+            <property name="rightMargin">
+             <number>2</number>
+            </property>
+            <property name="bottomMargin">
+             <number>2</number>
+            </property>
+           </layout>
+          </widget>
+         </widget>
         </item>
         <item>
-         <property name="text">
-          <string>2</string>
-         </property>
+         <widget class="QFrame" name="frame_2">
+          <property name="minimumSize">
+           <size>
+            <width>50</width>
+            <height>50</height>
+           </size>
+          </property>
+          <property name="frameShape">
+           <enum>QFrame::StyledPanel</enum>
+          </property>
+          <property name="frameShadow">
+           <enum>QFrame::Raised</enum>
+          </property>
+          <widget class="QPushButton" name="grp_nouveauPj">
+           <property name="geometry">
+            <rect>
+             <x>10</x>
+             <y>10</y>
+             <width>31</width>
+             <height>31</height>
+            </rect>
+           </property>
+           <property name="text">
+            <string>+</string>
+           </property>
+          </widget>
+         </widget>
         </item>
-       </widget>
+       </layout>
       </widget>
      </widget>
     </item>
@@ -4021,6 +4039,11 @@ selectionné</string>
   </action>
  </widget>
  <customwidgets>
+  <customwidget>
+   <class>DmLabel</class>
+   <extends>QLabel</extends>
+   <header location="global">dm.h</header>
+  </customwidget>
   <customwidget>
    <class>DmGraphicsView</class>
    <extends>QGraphicsView</extends>
@@ -4031,11 +4054,6 @@ selectionné</string>
    <extends>QTableWidget</extends>
    <header location="global">dm.h</header>
   </customwidget>
-  <customwidget>
-   <class>DmLabel</class>
-   <extends>QLabel</extends>
-   <header location="global">dm.h</header>
-  </customwidget>
   <customwidget>
    <class>DmTextEdit</class>
    <extends>QTextEdit</extends>

+ 303 - 0
lib/ui/panneauPj.ui

@@ -0,0 +1,303 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>pj_panneau</class>
+ <widget class="QFrame" name="pj_panneau">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>695</width>
+    <height>70</height>
+   </rect>
+  </property>
+  <property name="font">
+   <font>
+    <family>Verdana</family>
+   </font>
+  </property>
+  <property name="windowTitle">
+   <string>Frame</string>
+  </property>
+  <property name="frameShape">
+   <enum>QFrame::StyledPanel</enum>
+  </property>
+  <property name="frameShadow">
+   <enum>QFrame::Raised</enum>
+  </property>
+  <layout class="QHBoxLayout" name="horizontalLayout_2">
+   <property name="leftMargin">
+    <number>2</number>
+   </property>
+   <property name="topMargin">
+    <number>2</number>
+   </property>
+   <property name="rightMargin">
+    <number>2</number>
+   </property>
+   <property name="bottomMargin">
+    <number>2</number>
+   </property>
+   <item>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <property name="spacing">
+      <number>12</number>
+     </property>
+     <item>
+      <widget class="DmLabel" name="pj_image">
+       <property name="maximumSize">
+        <size>
+         <width>60</width>
+         <height>16777215</height>
+        </size>
+       </property>
+       <property name="frameShape">
+        <enum>QFrame::StyledPanel</enum>
+       </property>
+       <property name="frameShadow">
+        <enum>QFrame::Raised</enum>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="DmLabel" name="pj_nom">
+       <property name="font">
+        <font>
+         <pointsize>9</pointsize>
+         <weight>75</weight>
+         <italic>false</italic>
+         <bold>true</bold>
+        </font>
+       </property>
+       <property name="text">
+        <string>Nom PJ</string>
+       </property>
+       <property name="margin">
+        <number>3</number>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pj_afficher_0">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>img/oeil.png</normaloff>img/oeil.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pj_afficher_1">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>img/btnZonePlacement.png</normaloff>img/btnZonePlacement.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pj_afficher_2">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>img/profil.png</normaloff>img/profil.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pj_afficher_3">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>img/attaque.png</normaloff>img/attaque.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pj_afficher_4">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>img/sac.png</normaloff>img/sac.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QPushButton" name="pj_afficher_5">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>60</width>
+         <height>60</height>
+        </size>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="icon">
+        <iconset>
+         <normaloff>img/note.png</normaloff>img/note.png</iconset>
+       </property>
+       <property name="iconSize">
+        <size>
+         <width>20</width>
+         <height>20</height>
+        </size>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="horizontalSpacer">
+       <property name="orientation">
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeType">
+        <enum>QSizePolicy::Fixed</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>80</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>DmLabel</class>
+   <extends>QLabel</extends>
+   <header location="global">dm.h</header>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>

BIN
parties/Partie1/groupe