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

Public Member Functions

def box
 
def addNode
 
- Public Member Functions inherited from gui.Items.ItemComposedNode
def __init__
 
def isExpandable
 
def getChildren
 
def dblselected
 
def selected
 
def getIconName
 
def panel
 
def addNode
 
def panel1
 
def layout
 
def addLink
 
- 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
 

Additional Inherited Members

- Public Attributes inherited from gui.Items.ItemComposedNode
 node
 
 graph
 
 label
 
 datalinks
 
 controllinks
 
 emitting
 
- Static Public Attributes inherited from gui.Items.ItemComposedNode
int n = 0
 

Detailed Description

Definition at line 208 of file Items.py.

Member Function Documentation

def gui.Items.ItemForLoop.addNode (   self,
  service 
)

Definition at line 212 of file Items.py.

213  def addNode(self,service):
214  new_node=service.clone(None)
215  ItemComposedNode.n=ItemComposedNode.n+1
216  name=service.getName()+"_%d" % ItemComposedNode.n
217  new_node.setName(name)
218  #replace the old node (if it exists) with the new one
219  nodes=self.node.edGetDirectDescendants()
220  if nodes:
221  old_item=Item.adapt(nodes[0])
222  CONNECTOR.Emit(old_item,"remove")
223  self.node.edSetNode(new_node)
224  item=Item.adapt(new_node)
225  CONNECTOR.Emit(self,"add",item)
226  CONNECTOR.Emit(self,"changed")
def gui.Items.ItemForLoop.box (   self,
  parent 
)

Definition at line 209 of file Items.py.

210  def box(self,parent):
211  return panels.PanelForLoop(parent,self)

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