Forráskód Böngészése

Creation d'un systeme d'onglets horizontaux
assez stylé pour l'edition de pions

Signed-off-by: unknown <olivier.massot@DSI5301067.cg67.fr>

unknown 10 éve
szülő
commit
e1296c8455
4 módosított fájl, 929 hozzáadás és 1 törlés
  1. 1 0
      lib/ui/convertOnglets.cmd
  2. 11 1
      lib/ui/dm.py
  3. 304 0
      lib/ui/dmOngletsH.py
  4. 613 0
      lib/ui/dmOngletsH.ui

+ 1 - 0
lib/ui/convertOnglets.cmd

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

+ 11 - 1
lib/ui/dm.py

@@ -3,7 +3,7 @@
 """ensemble des widgets surchargés"""
 """ensemble des widgets surchargés"""
 from PyQt4.QtCore import *
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 from PyQt4.QtGui import *
-from lib.outilsSvg import *
+##from lib.outilsSvg import *
 
 
 class DmLabel(QLabel):
 class DmLabel(QLabel):
     """surcharge de QLabel"""
     """surcharge de QLabel"""
@@ -190,6 +190,16 @@ class DmTableAttributsPi(DmTableWidget):
             objet = charger(self.fichier, str(index.text().toUtf8()))
             objet = charger(self.fichier, str(index.text().toUtf8()))
         return objet
         return objet
 
 
+class DmTableMenu(QTableWidget):
+    """table utilisee comme barre d'onglets verticale"""
+    def __init__(self, parent = None):
+        super(DmTableMenu, self).__init__(parent)
+      
+    def setItem(self, ligne, colonne, item):
+        super(DmTableMenu, self).setItem(ligne, colonne, item)
+        if ligne == 0:
+            self.setItemSelected(item, True)
+            
 
 
 class DmFrameInf_Combattant(QGroupBox):
 class DmFrameInf_Combattant(QGroupBox):
     """frame d'information (combattant)"""
     """frame d'information (combattant)"""

+ 304 - 0
lib/ui/dmOngletsH.py

