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

Public Member Functions

def __init__ (self, compoMap, 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

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

Detailed Description

Item for components folder

Definition at line 205 of file cataitems.py.

Constructor & Destructor Documentation

◆ __init__()

def gui.cataitems.ComponentsItem.__init__ (   self,
  compoMap,
  root 
)

Definition at line 207 of file cataitems.py.

207  def __init__(self,compoMap,root):
208  Item.Item.__init__(self)
209  self.compoMap=compoMap
210  self.label="Components"
211  self.root=root
212 

Member Function Documentation

◆ getChildren()

def gui.cataitems.ComponentsItem.getChildren (   self)

Reimplemented from gui.Item.Item.

Definition at line 219 of file cataitems.py.

219  def getChildren(self):
220  sublist=[]
221  for compo in list(self.compoMap.values()):
222  itemcompo=ItemCompo(compo,self.root)
223  sublist.append(itemcompo)
224  return sublist
225 

References gui.cataitems.ComponentsItem.compoMap, 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, and gui.sessions.Session.root.

◆ getIconName()

def gui.cataitems.ComponentsItem.getIconName (   self)

Reimplemented from gui.Item.Item.

Definition at line 213 of file cataitems.py.

213  def getIconName(self):
214  return "folder"
215 

◆ isExpandable()

def gui.cataitems.ComponentsItem.isExpandable (   self)

Reimplemented from gui.Item.Item.

Definition at line 216 of file cataitems.py.

216  def isExpandable(self):
217  return True
218 

Member Data Documentation

◆ compoMap

gui.cataitems.ComponentsItem.compoMap

Definition at line 209 of file cataitems.py.

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

◆ label

gui.cataitems.ComponentsItem.label

Definition at line 210 of file cataitems.py.

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

◆ root


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