From: Pascale Noyret Date: Fri, 8 Jan 2010 08:47:48 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V1_0OpenTurns~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c7c4c7e776e0d937f0c499600acc251aaa4c6a63;p=modules%2Feficas.git *** empty log message *** --- diff --git a/InterfaceQT4/monChoixMap.py b/InterfaceQT4/monChoixMap.py new file mode 100644 index 00000000..fb1dfcd3 --- /dev/null +++ b/InterfaceQT4/monChoixMap.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# CONFIGURATION MANAGEMENT OF EDF VERSION +# ====================================================================== +# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG +# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY +# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY +# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR +# (AT YOUR OPTION) ANY LATER VERSION. +# +# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT +# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF +# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU +# GENERAL PUBLIC LICENSE FOR MORE DETAILS. +# +# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE +# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, +# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. +# +# +# ====================================================================== +# Modules Python +# Modules Eficas + +from desChoixMap import Ui_DChoixMap +from PyQt4 import * +from PyQt4.QtCore import * +from PyQt4.QtGui import * +from PyQt4.QtCore import * + + +# Import des panels + +class MonChoixMap(Ui_DChoixMap,QtGui.QDialog): + """ + Classe définissant le panel associé aux mots-clés qui demandent + à l'utilisateur de choisir une seule valeur parmi une liste de valeurs + discrètes + """ + def __init__(self, QWparent , name = None,fl = 0): + QtGui.QDialog.__init__(self) + self.setMinimumSize(50, 50); + self.setModal(True) + self.setupUi(self) + self.appliEficas=QWparent + + self.RepIcon=self.appliEficas.RepIcon + icon = QIcon(self.RepIcon+"/oslo.png") + self.Pb1.setIcon(icon) + icon1 = QIcon(self.RepIcon+"/munich.png") + self.Pb2.setIcon(icon1) + icon2 = QIcon(self.RepIcon+"/beijing.png") + self.Pb3.setIcon(icon2) + + def closeEvent(self,event): + self.appliEficas.sous_code=0 + + def on_PB1_clicked(self): + self.appliEficas.sous_code=1 + print "hhhhh" + self.close() + + def on_Pb2_clicked(self): + self.appliEficas.sous_code=2 + self.close() + + def on_Pb3(self): + self.appliEficas.sous_code=3 + self.close() + diff --git a/UiQT4/desChoixMap.ui b/UiQT4/desChoixMap.ui new file mode 100644 index 00000000..e4300c8a --- /dev/null +++ b/UiQT4/desChoixMap.ui @@ -0,0 +1,88 @@ + + + DChoixMap + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + -8 + 20 + 121 + 141 + + + + + + + + redwood.pngredwood.png + + + + 150 + 150 + + + + + + + 130 + 20 + 121 + 141 + + + + + + + + brisbane.pngbrisbane.png + + + + 150 + 160 + + + + + + + 260 + 20 + 131 + 141 + + + + + + + + berlin.pngberlin.png + + + + 150 + 150 + + + + + + + diff --git a/UiQT4/makefile b/UiQT4/makefile index 2005d5fb..9dc8a8c4 100644 --- a/UiQT4/makefile +++ b/UiQT4/makefile @@ -8,7 +8,7 @@ PY_FILES = desChoixCata.py desCommande.py desCommentaire.py desError.py desFormu desPlusieursBase.py desPlusieursInto.py desPoursuite.py desRacine.py desSelectVal.py \ desUniqueASSD.py desUniqueBase.py desUniqueComp.py desUniqueInto.py desUniqueSDCOInto.py \ desUniqueSDCO.py desVisu.py aideQT.py OptionsEditeur.py OptionsPdf.py myMain.py \ - desViewTexte.py desPixmap.py desMatrice.py OptionsOT.py OptionsCuve.py + desViewTexte.py desPixmap.py desMatrice.py OptionsOT.py OptionsCuve.py desChoixMap.py %.py:%.ui ${PYUIC} -x -o $@ $<