]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Tue, 7 Jul 2009 13:49:12 +0000 (13:49 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Tue, 7 Jul 2009 13:49:12 +0000 (13:49 +0000)
InterfaceQT4/compooper.py
UiQT4/desPixmap.ui [new file with mode: 0644]
UiQT4/makefile

index 14d05da758790f4816df9bc8f3d099e8dcad0499..909c020810de67dbf7a1c104128f53f19607ddc6 100644 (file)
@@ -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 (file)
index 0000000..0f6cc40
--- /dev/null
@@ -0,0 +1,70 @@
+<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>
index 8327014dffd7bea727ae85c1641b2b7a856596f2..62f837e6503996214592b7b0ffff80c96089bfe8 100644 (file)
@@ -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 $@ $<