X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=InterfaceQT4%2Fcompomclist.py;h=c7179c9ee7d11f460ddf46dbcbb2868f94d6c5e5;hb=96176d0080e0d4efbd29d98c0df700a64a82acdc;hp=cc02fe715968b07b7f2c52806ba804c17528fe0c;hpb=1b91010fc2c0a681db9177d6fa0e4e0af866ec31;p=tools%2Feficas.git diff --git a/InterfaceQT4/compomclist.py b/InterfaceQT4/compomclist.py index cc02fe71..c7179c9e 100644 --- a/InterfaceQT4/compomclist.py +++ b/InterfaceQT4/compomclist.py @@ -42,9 +42,6 @@ class Node(browser.JDCNode,typeNode.PopUpMenuNodeMinimal): monNom=self.item.nom maCommande=commande #print "ds getPanelGroupe" , self.item.nom - #if hasattr(self,'plie'): print "self.plie", self.plie - # if self.item.nom == "BackgroundError" and not(self.plie): print i - #print parentQt if hasattr(parentQt,'niveau'): self.niveau=parentQt.niveau+1 else : self.niveau=1 if not (monObjet.isMCList()) : @@ -60,34 +57,16 @@ class Node(browser.JDCNode,typeNode.PopUpMenuNodeMinimal): return widget - #def doPaste(self,node_selected): - # objet_a_copier = self.item.get_copie_objet() - # child=node_selected.doPasteMCF(objet_a_copier) - #print "doPaste",child - # return child - #def doPasteMCF(self,objet_a_copier): - # child=None - # le noeud courant est une MCList - # if self.item.isMCList() : - # child = self.append_child(objet_a_copier,pos='first',retour='oui') + def doPaste(self,node_selected,pos): + objet_a_copier = self.item.get_copie_objet() + # before est un effet de bord heureux sur l index + child=self.append_brother(objet_a_copier,'before') + if self.editor.fenetreCentraleAffichee : self.editor.fenetreCentraleAffichee.node.affichePanneau() + self.update_node_label_in_black() + return child - # le noeud courant est un MCFACT - # elif self.item.isMCFact() : - # le noeud selectionne est un MCFACT dans une MCList - # if self.parent.item.isMCList(): - # child = self.parent.append_child(objet_a_copier, pos=self.item, retour='oui') - # le noeud MCFACT selectionne n'est pas dans une MCList - # else: - # child = self.parent.append_child(objet_a_copier,retour='oui') - - # else: - # QMessageBox.information( self, "Copie impossible", - # "Vous ne pouvez coller le mot-cle facteur copie a ce niveau de l'arborescence !") - # self.editor.affiche_infos("Copie refusee") - - # return child class MCListTreeItem(Objecttreeitem.SequenceTreeItem,compofact.FACTTreeItem): """ La classe MCListTreeItem joue le role d'un adaptateur pour les objets