Version: 8.3.0
gui.CItems.OutControlItem Class Reference
Inheritance diagram for gui.CItems.OutControlItem:
Collaboration diagram for gui.CItems.OutControlItem:

Public Member Functions

def __init__
 
def myMove
 
def link
 
def addOutLink
 
def tooltip
 
def links
 
- Public Member Functions inherited from gui.CItems.ControlItem
def __init__
 
def moveBy
 
def myMove
 
def getObj
 
def popup
 
def connect
 
def link
 
def tooltip
 
def selected
 

Private Attributes

 __outList
 

Additional Inherited Members

- Public Attributes inherited from gui.CItems.ControlItem
 port
 
 node
 
 item
 
 context
 

Detailed Description

Definition at line 348 of file CItems.py.

Constructor & Destructor Documentation

def gui.CItems.OutControlItem.__init__ (   self,
  node,
  port,
  canvas 
)

Definition at line 349 of file CItems.py.

350  def __init__(self,node,port,canvas):
351  ControlItem.__init__(self,node,port,canvas)
352  self.__outList=[]

Member Function Documentation

def gui.CItems.OutControlItem.addOutLink (   self,
  link 
)

Definition at line 366 of file CItems.py.

367  def addOutLink(self,link):
368  self.__outList.append(link)
def gui.CItems.OutControlItem.link (   self,
  obj 
)

Definition at line 358 of file CItems.py.

References gui.graph.Graph.canvas, and gui.CItems.LinkItem.canvas.

359  def link(self,obj):
360  #Here we create the link between self and obj.
361  #self has been declared connecting in connect method
362  print "link:",obj
363  if isinstance(obj,InControlItem):
364  #Connection possible
365  l=LinkItem(self,obj,self.canvas())
def gui.CItems.OutControlItem.links (   self)

Definition at line 375 of file CItems.py.

References gui.CItems.OutControlItem.__outList.

376  def links(self):
377  return self.__outList
def gui.CItems.OutControlItem.myMove (   self,
  dx,
  dy 
)

Definition at line 353 of file CItems.py.

References gui.CItems.OutControlItem.__outList, YACS::HMI::linkPoint.x, YACS::HMI::presentationtype_parser.x(), YACS::HMI::linkPoint.y, and YACS::HMI::presentationtype_parser.y().

354  def myMove(self,dx,dy):
355  ControlItem.myMove(self,dx,dy)
356  for link in self.__outList:
357  link.setFromPoint( int(self.x()), int(self.y()) )
def gui.CItems.OutControlItem.tooltip (   self,
  view,
  pos 
)

Definition at line 369 of file CItems.py.

References YACS::HMI::presentationtype_parser.height(), and YACS::HMI::presentationtype_parser.width().

370  def tooltip(self,view,pos):
371  r = QRect(pos.x(), pos.y(), self.width(), self.height())
372  s = QString( "outgate:")
373  view.tip( r, s )
374  #QToolTip(view).tip( r, s )

Member Data Documentation

gui.CItems.OutControlItem.__outList
private

Definition at line 351 of file CItems.py.

Referenced by gui.CItems.OutControlItem.links(), gui.CItems.OutPortItem.links(), gui.GraphViewer.OutPortItem.myMove(), gui.CItems.OutControlItem.myMove(), and gui.CItems.OutPortItem.myMove().


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