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

Public Member Functions

def __init__
 
def myMove
 
def link
 
def addInLink
 
def tooltip
 
- 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

 __inList
 

Additional Inherited Members

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

Detailed Description

Definition at line 321 of file CItems.py.

Constructor & Destructor Documentation

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

Definition at line 322 of file CItems.py.

323  def __init__(self,node,port,canvas):
324  ControlItem.__init__(self,node,port,canvas)
325  self.__inList=[]

Member Function Documentation

def gui.CItems.InControlItem.addInLink (   self,
  link 
)

Definition at line 339 of file CItems.py.

340  def addInLink(self,link):
341  self.__inList.append(link)
def gui.CItems.InControlItem.link (   self,
  obj 
)

Definition at line 331 of file CItems.py.

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

332  def link(self,obj):
333  #Here we create the link between self and obj.
334  #self has been declared connecting in connect method
335  print "link:",obj
336  if isinstance(obj,OutControlItem):
337  #Connection possible
338  l=LinkItem(obj,self,self.canvas())
def gui.CItems.InControlItem.myMove (   self,
  dx,
  dy 
)

Definition at line 326 of file CItems.py.

References gui.CItems.InControlItem.__inList, YACS::HMI::linkPoint.x, YACS::HMI::presentationtype_parser.x(), YACS::HMI::linkPoint.y, and YACS::HMI::presentationtype_parser.y().

327  def myMove(self,dx,dy):
328  ControlItem.myMove(self,dx,dy)
329  for link in self.__inList:
330  link.setToPoint( int(self.x()), int(self.y()) )
def gui.CItems.InControlItem.tooltip (   self,
  view,
  pos 
)

Definition at line 342 of file CItems.py.

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

343  def tooltip(self,view,pos):
344  r = QRect(pos.x(), pos.y(), self.width(), self.height())
345  s = QString( "ingate:")
346  view.tip( r, s )
347  #QToolTip(view).tip( r, s )

Member Data Documentation

gui.CItems.InControlItem.__inList
private

Definition at line 324 of file CItems.py.

Referenced by gui.GraphViewer.InPortItem.myMove(), gui.CItems.InControlItem.myMove(), and gui.CItems.InPortItem.myMove().


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