Version: 9.15.0
gui.cataitems.TypesItem Class Reference
Inheritance diagram for gui.cataitems.TypesItem:
Collaboration diagram for gui.cataitems.TypesItem:

Public Member Functions

def __init__ (self, typeMap, root)
 
def getIconName (self)
 
def isExpandable (self)
 
def getChildren (self)
 
- Public Member Functions inherited from gui.Item.Item
def __init__ (self, label="")
 
def father (self)
 
def panel (self, parent)
 
def box (self, parent)
 
def selected (self)
 
def dblselected (self)
 

Public Attributes

 typeMap
 
 label
 
 root
 
- Public Attributes inherited from gui.Item.Item
 label
 
 emitting
 

Detailed Description

Item for types folder

Definition at line 184 of file cataitems.py.

Constructor & Destructor Documentation

◆ __init__()

def gui.cataitems.TypesItem.__init__ (   self,
  typeMap,
  root 
)

Definition at line 186 of file cataitems.py.

186  def __init__(self,typeMap,root):
187  Item.Item.__init__(self)
188  self.typeMap=typeMap
189  self.label="Types"
190  self.root=root
191 

Member Function Documentation

◆ getChildren()

def gui.cataitems.TypesItem.getChildren (   self)

Reimplemented from gui.Item.Item.

Definition at line 198 of file cataitems.py.

198  def getChildren(self):
199  sublist=[]
200  for name,typ in list(self.typeMap.items()):
201  itemtype=ItemType(typ,self.root,name)
202  sublist.append(itemtype)
203  return sublist
204 

References gui.cataitems.Obj.root, gui.cataitems.ItemService.root, gui.cataitems.ItemType.root, gui.cataitems.ItemCompo.root, gui.cataitems.ItemNode.root, gui.cataitems.ItemComposedNode.root, gui.cataitems.TypesItem.root, gui.cataitems.ComponentsItem.root, gui.cataitems.NodesItem.root, gui.cataitems.ComposedNodesItem.root, gui.Items.ItemPort.root, gui.sessions.Session.root, YACS::ENGINE::Proc.typeMap, and gui.cataitems.TypesItem.typeMap.

◆ getIconName()

def gui.cataitems.TypesItem.getIconName (   self)

Reimplemented from gui.Item.Item.

Definition at line 192 of file cataitems.py.

192  def getIconName(self):
193  return "folder"
194 

◆ isExpandable()

def gui.cataitems.TypesItem.isExpandable (   self)

Reimplemented from gui.Item.Item.

Definition at line 195 of file cataitems.py.

195  def isExpandable(self):
196  return True
197 

Member Data Documentation

◆ label

gui.cataitems.TypesItem.label

Definition at line 189 of file cataitems.py.

Referenced by gui.CItems.Cell.moveBy(), and gui.CItems.Cell.show().

◆ root

◆ typeMap

gui.cataitems.TypesItem.typeMap

Definition at line 188 of file cataitems.py.

Referenced by gui.cataitems.TypesItem.getChildren().


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