X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2Fcompoformule.py;h=511a1e944245937b203586497bc63ddea28a0965;hb=9e5ea0ed745d6d22d5ccd9c8dab56340c46809d9;hp=fa3244d073f4e6393c304427f09a389d3047c2c8;hpb=61f2a263b67981f299c496ce7ef8bccc3ac6e68b;p=tools%2Feficas.git diff --git a/InterfaceQT4/compoformule.py b/InterfaceQT4/compoformule.py index fa3244d0..511a1e94 100644 --- a/InterfaceQT4/compoformule.py +++ b/InterfaceQT4/compoformule.py @@ -1,4 +1,22 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2007-2013 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# """ Ce module contient les classes permettant de définir les objets graphiques @@ -66,12 +84,13 @@ class FORMULETreeItem(compooper.EtapeTreeItem): - la fonte dans laquelle afficher ce texte - la couleur du texte """ - if self.object.isactif(): + return self.labeltext,None,None + #if self.object.isactif(): # None --> fonte et couleur par défaut - return self.labeltext,None,None - else: - return self.labeltext,None,None - #return self.labeltext,fontes.standard_italique,None + # return tr(self.labeltext),None,None + #else: + # return tr(self.labeltext),None,None + #return self.labeltext,fontes.standard_italique,None # --------------------------------------------------------------------------- # Méthodes permettant la modification et la lecture des attributs