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

# Form implementation generated from reading ui file 'panneauAttaques.ui'
#
# Created: Wed Jun 17 15:35:13 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_att_frame(object):
    def setupUi(self, att_frame):
        att_frame.setObjectName(_fromUtf8("att_frame"))
        att_frame.resize(471, 112)
        att_frame.setMinimumSize(QtCore.QSize(471, 0))
        att_frame.setMaximumSize(QtCore.QSize(471, 1000))
        att_frame.setFrameShape(QtGui.QFrame.StyledPanel)
        att_frame.setFrameShadow(QtGui.QFrame.Raised)
        self.att_panneau = QtGui.QFrame(att_frame)
        self.att_panneau.setEnabled(True)
        self.att_panneau.setGeometry(QtCore.QRect(0, 0, 471, 111))
        self.att_panneau.setMinimumSize(QtCore.QSize(0, 0))
        self.att_panneau.setFrameShape(QtGui.QFrame.StyledPanel)
        self.att_panneau.setFrameShadow(QtGui.QFrame.Sunken)
        self.att_panneau.setObjectName(_fromUtf8("att_panneau"))
        self.att_nom = DmLineEdit(self.att_panneau)
        self.att_nom.setGeometry(QtCore.QRect(60, 10, 371, 21))
        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.att_nom.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_nom.setFont(font)
        self.att_nom.setObjectName(_fromUtf8("att_nom"))
        self.att_type = DmComboBox(self.att_panneau)
        self.att_type.setGeometry(QtCore.QRect(10, 10, 41, 41))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_type.setFont(font)
        self.att_type.setObjectName(_fromUtf8("att_type"))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("img/curseurEpee.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.att_type.addItem(icon, _fromUtf8(""))
        self.att_type.setItemText(0, _fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("img/arc.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.att_type.addItem(icon1, _fromUtf8(""))
        self.att_type.setItemText(1, _fromUtf8(""))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("img/bombe.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.att_type.addItem(icon2, _fromUtf8(""))
        self.att_type.setItemText(2, _fromUtf8(""))
        self.att_portee_e = QtGui.QLabel(self.att_panneau)
        self.att_portee_e.setGeometry(QtCore.QRect(90, 34, 51, 21))
        self.att_portee_e.setMinimumSize(QtCore.QSize(51, 21))
        self.att_portee_e.setMaximumSize(QtCore.QSize(51, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_portee_e.setFont(font)
        self.att_portee_e.setObjectName(_fromUtf8("att_portee_e"))
        self.att_portee = QtGui.QSpinBox(self.att_panneau)
        self.att_portee.setGeometry(QtCore.QRect(140, 34, 41, 21))
        self.att_portee.setMinimumSize(QtCore.QSize(41, 21))
        self.att_portee.setMaximumSize(QtCore.QSize(41, 21))
        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.att_portee.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_portee.setFont(font)
        self.att_portee.setMinimum(1)
        self.att_portee.setMaximum(999)
        self.att_portee.setProperty("value", 1)
        self.att_portee.setObjectName(_fromUtf8("att_portee"))
        self.att_rayon = QtGui.QSpinBox(self.att_panneau)
        self.att_rayon.setGeometry(QtCore.QRect(360, 34, 41, 21))
        self.att_rayon.setMinimumSize(QtCore.QSize(41, 21))
        self.att_rayon.setMaximumSize(QtCore.QSize(41, 21))
        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.att_rayon.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_rayon.setFont(font)
        self.att_rayon.setMinimum(1)
        self.att_rayon.setProperty("value", 1)
        self.att_rayon.setObjectName(_fromUtf8("att_rayon"))
        self.att_rayon_e = QtGui.QLabel(self.att_panneau)
        self.att_rayon_e.setGeometry(QtCore.QRect(310, 34, 51, 21))
        self.att_rayon_e.setMinimumSize(QtCore.QSize(51, 21))
        self.att_rayon_e.setMaximumSize(QtCore.QSize(51, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_rayon_e.setFont(font)
        self.att_rayon_e.setObjectName(_fromUtf8("att_rayon_e"))
        self.att_notes = DmTextEdit(self.att_panneau)
        self.att_notes.setGeometry(QtCore.QRect(10, 57, 451, 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.att_notes.setPalette(palette)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_notes.setFont(font)
        self.att_notes.setObjectName(_fromUtf8("att_notes"))
        self.att_forme = DmComboBox(self.att_panneau)
        self.att_forme.setGeometry(QtCore.QRect(250, 34, 41, 21))
        self.att_forme.setMinimumSize(QtCore.QSize(41, 21))
        self.att_forme.setMaximumSize(QtCore.QSize(41, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_forme.setFont(font)
        self.att_forme.setObjectName(_fromUtf8("att_forme"))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("img/formeLigne.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.att_forme.addItem(icon3, _fromUtf8(""))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("img/formeEllipsePlein.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.att_forme.addItem(icon4, _fromUtf8(""))
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("img/cone.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.att_forme.addItem(icon5, _fromUtf8(""))
        self.att_forme_e = QtGui.QLabel(self.att_panneau)
        self.att_forme_e.setGeometry(QtCore.QRect(200, 34, 51, 21))
        self.att_forme_e.setMinimumSize(QtCore.QSize(51, 21))
        self.att_forme_e.setMaximumSize(QtCore.QSize(51, 21))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        self.att_forme_e.setFont(font)
        self.att_forme_e.setObjectName(_fromUtf8("att_forme_e"))
        self.gridLayoutWidget = QtGui.QWidget(self.att_panneau)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 90, 451, 16))
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.att_layout_attributs = QtGui.QGridLayout(self.gridLayoutWidget)
        self.att_layout_attributs.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
        self.att_layout_attributs.setContentsMargins(-1, 1, -1, -1)
        self.att_layout_attributs.setHorizontalSpacing(4)
        self.att_layout_attributs.setVerticalSpacing(1)
        self.att_layout_attributs.setObjectName(_fromUtf8("att_layout_attributs"))
        self.att_supprimer = QtGui.QToolButton(self.att_panneau)
        self.att_supprimer.setEnabled(False)
        self.att_supprimer.setGeometry(QtCore.QRect(440, 10, 25, 21))
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8("img/btnFermer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.att_supprimer.setIcon(icon6)
        self.att_supprimer.setObjectName(_fromUtf8("att_supprimer"))
        self.att_voile = QtGui.QLabel(self.att_panneau)
        self.att_voile.setEnabled(True)
        self.att_voile.setGeometry(QtCore.QRect(0, 0, 471, 111))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(200, 200, 200, 70))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush)
        self.att_voile.setPalette(palette)
        self.att_voile.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.att_voile.setStyleSheet(_fromUtf8("background-color: rgba(200, 200, 200, 70);"))
        self.att_voile.setText(_fromUtf8(""))
        self.att_voile.setObjectName(_fromUtf8("att_voile"))

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

    def retranslateUi(self, att_frame):
        att_frame.setWindowTitle(_translate("att_frame", "Frame", None))
        self.att_nom.setPlaceholderText(_translate("att_frame", "(Nouvelle attaque...)", None))
        self.att_portee_e.setText(_translate("att_frame", "Portée :", None))
        self.att_rayon_e.setText(_translate("att_frame", "Rayon :", None))
        self.att_forme.setItemText(0, _translate("att_frame", "Ligne", None))
        self.att_forme.setItemText(1, _translate("att_frame", "Disque", None))
        self.att_forme.setItemText(2, _translate("att_frame", "Cone", None))
        self.att_forme_e.setText(_translate("att_frame", "Forme :", None))
        self.att_supprimer.setText(_translate("att_frame", "...", None))

from dm import DmTextEdit, DmLineEdit, DmComboBox

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    att_frame = QtGui.QFrame()
    ui = Ui_att_frame()
    ui.setupUi(att_frame)
    att_frame.show()
    sys.exit(app.exec_())

