From: Pascale Noyret Date: Wed, 4 Mar 2009 11:37:08 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V0_a1_SEPQT4~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=942aaf0cd56b0b0a0b296310f1174fa6fa01758c;p=modules%2Feficas.git *** empty log message *** --- diff --git a/InterfaceQT4/monUniqueBasePanel.py b/InterfaceQT4/monUniqueBasePanel.py index b53c79cb..a3bb9d82 100644 --- a/InterfaceQT4/monUniqueBasePanel.py +++ b/InterfaceQT4/monUniqueBasePanel.py @@ -33,6 +33,7 @@ from politiquesValidation import PolitiqueUnique class DUnBase(Ui_DUnBase,QDialog): def __init__(self,parent ,modal ) : QDialog.__init__(self,parent) + self.appliEficas=parent.appliEficas if hasattr(parent,"leLayout"): parent.leLayout.removeWidget(parent.leLayout.widgetActive) parent.leLayout.widgetActive.close() @@ -73,12 +74,15 @@ class MonUniqueBasePanel(DUnBase,QTPanel,SaisieValeur): self.connect(self.bParametres,SIGNAL("pressed()"),self.BParametresPressed) self.connect(self.BSalome,SIGNAL("pressed()"),self.BSalomePressed) self.connect(self.BView2D,SIGNAL("clicked()"),self.BView2DPressed) + self.connect(self.BFichier,SIGNAL("clicked()"),self.BFichierPressed) def ViewDoc(self): QTPanel.ViewDoc(self) def detruitBouton(self): mc = self.node.item.get_definition() + if self.node.item.get_nom() != "FileName" : + self.BFichier.close() type = mc.type[0] #if not('grma' in repr(type)) or not(self.editor.salome) : if not(('grma' in repr(type)) or ('grno' in repr(type))) or not(self.editor.salome) : @@ -112,16 +116,25 @@ class MonUniqueBasePanel(DUnBase,QTPanel,SaisieValeur): def BOk2Pressed(self): SaisieValeur.BOk2Pressed(self) - if self.node.item.parent.nom == "FICXML" : + if self.node.item.parent.nom == "MODEL" : self.node.item.parent.change_fichier="1" self.node.item.parent.build_include(None,"") + def BFichierPressed(self): + fichier = QFileDialog.getOpenFileName(self.appliEficas, + self.appliEficas.trUtf8('Ouvrir Fichier'), + self.appliEficas.CONFIGURATION.savedir, + self.appliEficas.trUtf8('JDC Files (*.comm);;''All Files (*)')) + if not(fichier.isNull()): + self.lineEditVal.setText(fichier) + + def BSupPressed(self): QTPanel.BSupPressed(self) def LEValeurPressed(self): SaisieValeur.LEValeurPressed(self) - if self.node.item.parent.nom == "FICXML" : + if self.node.item.parent.nom == "MODEL" : self.node.item.parent.change_fichier="1" self.node.item.parent.build_include(None,"") diff --git a/UiQT4/desUniqueBase.ui b/UiQT4/desUniqueBase.ui index 2fac4097..54691a8b 100644 --- a/UiQT4/desUniqueBase.ui +++ b/UiQT4/desUniqueBase.ui @@ -22,18 +22,45 @@ - - - 0 - 0 - 460 - 435 - - Saisir Valeur - + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 288 + 21 + + + + + + + + + 0 + 0 + + + + + 140 + 30 + + + + Parametres + + + @@ -58,42 +85,102 @@ - - + + + + + 50 + 40 + + + + + + + + image240.pngimage240.png + + + + + - Qt::Horizontal + Qt::Vertical QSizePolicy::Expanding - 288 - 21 + 41 + 112 - - - - - 0 - 0 - + + + + + 110 + 40 + + + + Visualiser + + + + - 140 - 30 + 50 + 40 - Parametres + Fichier + + + + image240.pngimage240.png + + + + + + + + 430 + 40 + + + + + + + false - + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 21 + 112 + + + + + @@ -115,7 +202,7 @@ - + @@ -140,7 +227,7 @@ - + @@ -162,84 +249,6 @@ - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 41 - 112 - - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 21 - 112 - - - - - - - - - 430 - 40 - - - - - - - false - - - - - - - - 110 - 40 - - - - Visualiser - - - - - - - - 50 - 40 - - - - - - - - image240.pngimage240.png - - -