From d09bd6a7043ace7b189df045b14996c9898a461f Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Tue, 7 Jul 2009 13:49:12 +0000 Subject: [PATCH] *** empty log message *** --- InterfaceQT4/compooper.py | 14 ++++++++ UiQT4/desPixmap.ui | 70 +++++++++++++++++++++++++++++++++++++++ UiQT4/makefile | 2 +- 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 UiQT4/desPixmap.ui diff --git a/InterfaceQT4/compooper.py b/InterfaceQT4/compooper.py index 14d05da7..909c0208 100644 --- a/InterfaceQT4/compooper.py +++ b/InterfaceQT4/compooper.py @@ -21,6 +21,15 @@ class Node(browser.JDCNode, typeNode.PopUpMenuNode): typeNode.PopUpMenuNode.createPopUpMenu(self) if ("AFFE_CARA_ELEM" in self.item.get_genealogie()) and self.editor.salome: self.menu.insertItem( 'View3D', self.view3D ) + if self.item.get_nom() == "DISTRIBUTION" : + self.Graphe = QAction('Graphique',self.tree) + self.tree.connect(self.Graphe,SIGNAL("activated()"),self.viewPng) + self.Graphe.setStatusTip("affiche la distribution ") + self.menu.addAction(self.Graphe) + if self.item.isvalid() : + self.Graphe.setEnabled(1) + else: + self.Graphe.setEnabled(0) def doPaste(self,node_selected): """ @@ -55,6 +64,11 @@ class Node(browser.JDCNode, typeNode.PopUpMenuNode): troisD=TroisDPal.TroisDPilote(self.item,self.editor.parent.appliEficas) troisD.envoievisu() + def viewPng(self) : + from monPixmap import MonLabelPixmap + fichier=self.appliEficas.getName() + widgetPng=MonLabelPixmap(self.appliEficas,fichier) + ret=widgetPng.exec_() class EtapeTreeItem(Objecttreeitem.ObjectTreeItem): """ La classe EtapeTreeItem est un adaptateur des objets ETAPE du noyau diff --git a/UiQT4/desPixmap.ui b/UiQT4/desPixmap.ui new file mode 100644 index 00000000..0f6cc405 --- /dev/null +++ b/UiQT4/desPixmap.ui @@ -0,0 +1,70 @@ + + LabelPixmap + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + LabelPixmap + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + LabelPixmap + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/UiQT4/makefile b/UiQT4/makefile index 8327014d..62f837e6 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 + desViewTexte.py desPixmap.py %.py:%.ui ${PYUIC} -x -o $@ $< -- 2.39.2