Public Types | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
icmpstr::CGraphicsConnectorItem Class Reference

#include <CGraphicsConnectorItem.h>

Inheritance diagram for icmpstr::CGraphicsConnectorItem:

Public Types

enum  ConnectFlags { CF_FACTORY = 0x0001, CF_EMBEDDED =0x0002 }
 
enum  GeometricParams { GP_RADIUS = 4, GP_RADIUS2 = 8, GP_OFFSET = 12 }
 
typedef QGraphicsItem BaseClass
 

Public Member Functions

 CGraphicsConnectorItem (const icmpstr::ISceneProvider &sceneProvider, int connectFlags=0, QGraphicsItem *parent=NULL)
 
void InitEnds (CRegistryElementShape *sourceShapePtr, CRegistryElementShape *destShapePtr)
 
virtual int type () const
 
virtual QPainterPath shape () const
 
virtual bool contains (const QPointF &point) const
 

Protected Slots

void OnSourceRectMoved (const QRectF &rect)
 
void OnDestRectMoved (const QRectF &rect)
 
void OnSourceSelected (bool state)
 
void OnDestSelected (bool state)
 

Protected Member Functions

void Adjust ()
 
virtual QRectF boundingRect () const
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 

Detailed Description

Definition at line 25 of file CGraphicsConnectorItem.h.

Member Typedef Documentation

Definition at line 32 of file CGraphicsConnectorItem.h.

Member Enumeration Documentation

Enumerator
CF_FACTORY 
CF_EMBEDDED 

Definition at line 34 of file CGraphicsConnectorItem.h.

Enumerator
GP_RADIUS 
GP_RADIUS2 
GP_OFFSET 

Definition at line 40 of file CGraphicsConnectorItem.h.

Constructor & Destructor Documentation

icmpstr::CGraphicsConnectorItem::CGraphicsConnectorItem ( const icmpstr::ISceneProvider sceneProvider,
int  connectFlags = 0,
QGraphicsItem *  parent = NULL 
)

Member Function Documentation

void icmpstr::CGraphicsConnectorItem::Adjust ( )
protected
virtual QRectF icmpstr::CGraphicsConnectorItem::boundingRect ( ) const
protectedvirtual
virtual bool icmpstr::CGraphicsConnectorItem::contains ( const QPointF &  point) const
virtual
void icmpstr::CGraphicsConnectorItem::InitEnds ( CRegistryElementShape sourceShapePtr,
CRegistryElementShape destShapePtr 
)
void icmpstr::CGraphicsConnectorItem::OnDestRectMoved ( const QRectF &  rect)
protectedslot
void icmpstr::CGraphicsConnectorItem::OnDestSelected ( bool  state)
protectedslot
void icmpstr::CGraphicsConnectorItem::OnSourceRectMoved ( const QRectF &  rect)
protectedslot
void icmpstr::CGraphicsConnectorItem::OnSourceSelected ( bool  state)
protectedslot
virtual void icmpstr::CGraphicsConnectorItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
protectedvirtual
virtual QPainterPath icmpstr::CGraphicsConnectorItem::shape ( ) const
virtual
virtual int icmpstr::CGraphicsConnectorItem::type ( ) const
virtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy