sxUiPort Class Reference

port user interface More...

#include <sxUiPort.h>

Inheritance diagram for sxUiPort:

sxUiInPort sxUiOutPort

List of all members.

Public Types

enum  Placement { North = 0, East, South, West }

Public Member Functions

void AdjustTextPosition (const QString &cap, sxObject *obj)
 Adjust text position.
void SetLocation (Placement loc)
 set port's location
Placement Location () const
 return port location.
virtual void AdjustConnections ()
QFont Font () const
void SetFont (const QFont &f)

Protected Member Functions

void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 sxUiPort (Placement loc)

Protected Attributes

Placement xLocation
sxUiTextItem * xText

Detailed Description

port user interface

Member Enumeration Documentation

North  port placed in North
East  port location East
South  port location South
West  port location West

Member Function Documentation

void sxUiPort::AdjustTextPosition ( const QString &  cap,
sxObject obj 

Adjust text position.

if text item is not created, allocate new text item for displaying port's caption.

cap caption of the port
obj pointer to this port (implement sxObject)

References East, North, South, and West.

sxUiPort::Placement sxUiPort::Location (  )  const

return port location.

See also:

Referenced by sxUiComponent::Adjust().

void sxUiPort::SetLocation ( sxUiPort::Placement  loc  ) 

set port's location

loc location of the port (North, East, South, West)

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

Generated on Wed Dec 17 19:30:48 2008 for xBCI API by  doxygen