@@ -0,0 +1,304 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'dmOngletsH.ui'
+#
+# Created: Thu Jun 04 14:47:48 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_ecran_creationPion(object):
+    def setupUi(self, ecran_creationPion):
+        ecran_creationPion.setObjectName(_fromUtf8("ecran_creationPion"))
+        ecran_creationPion.setWindowModality(QtCore.Qt.ApplicationModal)
+        ecran_creationPion.resize(598, 470)
+        ecran_creationPion.setMaximumSize(QtCore.QSize(16777215, 470))
+        self.horizontalLayout_2 = QtGui.QHBoxLayout(ecran_creationPion)
+        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
+        self.horizontalLayout = QtGui.QHBoxLayout()
+        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
+        self.menu = DmTableMenu(ecran_creationPion)
+        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
+        sizePolicy.setHorizontalStretch(0)
+        sizePolicy.setVerticalStretch(0)
+        sizePolicy.setHeightForWidth(self.menu.sizePolicy().hasHeightForWidth())
+        self.menu.setSizePolicy(sizePolicy)
+        self.menu.setMinimumSize(QtCore.QSize(165, 450))
+        self.menu.setMaximumSize(QtCore.QSize(165, 450))
+        palette = QtGui.QPalette()
+        brush = QtGui.QBrush(QtGui.QColor(6, 6, 6))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)
+        brush = QtGui.QBrush(QtGui.QColor(190, 190, 190))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush)
+        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)
+        brush = QtGui.QBrush(QtGui.QColor(140, 140, 140))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Highlight, brush)
+        brush = QtGui.QBrush(QtGui.QColor(7, 7, 7))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.HighlightedText, brush)
+        brush = QtGui.QBrush(QtGui.QColor(6, 6, 6))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)
+        brush = QtGui.QBrush(QtGui.QColor(190, 190, 190))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush)
+        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)
+        brush = QtGui.QBrush(QtGui.QColor(140, 140, 140))
+        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.Inactive, QtGui.QPalette.Highlight, brush)
+        brush = QtGui.QBrush(QtGui.QColor(7, 7, 7))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.HighlightedText, brush)
+        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)
+        brush = QtGui.QBrush(QtGui.QColor(190, 190, 190))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush)
+        brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)
+        brush = QtGui.QBrush(QtGui.QColor(240, 240, 240))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
+        brush = QtGui.QBrush(QtGui.QColor(51, 153, 255))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Highlight, brush)
+        brush = QtGui.QBrush(QtGui.QColor(7, 7, 7))
+        brush.setStyle(QtCore.Qt.SolidPattern)
+        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.HighlightedText, brush)
+        self.menu.setPalette(palette)
+        font = QtGui.QFont()
+        font.setFamily(_fromUtf8("Candara"))
+        font.setPointSize(13)
+        font.setBold(False)
+        font.setWeight(50)
+        self.menu.setFont(font)
+        self.menu.setFocusPolicy(QtCore.Qt.NoFocus)
+        self.menu.setFrameShape(QtGui.QFrame.StyledPanel)
+        self.menu.setFrameShadow(QtGui.QFrame.Sunken)
+        self.menu.setLineWidth(0)
+        self.menu.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
+        self.menu.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
+        self.menu.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
+        self.menu.setProperty("showDropIndicator", False)
+        self.menu.setDragDropOverwriteMode(False)
+        self.menu.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
+        self.menu.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
+        self.menu.setIconSize(QtCore.QSize(30, 30))
+        self.menu.setShowGrid(False)
+        self.menu.setGridStyle(QtCore.Qt.SolidLine)
+        self.menu.setCornerButtonEnabled(False)
+        self.menu.setObjectName(_fromUtf8("menu"))
+        self.menu.setColumnCount(2)
+        self.menu.setRowCount(6)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setVerticalHeaderItem(0, item)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setVerticalHeaderItem(1, item)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setVerticalHeaderItem(2, item)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setVerticalHeaderItem(3, item)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setVerticalHeaderItem(4, item)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setVerticalHeaderItem(5, item)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setHorizontalHeaderItem(0, item)
+        item = QtGui.QTableWidgetItem()
+        self.menu.setHorizontalHeaderItem(1, item)
+        item = QtGui.QTableWidgetItem()
+        item.setFlags(QtCore.Qt.ItemIsSelectable)
+        self.menu.setItem(0, 0, item)
+        item = QtGui.QTableWidgetItem()
+        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
+        icon = QtGui.QIcon()
+        icon.addPixmap(QtGui.QPixmap(_fromUtf8("img/oeil.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        item.setIcon(icon)
+        item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsEnabled|QtCore.Qt.ItemIsTristate)
+        self.menu.setItem(0, 1, item)
+        item = QtGui.QTableWidgetItem()
+        item.setFlags(QtCore.Qt.ItemIsSelectable)
+        self.menu.setItem(1, 0, item)
+        item = QtGui.QTableWidgetItem()
+        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
+        icon1 = QtGui.QIcon()
+        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("img/btnZonePlacement.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        item.setIcon(icon1)
+        item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
+        self.menu.setItem(1, 1, item)
+        item = QtGui.QTableWidgetItem()
+        item.setFlags(QtCore.Qt.ItemIsSelectable)
+        self.menu.setItem(2, 0, item)
+        item = QtGui.QTableWidgetItem()
+        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
+        icon2 = QtGui.QIcon()
+        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("img/profil.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        item.setIcon(icon2)
+        item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsEnabled)
+        self.menu.setItem(2, 1, item)
+        item = QtGui.QTableWidgetItem()
+        item.setFlags(QtCore.Qt.ItemIsSelectable)
+        self.menu.setItem(3, 0, item)
+        item = QtGui.QTableWidgetItem()
+        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
+        icon3 = QtGui.QIcon()
+        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("img/attaque.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        item.setIcon(icon3)
+        item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsEnabled)
+        self.menu.setItem(3, 1, item)
+        item = QtGui.QTableWidgetItem()
+        item.setFlags(QtCore.Qt.ItemIsSelectable)
+        self.menu.setItem(4, 0, item)
+        item = QtGui.QTableWidgetItem()
+        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
+        icon4 = QtGui.QIcon()
+        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("img/sac.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        item.setIcon(icon4)
+        item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsEnabled)
+        self.menu.setItem(4, 1, item)
+        item = QtGui.QTableWidgetItem()
+        item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsEnabled)
+        self.menu.setItem(5, 0, item)
+        item = QtGui.QTableWidgetItem()
+        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
+        icon5 = QtGui.QIcon()
+        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("img/note.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+        item.setIcon(icon5)
+        item.setFlags(QtCore.Qt.ItemIsSelectable|QtCore.Qt.ItemIsEnabled)
+        self.menu.setItem(5, 1, item)
+        self.menu.horizontalHeader().setVisible(False)
+        self.menu.horizontalHeader().setDefaultSectionSize(10)
+        self.menu.horizontalHeader().setHighlightSections(False)
+        self.menu.horizontalHeader().setStretchLastSection(True)
+        self.menu.verticalHeader().setVisible(False)
+        self.menu.verticalHeader().setDefaultSectionSize(75)
+        self.menu.verticalHeader().setHighlightSections(False)
+        self.horizontalLayout.addWidget(self.menu)
+        self.pages = QtGui.QStackedWidget(ecran_creationPion)
+        self.pages.setObjectName(_fromUtf8("pages"))
+        self.page = QtGui.QWidget()
+        self.page.setObjectName(_fromUtf8("page"))
+        self.label = QtGui.QLabel(self.page)
+        self.label.setGeometry(QtCore.QRect(80, 30, 46, 13))
+        self.label.setObjectName(_fromUtf8("label"))
+        self.pages.addWidget(self.page)
+        self.page_2 = QtGui.QWidget()
+        self.page_2.setObjectName(_fromUtf8("page_2"))
+        self.label_2 = QtGui.QLabel(self.page_2)
+        self.label_2.setGeometry(QtCore.QRect(160, 80, 46, 13))
+        self.label_2.setObjectName(_fromUtf8("label_2"))
+        self.pages.addWidget(self.page_2)
+        self.page_3 = QtGui.QWidget()
+        self.page_3.setObjectName(_fromUtf8("page_3"))
+        self.label_3 = QtGui.QLabel(self.page_3)
+        self.label_3.setGeometry(QtCore.QRect(230, 80, 46, 13))
+        self.label_3.setObjectName(_fromUtf8("label_3"))
+        self.pages.addWidget(self.page_3)
+        self.page_4 = QtGui.QWidget()
+        self.page_4.setObjectName(_fromUtf8("page_4"))
+        self.label_4 = QtGui.QLabel(self.page_4)
+        self.label_4.setGeometry(QtCore.QRect(200, 190, 46, 13))
+        self.label_4.setObjectName(_fromUtf8("label_4"))
+        self.pages.addWidget(self.page_4)
+        self.page_5 = QtGui.QWidget()
+        self.page_5.setObjectName(_fromUtf8("page_5"))
+        self.label_5 = QtGui.QLabel(self.page_5)
+        self.label_5.setGeometry(QtCore.QRect(160, 190, 46, 13))
+        self.label_5.setObjectName(_fromUtf8("label_5"))
+        self.pages.addWidget(self.page_5)
+        self.page_6 = QtGui.QWidget()
+        self.page_6.setObjectName(_fromUtf8("page_6"))
+        self.label_6 = QtGui.QLabel(self.page_6)
+        self.label_6.setGeometry(QtCore.QRect(170, 210, 46, 13))
+        self.label_6.setObjectName(_fromUtf8("label_6"))
+        self.pages.addWidget(self.page_6)
+        self.horizontalLayout.addWidget(self.pages)
+        self.horizontalLayout_2.addLayout(self.horizontalLayout)
+
+        self.retranslateUi(ecran_creationPion)
+        self.pages.setCurrentIndex(5)
+        QtCore.QObject.connect(self.menu, QtCore.SIGNAL(_fromUtf8("cellClicked(int,int)")), self.pages.setCurrentIndex)
+        QtCore.QMetaObject.connectSlotsByName(ecran_creationPion)
+
+    def retranslateUi(self, ecran_creationPion):
+        ecran_creationPion.setWindowTitle(_translate("ecran_creationPion", "Creation / Edition de pion", None))
+        item = self.menu.verticalHeaderItem(0)
+        item.setText(_translate("ecran_creationPion", "1", None))
+        item = self.menu.verticalHeaderItem(1)
+        item.setText(_translate("ecran_creationPion", "2", None))
+        item = self.menu.verticalHeaderItem(2)
+        item.setText(_translate("ecran_creationPion", "3", None))
+        item = self.menu.verticalHeaderItem(3)
+        item.setText(_translate("ecran_creationPion", "4", None))
+        item = self.menu.verticalHeaderItem(4)
+        item.setText(_translate("ecran_creationPion", "5", None))
+        item = self.menu.verticalHeaderItem(5)
+        item.setText(_translate("ecran_creationPion", "6", None))
+        item = self.menu.horizontalHeaderItem(0)
+        item.setText(_translate("ecran_creationPion", "inutile", None))
+        item = self.menu.horizontalHeaderItem(1)
+        item.setText(_translate("ecran_creationPion", "menus", None))
+        __sortingEnabled = self.menu.isSortingEnabled()
+        self.menu.setSortingEnabled(False)
+        item = self.menu.item(0, 1)
+        item.setText(_translate("ecran_creationPion", " APPARENCE ", None))
+        item = self.menu.item(1, 1)
+        item.setText(_translate("ecran_creationPion", " DEPLACEMENT ", None))
+        item = self.menu.item(2, 1)
+        item.setText(_translate("ecran_creationPion", " ATTRIBUTS ", None))
+        item = self.menu.item(3, 1)
+        item.setText(_translate("ecran_creationPion", " ATTAQUES ", None))
+        item = self.menu.item(4, 1)
+        item.setText(_translate("ecran_creationPion", " INVENTAIRE ", None))
+        item = self.menu.item(5, 1)
+        item.setText(_translate("ecran_creationPion", " NOTES ", None))
+        self.menu.setSortingEnabled(__sortingEnabled)
+        self.label.setText(_translate("ecran_creationPion", "Page 1", None))
+        self.label_2.setText(_translate("ecran_creationPion", "Page 2", None))
+        self.label_3.setText(_translate("ecran_creationPion", "Page 3", None))
+        self.label_4.setText(_translate("ecran_creationPion", "Page 4", None))
+        self.label_5.setText(_translate("ecran_creationPion", "Page 5", None))
+        self.label_6.setText(_translate("ecran_creationPion", "Page 6", None))
+
+from dm import DmTableMenu
+
+if __name__ == "__main__":
+    import sys
+    app = QtGui.QApplication(sys.argv)
+    ecran_creationPion = QtGui.QDialog()
+    ui = Ui_ecran_creationPion()
+    ui.setupUi(ecran_creationPion)
+    ecran_creationPion.show()
+    sys.exit(app.exec_())
+

+ 613 - 0
lib/ui/dmOngletsH.ui

@@ -0,0 +1,613 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ecran_creationPion</class>
+ <widget class="QDialog" name="ecran_creationPion">
+  <property name="windowModality">
+   <enum>Qt::ApplicationModal</enum>
+  </property>
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>598</width>
+    <height>452</height>
+   </rect>
+  </property>
+  <property name="maximumSize">
+   <size>
+    <width>16777215</width>
+    <height>452</height>
+   </size>
+  </property>
+  <property name="windowTitle">
+   <string>Creation / Edition de pion</string>
+  </property>
+  <layout class="QHBoxLayout" name="horizontalLayout_2">
+   <property name="leftMargin">
+    <number>0</number>
+   </property>
+   <property name="topMargin">
+    <number>0</number>
+   </property>
+   <property name="bottomMargin">
+    <number>0</number>
+   </property>
+   <item>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <item>
+      <widget class="DmTableMenu" name="menu">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>165</width>
+         <height>450</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>165</width>
+         <height>450</height>
+        </size>
+       </property>
+       <property name="palette">
+        <palette>
+         <active>
+          <colorrole role="WindowText">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>6</red>
+             <green>6</green>
+             <blue>6</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Mid">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>190</red>
+             <green>190</green>
+             <blue>190</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Text">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>255</red>
+             <green>255</green>
+             <blue>255</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Base">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>140</red>
+             <green>140</green>
+             <blue>140</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Highlight">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>240</red>
+             <green>240</green>
+             <blue>240</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="HighlightedText">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>7</red>
+             <green>7</green>
+             <blue>7</blue>
+            </color>
+           </brush>
+          </colorrole>
+         </active>
+         <inactive>
+          <colorrole role="WindowText">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>6</red>
+             <green>6</green>
+             <blue>6</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Mid">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>190</red>
+             <green>190</green>
+             <blue>190</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Text">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>255</red>
+             <green>255</green>
+             <blue>255</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Base">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>140</red>
+             <green>140</green>
+             <blue>140</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Highlight">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>240</red>
+             <green>240</green>
+             <blue>240</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="HighlightedText">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>7</red>
+             <green>7</green>
+             <blue>7</blue>
+            </color>
+           </brush>
+          </colorrole>
+         </inactive>
+         <disabled>
+          <colorrole role="WindowText">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>120</red>
+             <green>120</green>
+             <blue>120</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Mid">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>190</red>
+             <green>190</green>
+             <blue>190</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Text">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>120</red>
+             <green>120</green>
+             <blue>120</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Base">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>240</red>
+             <green>240</green>
+             <blue>240</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="Highlight">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>51</red>
+             <green>153</green>
+             <blue>255</blue>
+            </color>
+           </brush>
+          </colorrole>
+          <colorrole role="HighlightedText">
+           <brush brushstyle="SolidPattern">
+            <color alpha="255">
+             <red>7</red>
+             <green>7</green>
+             <blue>7</blue>
+            </color>
+           </brush>
+          </colorrole>
+         </disabled>
+        </palette>
+       </property>
+       <property name="font">
+        <font>
+         <family>Candara</family>
+         <pointsize>13</pointsize>
+         <weight>50</weight>
+         <bold>false</bold>
+        </font>
+       </property>
+       <property name="focusPolicy">
+        <enum>Qt::NoFocus</enum>
+       </property>
+       <property name="frameShape">
+        <enum>QFrame::StyledPanel</enum>
+       </property>
+       <property name="frameShadow">
+        <enum>QFrame::Sunken</enum>
+       </property>
+       <property name="lineWidth">
+        <number>0</number>
+       </property>
+       <property name="verticalScrollBarPolicy">
+        <enum>Qt::ScrollBarAlwaysOff</enum>
+       </property>
+       <property name="horizontalScrollBarPolicy">
+        <enum>Qt::ScrollBarAlwaysOff</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="iconSize">
+        <size>
+         <width>30</width>
+         <height>30</height>
+        </size>
+       </property>
+       <property name="showGrid">
+        <bool>false</bool>
+       </property>
+       <property name="gridStyle">
+        <enum>Qt::SolidLine</enum>
+       </property>
+       <property name="cornerButtonEnabled">
+        <bool>false</bool>
+       </property>
+       <attribute name="horizontalHeaderVisible">
+        <bool>false</bool>
+       </attribute>
+       <attribute name="horizontalHeaderDefaultSectionSize">
+        <number>10</number>
+       </attribute>
+       <attribute name="horizontalHeaderHighlightSections">
+        <bool>false</bool>
+       </attribute>
+       <attribute name="horizontalHeaderStretchLastSection">
+        <bool>true</bool>
+       </attribute>
+       <attribute name="verticalHeaderVisible">
+        <bool>false</bool>
+       </attribute>
+       <attribute name="verticalHeaderDefaultSectionSize">
+        <number>75</number>
+       </attribute>
+       <attribute name="verticalHeaderHighlightSections">
+        <bool>false</bool>
+       </attribute>
+       <row>
+        <property name="text">
+         <string>1</string>
+        </property>
+       </row>
+       <row>
+        <property name="text">
+         <string>2</string>
+        </property>
+       </row>
+       <row>
+        <property name="text">
+         <string>3</string>
+        </property>
+       </row>
+       <row>
+        <property name="text">
+         <string>4</string>
+        </property>
+       </row>
+       <row>
+        <property name="text">
+         <string>5</string>
+        </property>
+       </row>
+       <row>
+        <property name="text">
+         <string>6</string>
+        </property>
+       </row>
+       <column>
+        <property name="text">
+         <string>inutile</string>
+        </property>
+       </column>
+       <column>
+        <property name="text">
+         <string>menus</string>
+        </property>
+       </column>
+       <item row="0" column="0">
+        <property name="text">
+         <string/>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable</set>
+        </property>
+       </item>
+       <item row="0" column="1">
+        <property name="text">
+         <string> APPARENCE </string>
+        </property>
+        <property name="textAlignment">
+         <set>AlignHCenter|AlignVCenter|AlignCenter</set>
+        </property>
+        <property name="icon">
+         <iconset>
+          <normaloff>img/oeil.png</normaloff>img/oeil.png</iconset>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable|ItemIsEnabled|ItemIsTristate</set>
+        </property>
+       </item>
+       <item row="1" column="0">
+        <property name="text">
+         <string/>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable</set>
+        </property>
+       </item>
+       <item row="1" column="1">
+        <property name="text">
+         <string> DEPLACEMENT </string>
+        </property>
+        <property name="textAlignment">
+         <set>AlignHCenter|AlignVCenter|AlignCenter</set>
+        </property>
+        <property name="icon">
+         <iconset>
+          <normaloff>img/btnZonePlacement.png</normaloff>img/btnZonePlacement.png</iconset>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable|ItemIsUserCheckable|ItemIsEnabled</set>
+        </property>
+       </item>
+       <item row="2" column="0">
+        <property name="text">
+         <string/>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable</set>
+        </property>
+       </item>
+       <item row="2" column="1">
+        <property name="text">
+         <string> ATTRIBUTS </string>
+        </property>
+        <property name="textAlignment">
+         <set>AlignHCenter|AlignVCenter|AlignCenter</set>
+        </property>
+        <property name="icon">
+         <iconset>
+          <normaloff>img/profil.png</normaloff>img/profil.png</iconset>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable|ItemIsEnabled</set>
+        </property>
+       </item>
+       <item row="3" column="0">
+        <property name="text">
+         <string/>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable</set>
+        </property>
+       </item>
+       <item row="3" column="1">
+        <property name="text">
+         <string> ATTAQUES </string>
+        </property>
+        <property name="textAlignment">
+         <set>AlignHCenter|AlignVCenter|AlignCenter</set>
+        </property>
+        <property name="icon">
+         <iconset>
+          <normaloff>img/attaque.png</normaloff>img/attaque.png</iconset>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable|ItemIsEnabled</set>
+        </property>
+       </item>
+       <item row="4" column="0">
+        <property name="text">
+         <string/>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable</set>
+        </property>
+       </item>
+       <item row="4" column="1">
+        <property name="text">
+         <string> INVENTAIRE </string>
+        </property>
+        <property name="textAlignment">
+         <set>AlignHCenter|AlignVCenter|AlignCenter</set>
+        </property>
+        <property name="icon">
+         <iconset>
+          <normaloff>img/sac.png</normaloff>img/sac.png</iconset>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable|ItemIsEnabled</set>
+        </property>
+       </item>
+       <item row="5" column="0">
+        <property name="text">
+         <string/>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable|ItemIsEnabled</set>
+        </property>
+       </item>
+       <item row="5" column="1">
+        <property name="text">
+         <string> NOTES </string>
+        </property>
+        <property name="textAlignment">
+         <set>AlignHCenter|AlignVCenter|AlignCenter</set>
+        </property>
+        <property name="icon">
+         <iconset>
+          <normaloff>img/note.png</normaloff>img/note.png</iconset>
+        </property>
+        <property name="flags">
+         <set>ItemIsSelectable|ItemIsEnabled</set>
+        </property>
+       </item>
+      </widget>
+     </item>
+     <item>
+      <widget class="QStackedWidget" name="pages">
+       <property name="currentIndex">
+        <number>5</number>
+       </property>
+       <widget class="QWidget" name="page">
+        <widget class="QLabel" name="label">
+         <property name="geometry">
+          <rect>
+           <x>80</x>
+           <y>30</y>
+           <width>46</width>
+           <height>13</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Page 1</string>
+         </property>
+        </widget>
+       </widget>
+       <widget class="QWidget" name="page_2">
+        <widget class="QLabel" name="label_2">
+         <property name="geometry">
+          <rect>
+           <x>160</x>
+           <y>80</y>
+           <width>46</width>
+           <height>13</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Page 2</string>
+         </property>
+        </widget>
+       </widget>
+       <widget class="QWidget" name="page_3">
+        <widget class="QLabel" name="label_3">
+         <property name="geometry">
+          <rect>
+           <x>230</x>
+           <y>80</y>
+           <width>46</width>
+           <height>13</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Page 3</string>
+         </property>
+        </widget>
+       </widget>
+       <widget class="QWidget" name="page_4">
+        <widget class="QLabel" name="label_4">
+         <property name="geometry">
+          <rect>
+           <x>200</x>
+           <y>190</y>
+           <width>46</width>
+           <height>13</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Page 4</string>
+         </property>
+        </widget>
+       </widget>
+       <widget class="QWidget" name="page_5">
+        <widget class="QLabel" name="label_5">
+         <property name="geometry">
+          <rect>
+           <x>160</x>
+           <y>190</y>
+           <width>46</width>
+           <height>13</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Page 5</string>
+         </property>
+        </widget>
+       </widget>
+       <widget class="QWidget" name="page_6">
+        <widget class="QLabel" name="label_6">
+         <property name="geometry">
+          <rect>
+           <x>170</x>
+           <y>210</y>
+           <width>46</width>
+           <height>13</height>
+          </rect>
+         </property>
+         <property name="text">
+          <string>Page 6</string>
+         </property>
+        </widget>
+       </widget>
+      </widget>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <customwidgets>
+  <customwidget>
+   <class>DmTableMenu</class>
+   <extends>QTableWidget</extends>
+   <header location="global">dm.h</header>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>menu</sender>
+   <signal>cellClicked(int,int)</signal>
+   <receiver>pages</receiver>
+   <slot>setCurrentIndex(int)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>80</x>
+     <y>164</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>312</x>
+     <y>164</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>