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

Public Member Functions

def __init__
 
def selected
 
def getIconName
 
def panel
 
def link
 
def connect
 
- 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

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

Static Public Attributes

list panels = []
 

Detailed Description

Item pour les ports 

Definition at line 243 of file Items.py.

Constructor & Destructor Documentation

def gui.Items.ItemPort.__init__ (   self,
  port,
  root = None 
)

Definition at line 246 of file Items.py.

247  def __init__(self,port,root=None):
248  Item.Item.__init__(self)
249  self.port=port
250  self.label=port.getName()
251  if root:
252  self.root=root
253  elif self.port.getNode().getFather():
254  root=self.port.getNode().getRootNode()
255  self.root=Item.adapt(root)
256  else:
257  self.root=None

Member Function Documentation

def gui.Items.ItemPort.connect (   self)

Definition at line 281 of file Items.py.

Referenced by gui.browser_catalog.Browser.init().

282  def connect(self):
283  print "ItemPort.connect:"
284  self.root.connecting(self)
def gui.Items.ItemPort.getIconName (   self)

Definition at line 267 of file Items.py.

268  def getIconName(self):
269  return "port.png"
def gui.Items.ItemPort.link (   self,
  other 
)

Definition at line 278 of file Items.py.

279  def link(self,other):
280  print "ItemPort.link:",self,other
def gui.Items.ItemPort.panel (   self,
  parent 
)
Retourne un tab widget pour browser/editer l'item

Definition at line 270 of file Items.py.

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

271  def panel(self,parent):
272  """Retourne un tab widget pour browser/editer l'item"""
273  tabWidget = QTabWidget( parent )
274  for name,method in self.panels:
275  tabWidget.addTab( method(self,tabWidget), name )
return tabWidget
def gui.Items.ItemPort.selected (   self)

Definition at line 258 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, gui.cataitems.Cata.emitting, 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.Items.ItemPort.root, and gui.cataitems.ComposedNodesItem.root.

259  def selected(self):
260  #print "ItemPort selected"
261  if not self.root:
262  return
263  if not self.emitting:
264  self.emitting=1
265  CONNECTOR.Emit(self.root,"selected",self)
266  self.emitting=0

Member Data Documentation

gui.Items.ItemPort.emitting

Definition at line 263 of file Items.py.

gui.Items.ItemPort.label

Definition at line 249 of file Items.py.

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

Definition at line 245 of file Items.py.

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

gui.Items.ItemPort.port

Definition at line 248 of file Items.py.

Referenced by gui.sessions.Sessions.getChildren(), gui.Items.ItemOutPort.link(), and gui.Items.ItemOutStream.link().

gui.Items.ItemPort.root

Definition at line 251 of file Items.py.

Referenced by gui.Items.ItemPort.selected().


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