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

# Form implementation generated from reading ui file 'editionObjet.ui'
#
# Created: Fri Jun 26 11:38: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(498, 263)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        eo_fenetre.setFont(font)
        self.eo_nom = DmLineEdit(eo_fenetre)
        self.eo_nom.setGeometry(QtCore.QRect(140, 18, 321, 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(100, 20, 41, 21))
        self.label.setObjectName(_fromUtf8("label"))
        self.eo_quantite = QtGui.QSpinBox(eo_fenetre)
        self.eo_quantite.setGeometry(QtCore.QRect(200, 80, 91, 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(120, 80, 71, 31))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.eo_poids = QtGui.QDoubleSpinBox(eo_fenetre)
        self.eo_poids.setGeometry(QtCore.QRect(150, 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.setDecimals(2)
        self.eo_poids.setMaximum(99999999.99)
        self.eo_poids.setSingleStep(1.0)
        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, 111, 31))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.eo_valeur = QtGui.QDoubleSpinBox(eo_fenetre)
        self.eo_valeur.setGeometry(QtCore.QRect(370, 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(999999999.99)
        self.eo_valeur.setObjectName(_fromUtf8("eo_valeur"))
        self.eo_consommable = QtGui.QCheckBox(eo_fenetre)
        self.eo_consommable.setGeometry(QtCore.QRect(310, 180, 161, 17))
        self.eo_consommable.setObjectName(_fromUtf8("eo_consommable"))
        self.eo_enregistrer = QtGui.QPushButton(eo_fenetre)
        self.eo_enregistrer.setGeometry(QtCore.QRect(350, 220, 111, 31))
        self.eo_enregistrer.setObjectName(_fromUtf8("eo_enregistrer"))
        self.eo_annuler = QtGui.QPushButton(eo_fenetre)
        self.eo_annuler.setGeometry(QtCore.QRect(230, 220, 111, 31))
        self.eo_annuler.setObjectName(_fromUtf8("eo_annuler"))
        self.eo_type = QtGui.QComboBox(eo_fenetre)
        self.eo_type.setGeometry(QtCore.QRect(20, 10, 61, 51))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.eo_type.setFont(font)
        self.eo_type.setIconSize(QtCore.QSize(24, 24))
        self.eo_type.setObjectName(_fromUtf8("eo_type"))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/pieces_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.eo_type.addItem(icon, _fromUtf8(""))
        self.eo_type.setItemText(0, _fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/armes_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.eo_type.addItem(icon1, _fromUtf8(""))
        self.eo_type.setItemText(1, _fromUtf8(""))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/chimie_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.eo_type.addItem(icon2, _fromUtf8(""))
        self.eo_type.setItemText(2, _fromUtf8(""))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/diamant_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.eo_type.addItem(icon3, _fromUtf8(""))
        self.eo_type.setItemText(3, _fromUtf8(""))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/32/ressource/boiteOutils_32.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.eo_type.addItem(icon4, _fromUtf8(""))
        self.eo_type.setItemText(4, _fromUtf8(""))
        self.eo_ajouter = QtGui.QPushButton(eo_fenetre)
        self.eo_ajouter.setGeometry(QtCore.QRect(350, 80, 31, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.eo_ajouter.setFont(font)
        self.eo_ajouter.setObjectName(_fromUtf8("eo_ajouter"))
        self.eo_retirer = QtGui.QPushButton(eo_fenetre)
        self.eo_retirer.setGeometry(QtCore.QRect(310, 80, 31, 31))
        font = QtGui.QFont()
        font.setPointSize(13)
        font.setBold(True)
        font.setWeight(75)
        self.eo_retirer.setFont(font)
        self.eo_retirer.setObjectName(_fromUtf8("eo_retirer"))
        self.eo_monnaie = DmLabel(eo_fenetre)
        self.eo_monnaie.setGeometry(QtCore.QRect(445, 143, 51, 20))
        self.eo_monnaie.setObjectName(_fromUtf8("eo_monnaie"))
        self.eo_supprimer = QtGui.QPushButton(eo_fenetre)
        self.eo_supprimer.setGeometry(QtCore.QRect(20, 220, 111, 31))
        self.eo_supprimer.setObjectName(_fromUtf8("eo_supprimer"))

        self.retranslateUi(eo_fenetre)
        self.eo_type.setCurrentIndex(0)
        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", "Disparait à l\'utilisation ? ", None))
        self.eo_enregistrer.setText(_translate("eo_fenetre", "Enregistrer", None))
        self.eo_annuler.setText(_translate("eo_fenetre", "Annuler", 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
import ressource_rc

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_())

