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

PinItem Class Reference

#include <picitem.h>

Inheritance diagram for PinItem:

List of all members.

Detailed Description

Allows visual setting of pin type/state.

David Saxton

Definition at line 26 of file picitem.h.

Public Slots

void updateDrawing ()

Public Member Functions

QPointArray areaPoints () const
QRect boundingRect () const
QBrush brush () const
QCanvas * canvas () const
bool collidesWith (const QCanvasItem *) const
QCanvasItemList collisions (const bool exact) const
void dragged (int dx)
int height () const
void hide ()
QString id ()
bool isSelected () const
bool isVisible () const
void move (double const x, double const y)
virtual void moveBy (double dx, double dy)
bool needRedraw () const
QPen pen () const
 PinItem (FlowCodeDocument *_view, QPoint position, bool _onLeft, PinSettings *_pinSettings)
QRect rect () const
virtual void setBrush (const QBrush &b)
virtual void setCanvas (QCanvas *)
void setNeedRedraw (const bool needRedraw)
virtual void setPen (const QPen &p)
virtual void setSelected (const bool yes)
void setSize (const int w, const int h)
virtual void setVisible (bool yes)
void setX (double a)
void setY (double a)
void setZ (double a)
void show ()
QSize size () const
void switchState ()
int width () const
double x () const
double y () const
double z () const

Protected Member Functions

virtual void addToChunks ()
virtual void changeChunks ()
QPointArray chunks () const
void draw (QPainter &)
void invalidate ()
bool isValid () const
virtual void removeFromChunks ()
void setWinding (bool)
void update ()
bool winding () const

Protected Attributes

double myx
double myy
double myz
bool val

Private Member Functions

void calcTextRect ()
void drawShape (QPainter &p)
void initItem ()

Private Attributes

QFont m_font
QRect m_textRect
bool onLeft

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

Generated by  Doxygen 1.6.0   Back to index