rocs/VisualEditor
#include <PointerItem.h>

Public Types | |
enum | { Type = UserType + 3 } |
Public Slots | |
void | registerProperty (const QString &name) |
void | remove () |
void | removeProperty (const QString &name) |
void | updateAttributes () |
void | updatePos () |
void | updateProperty (const QString &name) |
Public Member Functions | |
PointerItem (PointerPtr pointer, QGraphicsItem *parent=0) | |
virtual | ~PointerItem () |
PointerPtr | pointer () const |
QGraphicsItem * | propertyListItem () const |
int | type () const |
Protected Member Functions | |
virtual QPainterPath | createCurves ()=0 |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
Detailed Description
Graphics item for data connections.
This is the base class for graphics item represenations of connections. Data structure plugins may provide their own implementations to present the connections with a different look.
Definition at line 42 of file PointerItem.h.
Member Enumeration Documentation
anonymous enum |
Constructor & Destructor Documentation
|
explicit |
Default constructor.
- Parameters
-
pointer the pointer that this graphics item presents parent the parent for the graphics item, if 0 item must be added to scene manually
Definition at line 97 of file PointerItem.cpp.
|
virtual |
Default destructor.
Definition at line 126 of file PointerItem.cpp.
Member Function Documentation
|
protectedpure virtual |
|
protected |
when there's a mouse click on the element, this method is invoked
- Parameters
-
event the mouse object
Definition at line 131 of file PointerItem.cpp.
|
protected |
when there's a mouse release on the element, this method is invoked
- Parameters
-
event the mouse object
Definition at line 135 of file PointerItem.cpp.
|
protected |
Definition at line 256 of file PointerItem.cpp.
PointerPtr PointerItem::pointer | ( | ) | const |
- Returns
- the pointer that is represented by this graphics item
Definition at line 252 of file PointerItem.cpp.
QGraphicsItem * PointerItem::propertyListItem | ( | ) | const |
- Returns
- the graphics item to be displayed at the scene
Definition at line 247 of file PointerItem.cpp.
|
slot |
Definition at line 199 of file PointerItem.cpp.
|
slot |
Definition at line 139 of file PointerItem.cpp.
|
slot |
Definition at line 228 of file PointerItem.cpp.
int PointerItem::type | ( | ) | const |
- Returns
- the type of the item
- See also
- QGraphicsItem::type()
Definition at line 242 of file PointerItem.cpp.
|
slot |
Definition at line 162 of file PointerItem.cpp.
|
slot |
Definition at line 147 of file PointerItem.cpp.
|
slot |
Definition at line 215 of file PointerItem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.