# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'editionObjet.ui'
#
# Created: Fri Jun 19 12:49:18 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_eo_fenetre(object):
    def setupUi(self, eo_fenetre):
        eo_fenetre.setObjectName(_fromUtf8("eo_fenetre"))
        eo_fenetre.resize(479, 237)
        self.eo_nom = DmLineEdit(eo_fenetre)
        self.eo_nom.setGeometry(QtCore.QRect(70, 10, 241, 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.eo_nom.setPalette(palette)
        self.eo_nom.setObjectName(_fromUtf8("eo_nom"))
        self.label = QtGui.QLabel(eo_fenetre)
        self.label.setGeometry(QtCore.QRect(30, 12, 41, 21))
        self.label.setObjectName(_fromUtf8("label"))
        self.eo_quantite = QtGui.QSpinBox(eo_fenetre)
        self.eo_quantite.setGeometry(QtCore.QRect(90, 50, 71, 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.eo_quantite.setPalette(palette)
        self.eo_quantite.setMaximum(1000000)
        self.eo_quantite.setProperty("value", 1)
        self.eo_quantite.setObjectName(_fromUtf8("eo_quantite"))
        self.label_2 = QtGui.QLabel(eo_fenetre)
        self.label_2.setGeometry(QtCore.QRect(30, 50, 61, 31))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.eo_poids = QtGui.QSpinBox(eo_fenetre)
        self.eo_poids.setGeometry(QtCore.QRect(130, 140, 71, 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.eo_poids.setPalette(palette)
        self.eo_poids.setMaximum(1000000)
        self.eo_poids.setProperty("value", 1)
        self.eo_poids.setObjectName(_fromUtf8("eo_poids"))
        self.label_3 = QtGui.QLabel(eo_fenetre)
        self.label_3.setGeometry(QtCore.QRect(30, 140, 101, 31))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.label_4 = QtGui.QLabel(eo_fenetre)
        self.label_4.setGeometry(QtCore.QRect(250, 140, 101, 31))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.eo_valeur = QtGui.QSpinBox(eo_fenetre)
        self.eo_valeur.setGeometry(QtCore.QRect(350, 140, 71, 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.eo_valeur.setPalette(palette)
        self.eo_valeur.setMaximum(1000000)
        self.eo_valeur.setProperty("value", 1)
        self.eo_valeur.setObjectName(_fromUtf8("eo_valeur"))
        self.eo_consommable = QtGui.QCheckBox(eo_fenetre)
        self.eo_consommable.setGeometry(QtCore.QRect(310, 50, 101, 17))
        self.eo_consommable.setObjectName(_fromUtf8("eo_consommable"))
        self.label_5 = QtGui.QLabel(eo_fenetre)
        self.label_5.setGeometry(QtCore.QRect(280, 70, 211, 41))
        font = QtGui.QFont()
        font.setItalic(True)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.eo_enregistrer = QtGui.QPushButton(eo_fenetre)
        self.eo_enregistrer.setGeometry(QtCore.QRect(350, 190, 111, 31))
        self.eo_enregistrer.setObjectName(_fromUtf8("eo_enregistrer"))
        self.eo_annuler = QtGui.QPushButton(eo_fenetre)
        self.eo_annuler.setGeometry(QtCore.QRect(230, 190, 111, 31))
        self.eo_annuler.setObjectName(_fromUtf8("eo_annuler"))
        self.eo_type = QtGui.QComboBox(eo_fenetre)
        self.eo_type.setGeometry(QtCore.QRect(110, 90, 131, 31))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.eo_type.setFont(font)
        self.eo_type.setObjectName(_fromUtf8("eo_type"))
        self.eo_type.addItem(_fromUtf8(""))
        self.eo_type.addItem(_fromUtf8(""))
        self.eo_type.addItem(_fromUtf8(""))
        self.eo_type.addItem(_fromUtf8(""))
        self.eo_type.addItem(_fromUtf8(""))
        self.label_6 = QtGui.QLabel(eo_fenetre)
        self.label_6.setGeometry(QtCore.QRect(30, 90, 71, 31))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.eo_ajouter = QtGui.QPushButton(eo_fenetre)
        self.eo_ajouter.setGeometry(QtCore.QRect(180, 50, 31, 31))
        self.eo_ajouter.setObjectName(_fromUtf8("eo_ajouter"))
        self.eo_retirer = QtGui.QPushButton(eo_fenetre)
        self.eo_retirer.setGeometry(QtCore.QRect(220, 50, 31, 31))
        self.eo_retirer.setObjectName(_fromUtf8("eo_retirer"))
        self.eo_monnaie = DmLabel(eo_fenetre)
        self.eo_monnaie.setGeometry(QtCore.QRect(430, 150, 46, 13))
        self.eo_monnaie.setObjectName(_fromUtf8("eo_monnaie"))
        self.eo_supprimer = QtGui.QPushButton(eo_fenetre)
        self.eo_supprimer.setGeometry(QtCore.QRect(10, 190, 111, 31))
        self.eo_supprimer.setObjectName(_fromUtf8("eo_supprimer"))

        self.retranslateUi(eo_fenetre)
        QtCore.QMetaObject.connectSlotsByName(eo_fenetre)

    def retranslateUi(self, eo_fenetre):
        eo_fenetre.setWindowTitle(_translate("eo_fenetre", "Créer / éditer un objet", None))
        self.label.setText(_translate("eo_fenetre", "Nom: ", None))
        self.label_2.setText(_translate("eo_fenetre", "Quantité : ", None))
        self.label_3.setText(_translate("eo_fenetre", "Poids d\'un objet : ", None))
        self.label_4.setText(_translate("eo_fenetre", "Valeur d\'un objet : ", None))
        self.eo_consommable.setText(_translate("eo_fenetre", "Consommable", None))
        self.label_5.setText(_translate("eo_fenetre", "(la quantité diminue de 1 à l\'utilisation;\n"
"seuls les consommables apparaissent\n"
"dans l\'inventaire rapide lors d\'iun combat)", None))
        self.eo_enregistrer.setText(_translate("eo_fenetre", "Enregistrer", None))
        self.eo_annuler.setText(_translate("eo_fenetre", "Annuler", None))
        self.eo_type.setItemText(0, _translate("eo_fenetre", "Monnaie", None))
        self.eo_type.setItemText(1, _translate("eo_fenetre", "Arme / armure", None))
        self.eo_type.setItemText(2, _translate("eo_fenetre", "Consommable", None))
        self.eo_type.setItemText(3, _translate("eo_fenetre", "Butin", None))
        self.eo_type.setItemText(4, _translate("eo_fenetre", "Autre", None))
        self.label_6.setText(_translate("eo_fenetre", "Type d\'objet : ", None))
        self.eo_ajouter.setText(_translate("eo_fenetre", "+", None))
        self.eo_retirer.setText(_translate("eo_fenetre", "-", None))
        self.eo_monnaie.setText(_translate("eo_fenetre", "po", None))
        self.eo_supprimer.setText(_translate("eo_fenetre", "Supprimer", None))

from dm import DmLineEdit, DmLabel

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    eo_fenetre = QtGui.QDialog()
    ui = Ui_eo_fenetre()
    ui.setupUi(eo_fenetre)
    eo_fenetre.show()
    sys.exit(app.exec_())

