]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
Pour les icones dans Salome
authorPascale Noyret <pascale.noyret@edf.fr>
Mon, 6 Jul 2009 08:33:09 +0000 (08:33 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Mon, 6 Jul 2009 08:33:09 +0000 (08:33 +0000)
InterfaceQT4/monPlusieursBasePanel.py
InterfaceQT4/monPlusieursIntoPanel.py
InterfaceQT4/monUniqueBasePanel.py

index da889f1aee0b2faa97404742de0589b4f5d2107b..892a731e2e6b48c00bf0b0b3e39f25bf417a6046 100644 (file)
@@ -45,6 +45,12 @@ class DPlusBase (Ui_DPlusBase,QDialog):
           parent.addWidget(parent.partieDroite)
           parent.leLayout.widgetActive=self
        self.setupUi(self)
+       icon = QIcon(self.RepIcon+"arrow_left.png")
+       self.BAjout1Val.setIcon(icon)
+       icon2 = QIcon(self.RepIcon+"arrow_right.png")
+       self.BSup1Val.setIcon(icon2)
+       icon3 = QIcon(self.RepIcon+"image240.png")
+       self.BSalome.setIcon(icon3)
 
 # Import des panels
 
@@ -194,8 +200,9 @@ class MonPlusieursBasePanel(DPlusBase,QTPanel,SaisieValeur):
             if "GROUP_MA" in e: kwType = "GROUP_MA"
 
         #print "BkwType",kwType
-        #print "editor", self.editor
-        selection, commentaire = self.editor.parent.appliEficas.selectGroupFromSalome(kwType,editor=self.editor)
+        print "editor", self.editor
+        print "appliEficas", self.editor.appliEficas
+        selection, commentaire = self.editor.appliEficas.selectGroupFromSalome(kwType,editor=self.editor)
         if commentaire !="" :
             self.Commentaire.setText(QString(commentaire))
         monTexte=""
index c5b53d191450b083c998a922531b02d6b9d92886..5bdf9220980d182fa52dc067eb8409fdb98e2af6 100644 (file)
@@ -45,6 +45,11 @@ class DPlusInto(Ui_DPlusInto,QDialog):
           parent.addWidget(parent.partieDroite)
           parent.leLayout.widgetActive=self
        self.setupUi(self)
+       icon = QIcon(self.RepIcon+"arrow_left.png")
+       self.BAjout1Val.setIcon(icon)
+       icon2 = QIcon(self.RepIcon+"arrow_right.png")
+       self.BSup1Val.setIcon(icon2)
+
 
 class MonPlusieursIntoPanel(DPlusInto,QTPanel,SaisieValeur):
   """
index b18f23a7e35f5f0478c13eb67812951776e54322..bd0c5b5ae5f95e7fbec03dfe70293eaa3970355b 100644 (file)
@@ -34,6 +34,7 @@ class DUnBase(Ui_DUnBase,QDialog):
    def __init__(self,parent ,modal ) :
        QDialog.__init__(self,parent)
        self.appliEficas=parent.appliEficas
+       self.RepIcon=self.appliEficas.RepIcon
        if hasattr(parent,"leLayout"):
           parent.leLayout.removeWidget(parent.leLayout.widgetActive)
           parent.leLayout.widgetActive.close()
@@ -46,6 +47,9 @@ class DUnBase(Ui_DUnBase,QDialog):
           parent.addWidget(parent.partieDroite)
           parent.leLayout.widgetActive=self
        self.setupUi(self)
+       icon = QIcon(self.RepIcon+"image240.png")
+       self.BSalome.setIcon(icon)
+
 
 # Import des panels