rocs/VisualEditor
Go to the documentation of this file.
21 #ifndef ROCS_POINTERITEM_H
22 #define ROCS_POINTERITEM_H
24 #include <QGraphicsLineItem>
26 #include <boost/shared_ptr.hpp>
28 #include "CoreTypes.h"
30 class PointerItemPrivate;
31 class QGraphicsSceneMouseEvent;
33 class QGraphicsSimpleTextItem;
53 explicit PointerItem(PointerPtr pointer, QGraphicsItem *parent = 0);
63 enum { Type = UserType + 3 };
74 QGraphicsItem *propertyListItem()
const;
79 PointerPtr pointer()
const;
86 void mousePressEvent(QGraphicsSceneMouseEvent *event);
92 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
94 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
QWidget *widget = 0);
95 virtual QPainterPath createCurves() = 0;
100 void updateAttributes();
101 void updateProperty(
const QString& name);
102 void registerProperty(
const QString& name);
103 void removeProperty(
const QString& name);
107 PointerItemPrivate *
const d;
#define VISUALEDITOR_EXPORT
Graphics item for data connections.
This file is part of the KDE documentation.
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.