From: Pascale Noyret Date: Mon, 6 Jul 2009 08:33:09 +0000 (+0000) Subject: Pour les icones dans Salome X-Git-Tag: V1_0OpenTurns~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d17883fa82ebbeac5d4ae0e2d2a0dc866663d0d8;p=modules%2Feficas.git Pour les icones dans Salome --- diff --git a/InterfaceQT4/monPlusieursBasePanel.py b/InterfaceQT4/monPlusieursBasePanel.py index da889f1a..892a731e 100644 --- a/InterfaceQT4/monPlusieursBasePanel.py +++ b/InterfaceQT4/monPlusieursBasePanel.py @@ -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="" diff --git a/InterfaceQT4/monPlusieursIntoPanel.py b/InterfaceQT4/monPlusieursIntoPanel.py index c5b53d19..5bdf9220 100644 --- a/InterfaceQT4/monPlusieursIntoPanel.py +++ b/InterfaceQT4/monPlusieursIntoPanel.py @@ -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): """ diff --git a/InterfaceQT4/monUniqueBasePanel.py b/InterfaceQT4/monUniqueBasePanel.py index b18f23a7..bd0c5b5a 100644 --- a/InterfaceQT4/monUniqueBasePanel.py +++ b/InterfaceQT4/monUniqueBasePanel.py @@ -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