Logo Search packages:      
Sourcecode: qsapecng version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

qsapecng::Component Class Reference

Inheritance diagram for qsapecng::Component:
Inheritance graph
Collaboration diagram for qsapecng::Component:
Collaboration graph

List of all members.

Public Types

enum  { Type = UserType + 1 }
enum  { OpacityFactor = 3 }
enum  ItemType { Std = Type, Wire, Label }

Public Member Functions

void addNodes (QList< QPointF > nodes)
void addNodes (QPointF node)
uint angle () const
QRectF boundingRect () const
 Component (QPainterPath path, QPointF node, QGraphicsItem *parent=0, SchematicScene *scene=0)
 Component (QPainterPath path, QGraphicsItem *parent=0, SchematicScene *scene=0)
 Component (QGraphicsItem *parent=0, SchematicScene *scene=0)
 Component (QPainterPath path, QList< QPointF > nodes, QGraphicsItem *parent=0, SchematicScene *scene=0)
void invalidate ()
virtual ItemType itemType () const
PropertyTextItemlabel () const
virtual void mirror ()
bool mirrored () const
QVector< int > nodes () const
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
QPainterPath path () const
int propagate (int value)
virtual void rotate ()
virtual void rotateBack ()
bool rotated () const
SchematicSceneschematicScene () const
void setPath (const QPainterPath &path)
virtual int type () const

Protected Member Functions

void focusInEvent (QFocusEvent *event)
void focusOutEvent (QFocusEvent *event)
QVariant itemChange (GraphicsItemChange change, const QVariant &value)
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
qreal penWidth () const

Protected Attributes

QPen defaultPen_
QPen itemPen_

Private Member Functions

void createNode (const QPointF &point)

Private Attributes

QList< GraphicsNode * > nodeList_
QPainterPath path_

Detailed Description

Definition at line 52 of file component.h.

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

Generated by  Doxygen 1.6.0   Back to index