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):
"""
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
--- /dev/null
+<ui version="4.0" >
+ <class>LabelPixmap</class>
+ <widget class="QDialog" name="LabelPixmap" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>300</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>Dialog</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" >
+ <widget class="QLabel" name="labelPix" >
+ <property name="text" >
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QDialogButtonBox" name="buttonBox" >
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons" >
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>LabelPixmap</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel" >
+ <x>248</x>
+ <y>254</y>
+ </hint>
+ <hint type="destinationlabel" >
+ <x>157</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>LabelPixmap</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel" >
+ <x>316</x>
+ <y>260</y>
+ </hint>
+ <hint type="destinationlabel" >
+ <x>286</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
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 $@ $<