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

# Form implementation generated from reading ui file 'creerPlateau.ui'
#
# Created: Fri Jun 26 16:07:57 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_crp_fenetre(object):
    def setupUi(self, crp_fenetre):
        crp_fenetre.setObjectName(_fromUtf8("crp_fenetre"))
        crp_fenetre.resize(485, 203)
        crp_fenetre.setMinimumSize(QtCore.QSize(485, 203))
        crp_fenetre.setMaximumSize(QtCore.QSize(485, 203))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Verdana"))
        crp_fenetre.setFont(font)
        self.crp_hauteur = QtGui.QSpinBox(crp_fenetre)
        self.crp_hauteur.setGeometry(QtCore.QRect(410, 60, 51, 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.crp_hauteur.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.crp_hauteur.setFont(font)
        self.crp_hauteur.setMinimum(5)
        self.crp_hauteur.setMaximum(300)
        self.crp_hauteur.setSingleStep(1)
        self.crp_hauteur.setProperty("value", 30)
        self.crp_hauteur.setObjectName(_fromUtf8("crp_hauteur"))
        self.crp_ok = QtGui.QPushButton(crp_fenetre)
        self.crp_ok.setEnabled(False)
        self.crp_ok.setGeometry(QtCore.QRect(350, 155, 111, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.crp_ok.setFont(font)
        self.crp_ok.setDefault(True)
        self.crp_ok.setObjectName(_fromUtf8("crp_ok"))
        self.label_7 = QtGui.QLabel(crp_fenetre)
        self.label_7.setGeometry(QtCore.QRect(180, 60, 151, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_7.setFont(font)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.crp_nom = DmLineEdit(crp_fenetre)
        self.crp_nom.setGeometry(QtCore.QRect(60, 10, 281, 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.crp_nom.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.crp_nom.setFont(font)
        self.crp_nom.setObjectName(_fromUtf8("crp_nom"))
        self.label_10 = QtGui.QLabel(crp_fenetre)
        self.label_10.setGeometry(QtCore.QRect(10, 10, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_10.setFont(font)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.crp_largeur = QtGui.QSpinBox(crp_fenetre)
        self.crp_largeur.setGeometry(QtCore.QRect(320, 60, 51, 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.crp_largeur.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.crp_largeur.setFont(font)
        self.crp_largeur.setMinimum(5)
        self.crp_largeur.setMaximum(300)
        self.crp_largeur.setSingleStep(1)
        self.crp_largeur.setProperty("value", 50)
        self.crp_largeur.setObjectName(_fromUtf8("crp_largeur"))
        self.crp_chapitre = QtGui.QSpinBox(crp_fenetre)
        self.crp_chapitre.setGeometry(QtCore.QRect(410, 10, 51, 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.crp_chapitre.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.crp_chapitre.setFont(font)
        self.crp_chapitre.setMinimum(1)
        self.crp_chapitre.setObjectName(_fromUtf8("crp_chapitre"))
        self.groupBox = QtGui.QGroupBox(crp_fenetre)
        self.groupBox.setGeometry(QtCore.QRect(30, 100, 311, 41))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.groupBox.setFont(font)
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.crp_formeHexa = QtGui.QRadioButton(self.groupBox)
        self.crp_formeHexa.setGeometry(QtCore.QRect(80, 10, 111, 20))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.crp_formeHexa.setFont(font)
        self.crp_formeHexa.setChecked(True)
        self.crp_formeHexa.setObjectName(_fromUtf8("crp_formeHexa"))
        self.crp_formeCarree = QtGui.QRadioButton(self.groupBox)
        self.crp_formeCarree.setGeometry(QtCore.QRect(220, 10, 81, 21))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.crp_formeCarree.setFont(font)
        self.crp_formeCarree.setObjectName(_fromUtf8("crp_formeCarree"))
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(0, 10, 61, 21))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_6 = QtGui.QLabel(crp_fenetre)
        self.label_6.setGeometry(QtCore.QRect(360, 10, 51, 31))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(False)
        font.setWeight(50)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.label = QtGui.QLabel(crp_fenetre)
        self.label.setGeometry(QtCore.QRect(385, 62, 21, 31))
        font = QtGui.QFont()
        font.setPointSize(9)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.crp_chercherModele = QtGui.QPushButton(crp_fenetre)
        self.crp_chercherModele.setEnabled(False)
        self.crp_chercherModele.setGeometry(QtCore.QRect(10, 155, 141, 30))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.crp_chercherModele.setFont(font)
        self.crp_chercherModele.setDefault(True)
        self.crp_chercherModele.setObjectName(_fromUtf8("crp_chercherModele"))
        self.crp_couleur = QtGui.QToolButton(crp_fenetre)
        self.crp_couleur.setGeometry(QtCore.QRect(430, 100, 31, 31))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/interface/16/ressource/palette_16.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.crp_couleur.setIcon(icon)
        self.crp_couleur.setObjectName(_fromUtf8("crp_couleur"))
        self.crp_listeDimensions = QtGui.QComboBox(crp_fenetre)
        self.crp_listeDimensions.setGeometry(QtCore.QRect(30, 60, 131, 31))
        self.crp_listeDimensions.setMaxVisibleItems(9)
        self.crp_listeDimensions.setObjectName(_fromUtf8("crp_listeDimensions"))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))
        self.crp_listeDimensions.addItem(_fromUtf8(""))

        self.retranslateUi(crp_fenetre)
        self.crp_listeDimensions.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(crp_fenetre)

    def retranslateUi(self, crp_fenetre):
        crp_fenetre.setWindowTitle(_translate("crp_fenetre", "Créer un plateau", None))
        self.crp_ok.setText(_translate("crp_fenetre", "Ok", None))
        self.label_7.setText(_translate("crp_fenetre", "Dimensions (L x H) : ", None))
        self.label_10.setText(_translate("crp_fenetre", "Nom : ", None))
        self.crp_formeHexa.setText(_translate("crp_fenetre", "Hexagonales", None))
        self.crp_formeCarree.setText(_translate("crp_fenetre", "Carrées", None))
        self.label_2.setText(_translate("crp_fenetre", "Cases : ", None))
        self.label_6.setText(_translate("crp_fenetre", "Chap. :", None))
        self.label.setText(_translate("crp_fenetre", "x", None))
        self.crp_chercherModele.setText(_translate("crp_fenetre", "Utiliser un modèle", None))
        self.crp_couleur.setText(_translate("crp_fenetre", "...", None))
        self.crp_listeDimensions.setItemText(0, _translate("crp_fenetre", "Paysage - Petit", None))
        self.crp_listeDimensions.setItemText(1, _translate("crp_fenetre", "Paysage - Moyen", None))
        self.crp_listeDimensions.setItemText(2, _translate("crp_fenetre", "Paysage - Grand", None))
        self.crp_listeDimensions.setItemText(3, _translate("crp_fenetre", "Portrait - Petit", None))
        self.crp_listeDimensions.setItemText(4, _translate("crp_fenetre", "Portrait - Moyen", None))
        self.crp_listeDimensions.setItemText(5, _translate("crp_fenetre", "Portrait - Grand", None))
        self.crp_listeDimensions.setItemText(6, _translate("crp_fenetre", "Carré - Petit", None))
        self.crp_listeDimensions.setItemText(7, _translate("crp_fenetre", "Carré - Moyen", None))
        self.crp_listeDimensions.setItemText(8, _translate("crp_fenetre", "Carré - Grand", None))
        self.crp_listeDimensions.setItemText(9, _translate("crp_fenetre", "Personnalisé", None))

from dm import DmLineEdit
import ressource_rc

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

