Version: 8.3.0
gui.Items.ItemNode Class Reference
Inheritance diagram for gui.Items.ItemNode:
Collaboration diagram for gui.Items.ItemNode:

Public Member Functions

def __init__
 
def selected
 
def isExpandable
 
def getChildren
 
def panel
 
- Public Member Functions inherited from gui.Item.Item
def __init__
 
def isExpandable
 
def getChildren
 
def father
 
def getIconName
 
def panel
 
def box
 
def selected
 
def dblselected
 

Public Attributes

 node
 
 label
 
 father
 
 emitting
 
- Public Attributes inherited from gui.Item.Item
 label
 
 emitting
 

Static Public Attributes

list panels = []
 

Detailed Description

Item pour les noeuds elementaires
   Il n a pas de fils

Definition at line 359 of file Items.py.

Constructor & Destructor Documentation

def gui.Items.ItemNode.__init__ (   self,
  node 
)

Definition at line 365 of file Items.py.

366  def __init__(self,node):
367  Item.Item.__init__(self)
368  self.node=node
369  self.label=node.getName()
370  self.father=Item.adapt(node.getFather())

Member Function Documentation

def gui.Items.ItemNode.getChildren (   self)

Definition at line 386 of file Items.py.

387  def getChildren(self):
388  sublist=[]
389  for n in self.node.getSetOfInputPort():
390  sublist.append(Item.adapt(n))
391  for n in self.node.getSetOfOutputPort():
392  sublist.append(Item.adapt(n))
393  for n in self.node.getSetOfInputDataStreamPort():
394  sublist.append(Item.adapt(n))
395  for n in self.node.getSetOfOutputDataStreamPort():
396  sublist.append(Item.adapt(n))
397  return sublist
def gui.Items.ItemNode.isExpandable (   self)

Definition at line 383 of file Items.py.

384  def isExpandable(self):
385  return True
def gui.Items.ItemNode.panel (   self,
  parent 
)
Retourne un tab widget pour browser/editer l'item

Definition at line 398 of file Items.py.

References gui.BoxManager.BoxManager.panels, gui.Items.ItemPort.panels, and gui.Items.ItemNode.panels.

399  def panel(self,parent):
400  """Retourne un tab widget pour browser/editer l'item"""
401  tabWidget = QTabWidget( parent )
402  for name,method in self.panels:
403  tabWidget.addTab( method(self,tabWidget), name )
return tabWidget
def gui.Items.ItemNode.selected (   self)

Definition at line 371 of file Items.py.

References gui.Item.Item.emitting, gui.cataitems.Obj.emitting, gui.cataitems.ItemService.emitting, gui.cataitems.ItemType.emitting, gui.cataitems.ItemCompo.emitting, gui.cataitems.ItemNode.emitting, gui.cataitems.ItemComposedNode.emitting, and gui.cataitems.Cata.emitting.

372  def selected(self):
373  #print "ItemNode selected"
374  root=self.node.getRootNode()
375  rootItem=Item.adapt(root)
376  if not self.emitting:
377  self.emitting=1
378  #for those that have subscribed to item level
379  CONNECTOR.Emit(self,"selected",self)
380  #for those that have subscribed to rootItem level
381  CONNECTOR.Emit(rootItem,"selected",self)
382  self.emitting=0

Member Data Documentation

gui.Items.ItemNode.emitting

Definition at line 376 of file Items.py.

gui.Items.ItemNode.father

Definition at line 369 of file Items.py.

gui.Items.ItemNode.label

Definition at line 368 of file Items.py.

gui.Items.ItemNode.node

Definition at line 367 of file Items.py.

list gui.Items.ItemNode.panels = []
static

Definition at line 364 of file Items.py.

Referenced by gui.cataitems.Obj.panel(), gui.Items.ItemComposedNode.panel(), gui.Items.ItemNode.panel(), and gui.PanelManager.PanelManager.setview().


The documentation for this class was generated from the following file: